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):

  1. As root, unmount the SAM-QFS file system you wish to rename:
    # umount samfs2
  2. Edit /etc/opt/SUNWsamfs/mcf and change the family 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
    
  3. Edit /etc/vfstab and change the entry to reflect the new family set name.
  4. Run the samd config command to inform sam-fsd of the changes made:
    # samd config
  5. 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
  6. Mount the new file system (use mkdir to create the new mount point if necessary)