/etc/fstab
Hey Everybody,
We have a NAS share that needs to be mounted on several of our Linux servers. The mounting of the filesystem works OK when done manually with the command mount -t nfs NASent.my-company.com:/root_vdm_5/FScs01/FScs01 /bmc The problem is that when the server is rebooted, the mount is gone, even though I added this line to the /etc/fstab: NASent.my-company.com:/root_vdm_5/FScs01/FScs01 /bmc nfs defaults 0 0 Is there a dfferent syntax for a NAS share in the /etc/fstab? Thanks, eg |
Hello,
/etc/auto.master is defined? |
what does auto.master have to do with his question?
Can't think of any obvious reason, but you've two steps on one there... 1) using an fstab entry and 2) mounting on boot. So with that entry does "mount /bmc" work? after that there can often be issues with the network not being ready yet, but that's why network based filesystems are typically not mounted until later in the boot process on most systems. (maybe the server has taste... If I ever have to use another BMC product again, so help me... :)) |
Not familiar with that file.
I will check into it. Do you know the format for its entries? Thank you, eg |
Thank you Chris.
We can mount the NAS share OK with this command: mount -t nfs NASent.my-company.com:/root_vdm_5/FScs01/FScs01 /bmc Still it will not be available after a server reboot even though we have this line in the /etc/fstab: NASent.my-company.com:/root_vdm_5/FScs01/FScs01 /bmc nfs defaults 0 0 Sorry for being verbose. Our question is: how do we retain the mount after reboot? If I understood you correctly it might be a timing issue (and fully justified BMC idiosyncrasies)? Thanks. eg |
please specifically answer the question I asked. does "mount /bmc" work?
|
yes
|
OK, so what distro are we even talking about here? If it has a netfs service, is it set to run on boot?
|
Not sure. This is what I see:
After the reboot I found the portmap and nfs services were stopped Checked netfs and it doesn't show /bmc as Active NS mountpoint: # service netfs status Configured NFS mountpoints: /bmc /data/col1/backup/nfs/enterprise/dev /dd_nfs/dd_bkups_clt Configured network block devices: imssltdd1-10g.mycompany.com: I restarted portmap and nfs services and executed: # mount -t nfs NASent.my-company.com:/root_vdm_5/FScs01/FScs01 /bmc Checked netfs again and it show /bmc as Active NFS mountpoint [root@orabmctd10 ~]# service netfs status Configured NFS mountpoints: /bmc /data/col1/backup/nfs/enterprise/dev /dd_nfs/dd_bkups_clt Configured network block devices: imssltdd1-10g.mycompany.com: Active NFS mountpoints: /bmc Any clue? |
we/ours are set like
nc006qaa266q -> cat /etc/fstab | grep -i nmon | more //ga016f006/nmon_data /NMON_DATA cifs dir_mode=0777,file_mode=0777,credentials=/etc/sa mba/creds/corp-creds.txt 0 0 |
better example
[/home/uzassi1 - uzassi1] nc006qaa266 -> cat /etc/fstab | grep -i dors | more //GA016A502/DORSSHARE /dorsshare cifs dir_mode=0777,file_mode=0777,credentials=/etc/samba/creds/corp-creds.txt 0 0 [/home/uzassi1 - uzassi1] nc006qaa266 -> mount | grep -i dorsshare | more //GA016A502/DORSSHARE on /dorsshare type cifs (rw) this install nc006qaa266 -> uname -a Linux nc006qaa266.somename.com 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux |
Thank you Bill. I see you use // at the beginning of the line in the fstab file and no ':'. I will try that.
THX, eg |
Quote:
stop using the full mount command, that only confuses things. with an fstab entry, you never need more than "mount /bmc" you mounted it and netfs said it was mounted... not exactly unexpected really. If you start the netfs service (not that is actually IS a service at all note...) after a reboot, what does that do? |
Same result. After the reboot /bmc is not mounted ... go figure.
|
What i've said wouldn't affect anything across a reboot. if you start the netfs service, does that work?
|
All times are GMT -5. The time now is 10:28 AM. |