Same storage different device

cingo_5

Active Member
May 14, 2020
8
0
41
40
Hi everybody
i've setup my cluster with 2 nodes. now i got 2 monobay qnap nas where storage vm backup.
i would make the two nas with identical configuration (same ip address and nfs share) in order to switch between the two devices( to deploy security backups), the nodes should always recognize the same destination but this does not happen... the storage remain offline waiting for the frist configurated nas...

Code:
error: unable to activate storage 'BACKUPMOBILE' - directory '/mnt/pve/BACKUPMOBILE' does not exist or is unreachable (500

it is as if the cluster assigns a unique id to the storage and even if I have same ip and share nfs it does not recognize the other nas
has anyone ever tried to deal with such a situation?
(I could handle it with a shell script to mount a local path on the nodes but it seems inelegant to me)

here the screen with the configurated storage and the second that configurated at the same way

thank you!
 

Attachments

  • Screenshot_20210715_152511.png
    Screenshot_20210715_152511.png
    34.9 KB · Views: 7
  • Screenshot_20210715_152644.png
    Screenshot_20210715_152644.png
    39 KB · Views: 8
It only seems like swapping in a NFS share is as simple as same ip:/export. As with anything, there is much more complexity underneath. Things like "export ID", NFS file handles, RPC reservations, lockd reservation, etc, etc. Each file system you create has "file system ID", thats used by NFS protocol as well.

You are going to have to build a process/script that unmounts and remounts the NFS export each time.
 
ok, thanks bbgeek17. It's as I imagined ... in fact I have already prepared the scheduled script with the mount of the nfs share and the subsequent remount. I know it could be tricky but is there a path where these uuids are saved?