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
/etc/opt/SUNWsamfs/mcfand change the
family setname 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
/etc/vfstaband change the entry to reflect the new family set name.
- Run the
samd configcommand to inform
sam-fsdof the changes made:
# samd config
-Roptions 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
mkdirto create the new mount point if necessary)