How and where do you modify NFS mounts in BCM?
ssh to your head node
‘cmsh’
Now you should see the head node active and it will look something like this just a different name.
[headnode]
Now type ‘category’ and you get into the BCM category section
[headnode->category]
Now type list to see the list of categories you have. (if you know the name of the category you can just type ‘use ‘ to enter that category
Now you are in the category. In this case ‘mycategory’ is the name of the category I have chosen.
[headnode->category[mycategory]]
Now you need to go to fsmounts. so type ‘fsmounts’ which will bring you to the fsmounts section of the category.
[headnode->category[mycategory]->fsmounts]
From here type list to see a list of mounts.
To add a new mount do the following
add .
This means a location on your local machine you want the mount to be located at. In this case any compute node that is associated with this category will get this mount. (Further details on Categories can be seen in other blog on Categories)
An example of this is ‘add /mnt/data’. This would add the /mnt/data directory to the category and eventually the compute nodes associated with the categroy
once you have the ‘add created you just need to see the other options.
add device <ip:/
add device 192.168.111.50:/data
add filesystem
add filesystem nfs
add mountoptions
add mountoptions vers=3,proto=rdma,nconnect=16
Then type ‘commit’ to commit the changes to the BCM database.
A reboot of any node will cause that node to mount the defined NFS mount we created in the category we just modified. You can also run an imageupdate to update the existing images, but I find a node reboot to be the cleanest way to update the mounts
Leave a Reply