Renaming a stornext file system

Topic

As it’s quite easy on a generic local file system to change the label/name with data in place , it’s the opposite in a SAN environment. In some (or even most) cases you have to offload the data, rename the file system and initialize it again. It’s also possible under StorNext , even if not well documented.

No can do? Yes can do!

Situation

You got a new storage subsystem and it you copied all the data over from the old file system to the new one. Now it occurs to you that many project folders have hard coded file system names in it or you simply don’t like the name. While it is hard (impossible to my knowledge) to fake a file system name because the clients see the file system as native volume.

Abstract

Since StorNext version 3.1.2 Quantum allows and provides tools for renaming a file system with their utilities Quantum’s process does not expect disk labels to be altered between name changes. Given the fact that you may have plenty of disk labels and want to identify the right storage unit with the LUN label. Some say it can’t be done but I have done this several times without issues.

It is important to note that a file system name change could cause data loss in a worst-case scenario. I also urge the reader to read the user manual before attempting this procedure. And as always, a backup is always a good thing.

Details

Changing the file system name

un-mount the active file system

run cvadmin -e ‘stop <file system name>’

run cvfsck <file system name> expecting no errors; stop here on errors

copy /usr/cvfs/config/<file system name>.(x)cfg to /usr/cvfs/config/<file system name>.(x)cfg.org

archive the /usr/cvfs/data/<file system name> and the /usr/cvfs/debug elements which pertain to <file system name> to a secure location

run cvfsck (i.e. interactive mode); enter the number for the <new file system name> when promptedNOTE: Since SNFS 4.3.1 you should run cvfsck twice. The first time missing folder will be create and at the second time the update will happen! On the other side, it doesn’t hurt to run it twice anyway.

Answer Y to “Do you want to proceed?”

At this point you may see a message stating:

*Warning*: Icb has a configuration mismatch!
Icb mismatches configuration:
File System Name Mismatch. exp-newname rcv-test
** WARNING ** Do you want to correct the Icb for the
--- [newname] ---
file system. This procedure cannot be un-done!

Select y at the prompt to proceed

run cvupdatefs <new file system name> (I had this report no changes occasionally)

edit /etc/fstab to reflect <new file system name>

edit /usr/cvfs/config/fsmlist to reflect <new file system name>

run cvadmin -e ‘start <new file system name>’

run cvadmin -e ‘activate <new file system name>’

mount <new file system name> and verify

According to Quantum the SNFS labels can not be renamed. As I have done this several times successfully I have to disagree. If you have a file system to test, give it a try.

It should be noted that the procedure has been split into two distinct actions within the process and that within each action, it is recommend that full file system checks be run. Quantum highly suggests these checks given our need to change device labels and given the requirement of data-in-place.

It is acknowledged by anyone who chooses to utilize this procedure that all risks taken in performing these steps are performed on your own and that I am not reliable for any damage.

Read the F5 Appreciates Blackness (FAB) employee inclusion group’s letter to the company, and how they’ve asked their F5 colleagues around the globe to support them: https://go.f5.net/3yym2 #BlackLivesMatter

The good, the bad and well ... your location and contact data.
As the US maybe gets serious about coronavirus-tracking apps, Congress wakes up to the privacy risks
#covid19 #cybersecurity #privacy #tracking

As NVMe continues to mature and help storage systems get the most from flash-based SSDs, memory vendors are looking a little higher up the stack for more optimization gain.
#datacenter #nvme #storage #optimization
https://tinyurl.com/y83l75b9