Should operate on a physical separate lan and VLAN 200 has been set aside for this. Server Install net/istgt from ports and set istgt_enable=”YES” in /etc/rc.conf. iSCSI uses an addressing scheme called iqn which is built up by the reverse domainname along with the founding date. In this case the address is iqn.2004-06.net.strahlert.home /usr/local/etc/istgt/auth.conf Set … Read More →
Author Archives: Magnus Strahlert
Adding a disk to an existing zpool
zpool attach <zpool name> <existing device> <new device> Where <existing device> is gpt/disk0 in the zpool status output below. pool: zroot state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 gpt/disk0 ONLINE 0 0 0 The pool will create a 1-way mirror (essentially RAID1) using the now two … Read More →
Volume management in ZFS
This is ideal for creating LUN’s over iSCSI or locally. zfs create -s -V 2G raid5/volume1 This will create a 2Gb volume on the zpool raid5 with thin provisioning. newfs /dev/zvol/raid5/volume1 Creates a ufs filesystem with default settings on the volume just created. mount /dev/zvol/raid5/volume1 /mnt/tmp Mounts it as /mnt/tmp mount|grep volume1 Note how it … Read More →
Restore a FreeBSD installation through ZFS send/recieve
Boot into RescueCD onto receiving machine. Then create GPT partitioning scheme (If a new machine and assuming ad0 is the disk) gpart create -s gpt ad0 gpart add -t freebsd-boot -s 64K ad0 gpart add -t freebsd-swap -s 2G -l swap0 ad0 gpart add -t freebsd-zfs -l disk0 ad0 gpart bootcode -b /dist/boot/pmbr -p /dist/boot/gptzfsboot … Read More →
Fixing a broken grub2
For some reason every upgrade of Ubuntu destroys the working grub installation. This is how to fix it again. First boot through rescue CD. Then to find out which partition your linux root system lies on do the following fdisk -l Mount it assuming /dev/sda3 is your root system mount /dev/sda3 /mnt Then set up … Read More →
Recent Comments