This article hasn't been updated for over 5 years. The information below may be obsolete.
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/mcfand change thefamily 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
- Edit
/etc/vfstaband change the entry to reflect the new family set name. - Run the
samd configcommand to informsam-fsdof the changes made:# samd config
- Run
samfsckwith the-Fand-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)