How to rename a SAM-QFS file system
In order to rename a SAM-QFS file system you simply need to make the changes in the mcf
file and inform sam-fsd
of these changes.
The following procedure outlines the steps necessary to complete this task. (in this example we will rename samfs2 to newfs3):
- As root, unmount the SAM-QFS file system you wish to rename:
# umount samfs2
- Edit
/etc/opt/SUNWsamfs/mcf
and change thefamily set
name to reflect your new file system name.Example before changes:
# grep samfs2 /etc/opt/SUNWsamfs/mcf samfs2 200 ma samfs2 on /dev/dsk/c0t3d0s0 201 mm samfs2 on /dev/dsk/c1t3d0s0 202 md samfs2 on /dev/dsk/c1t4d0s0 203 md samfs2 on
Example after changes:
# grep newfs3 /etc/opt/SUNWsamfs/mcf newfs3 200 ma newfs3 on /dev/dsk/c0t3d0s0 201 mm newfs3 on /dev/dsk/c1t3d0s0 202 md newfs3 on /dev/dsk/c1t4d0s0 203 md newfs3 on
- Edit
/etc/vfstab
and change the entry to reflect the new family set name. - Run the
samd config
command to informsam-fsd
of the changes made:# samd config
- Run
samfsck
with the-F
and-R
options to rename the SAM-QFS file system and rewrite the superblock with the new family set name.# samfsck -F -R newfs3
- Mount the new file system (use
mkdir
to create the new mount point if necessary)