Conversion allows moving the UFS root file system on one disk to the
equivalent AdvFS root file system on a different target disk.
Needs:
UFS configuration
File system: root
Mount directory: /
Disk partition: /dev/rz1aAdvFS configuration
File system: root
Mount directory: /newroot
Disk partition: /dev/rz2a
File domain: root_domain
Fileset: rootConvertion procedure:
# mkfdmn -r -t rz26 /dev/rz2a root_domain
# mkfset root_domain root
# mkdir /newroot
# mount -t advfs root_domain#root /newroot
UFS root file system to the root fileset
# vdump 0f - / | (cd /newroot; vrestore -xf -)
# disklabel -r /dev/rrz2a > /tmp/rz2label
# disklabel -t advfs -r -R /dev/rrz2a /tmp/rz2label rz26
/etc/fstab on the AdvFS root fileset to indicate
the new root entry and perform the following actions:
search /newroot/etc/fstab for the previous UFS
root mount:
/dev/rz1a / ufs rw 1 1
comment out this entry with the pound sign (#)
add the following line:
root_domain#root / advfs rw 1 1
BOOTDEF_DEV to point to the disk with the new root domain.AdvFS root file system.AdvFS root domain is limited to one disk. Do not use
addvol to extend the root domain.