Take a snapshot of the volume on source server: root@source# zfs snapshot zfs_dataset/volume@now Send the snapshot to the target server. Target zfs_dataset can be different: root@source# zfs send zfs_dataset/volume@now | ssh target zfs recieve zfs_dataset/volume@now Clone the snapshot with the supposed name of the new volume zfs clone zfs_dataset/volume@now zfs_dataset/clone Promote it, in effect switching … Read More →
Tag Archives: Volumes
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