Moving from DiskSuite to ZFS

Hello,I have a root mirror which I understand that root swap and var cannot be used at zfs file systems at this time.I also have /export/home and apps mirrored with Disk Suite. How do I convert these mirrors to ZFS filesystems?Thanks,Doug
[273 byte] By [CyberMartyr01@hotmail.coma] at [2007-11-26 16:00:31]
# 1
Create the zfs disks mounted in a tempory location.Copy using cp -r, rsync or tar/untar.Unmount the old disks and change the zfs mount point to mount them under the desired location.There no tools for converting a filesystem in place.
robert.cohena at 2007-7-8 22:21:56 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
Ok great, so if /dev/dsk/c1t0d0s5 and /dev/dsk/c1t1d0s5 are two slices I want to put ZFS on and mirror these slices how do I get started or must the entire new disk be ZFS?Thanks!
CyberMartyr01@hotmail.coma at 2007-7-8 22:21:56 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

No, you can use slices.

zpool create tank mirror c1t0d0s5 c1t1d0s5

If it gives an error, try adding a -f

That will create the mirrored pool, the word tank is just a handle, it can be anything.

By default it will be mounted as /tank. I suggest you leave that one there as harmless.

We'll mount it extra places sharing the space.

Suppose you want to move /usr/local to zfs

#create fs with temp mountpoint

zfs create tank/usr_local

# copy fs and unmount old

cp -r /usr/local /tank/usr_local

umount /usr/local

#move new fs into place

zfs set mountpoint=/usr/local tank/usr_local

You can do this for as many filesystems as you like, they will share the space.

You can set maximum fs size for a fs if your worried about one hogging all the space.

robert.cohena at 2007-7-8 22:21:56 > top of Java-index,Solaris Operating System,Solaris 10 Features...