Close

Changing SNFS disk labels

Changing SNFS disk labels

  1. un-mount the active file system from all clients
  2. run cvadmin -e ‘stop <file system name>’
  3. run cvfsck -j <file system name> (flushing the journal, should not be required but …)
  4. run cvfsck <file system name> expecting no errors; stop here on errors
  5. create a backup of the metadata using snmetadump
  6. being paraniod helps, check the metadump with snmetadump
  7. run cvlabel -c > /my_labels
  8. run cvlabel -c > /tmp/my_new_labels
  9. copy /usr/cvfs/config/<file system name>.(x)cfg to /usr/cvfs/config/<file system name>.(x)cfg.org
  10. edit /tmp/my_new_labels to change device labels names as desired
  11. edit /usr/cvfs/config/<file system name>.(x)cfg to reflect “new_labels”
  12. run cvlabel /tmp/my_new_labels to relabel devices
  13. run cvadmin -e ‘start <file system name>’
  14. run cvadmin -e ‘activate <file system name>’
  15. mount file system and verify

Leave a Reply

Your email address will not be published.