I have ZFS-based SAN and an xVM-based virtualization server. I have a
para-virtualized 2009.6 DomU that gets it's root disk from a zvol on the
SAN. I want to replace this DomU's /export/home with another virtual
drive mounted from the SAN (so that I can easily fresh install the
DomU's OS).
Following some online guides, I have achieved my goal, but I wonder if
I'm unnecessarily having two layers of ZFS - leading to inefficiencies.
What I've done so far is:
In Dom0:
- zfs create -V 1T tank/lunar-export-home
- xm block-attach lunar-1 phy:/dev/zvol/dsk/tank/lunar-export-home 1 w
In DomU:
- touch /reconfigure
- shutdown -i5 -g0 -y
- echo | pfexec format (it shows up as "c7d1")
- zpool create data c7d1
- zfs snapshot -r rpool/export/h...@transfer
- zfs send rpool/export/h...@transfer | zfs receive data/home
- zfs send rpool/export/home/k...@transfer | zfs receive data/home/kent
- zfs umount -f rpool/export/home/kent
- zfs umount -f rpool/export/home
- zfs set mountpoint=/export/home data/home
- zfs set mountpoint=/export/home/kent data/home/kent
- zfs destroy -r rpool/export/home
Is there a better strategy? Could one mount /export/home directly (i.e.
`mount /dev/dsk/c7d1s2 /export/home`) and, if so, would it be more
efficient? - what ZFS-goodness would be lost?
Thanks,
Kent
_______________________________________________
xen-discuss mailing list
[email protected]