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 samfs5):
- 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 samfs5 /etc/opt/SUNWsamfs/mcf samfs5 200 ma samfs5 on /dev/dsk/c0t3d0s0 201 mm samfs5 on /dev/dsk/c1t3d0s0 202 md samfs5 on /dev/dsk/c1t4d0s0 203 md samfs5 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 samfs5
- Mount the new file system (use
mkdirto create the new mount point if necessary)