There is no excerpt because this is a protected post.
Monthly Archives: March 2012
Setting up a mirror through geom on a GPT labeled disk
Synchronise the disklayout gpart backup ada0 > /tmp/ada0.gpt gpart restore -F /dev/ada1 < /tmp/ada0.gpt Check that everything went as expected. gpart show Add the geom kernel module as loaded on startup echo ‘geom_mirror_load=”YES”‘ >> /boot/loader.conf Add bootcode to the second disk gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 /dev/ada1 Reboot into single-user mode. Then … Read More →
Setting up iSCSI
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 →
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 →
Recent Comments