Too Cool for Internet Explorer

Wednesday, October 03, 2007

Create a ZFS pool onto an already used and referenced disk

I have been thinking about creating a zfs pool for my home directory for some time now. Today I moved my home directory to /export/backup and unmounted the 120g disk.
When I tried to zpool create home c0d1 I got the message that this disk is still referenced in another boot environment. (Read here why.) I tried to delete that old boot environment, but that did not work, because GRUB then would have entries that point to no existing BE then. I never thought about that before, but I guess I now have to stick to the two BEs and just switch from SXCE1 to SXCE2 and back again.

On #opensolaris I have been pointed to the right tool to use: lumount. I mounted the old environment and commented out the entry in the /etc/vfstab to get rid of that reference for the disk. Now I was able to create the zpool with mountpoint on /export/home. Afterwards I created a new filesystem for my user in it and moved all my data back in there.

Technorati Tags: , , , , ,

Bookmark this on
posted by madhatter @ 12:17 AM