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 →
Tag Archives: Zfs
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 →
Recent Comments