rdashokraj
asked on
mnttab error
Hello,
We recently migrated from Solaris NIS Server to RH EL3. Binded all the Solaris and Linux clients. Automount is working but i get the below error while doing df -k in a automounted directory. I did fsck manually and cleaned up mnttanb but it doesn't help. Please advise.
gumani--root[22] df -k .
df: a line in /etc/mnttab has to many fields
gumani--root[23]
gumani--root[23] uname -a
SunOS gumani 5.8 Generic_108528-19 sun4u sparc SUNW,Ultra-5_10
Thanks,
Ashok
We recently migrated from Solaris NIS Server to RH EL3. Binded all the Solaris and Linux clients. Automount is working but i get the below error while doing df -k in a automounted directory. I did fsck manually and cleaned up mnttanb but it doesn't help. Please advise.
gumani--root[22] df -k .
df: a line in /etc/mnttab has to many fields
gumani--root[23]
gumani--root[23] uname -a
SunOS gumani 5.8 Generic_108528-19 sun4u sparc SUNW,Ultra-5_10
Thanks,
Ashok
ASKER
"mount" also gives this error. Please notice the last line.
# mount
/ on /dev/dsk/c0t0d0s0 read/write/setuid/intr/lar gefiles/on error=pani c/dev=2200 000 on Sun Oct 29 23:44:35 2006
/proc on /proc read/write/setuid/dev=4580 000 on Sun Oct 29 23:44:34 2006
/dev/fd on fd read/write/setuid/dev=4640 000 on Sun Oct 29 23:44:36 2006
/etc/mnttab on mnttab read/write/setuid/dev=4740 000 on Sun Oct 29 23:44:37 2006
/var/run on swap read/write/setuid/dev=1 on Sun Oct 29 23:44:37 2006
/tmp on swap read/write/setuid/dev=2 on Sun Oct 29 23:44:39 2006
/export on /dev/dsk/c0t0d0s3 read/write/setuid/intr/lar gefiles/on error=pani c/dev=2200 003 on Sun Oct 29 23:44:39 2006
/usr/local on godavari:/vol/vol0/godavar i08/local remote/read/write/setuid/i ntr/bg/dev =47c0001 on Sun Oct 29 23:44:46 2006
mount: line in mnttab has too many entries
#
# mount
/ on /dev/dsk/c0t0d0s0 read/write/setuid/intr/lar
/proc on /proc read/write/setuid/dev=4580
/dev/fd on fd read/write/setuid/dev=4640
/etc/mnttab on mnttab read/write/setuid/dev=4740
/var/run on swap read/write/setuid/dev=1 on Sun Oct 29 23:44:37 2006
/tmp on swap read/write/setuid/dev=2 on Sun Oct 29 23:44:39 2006
/export on /dev/dsk/c0t0d0s3 read/write/setuid/intr/lar
/usr/local on godavari:/vol/vol0/godavar
mount: line in mnttab has too many entries
#
check your /etc/vfstab, /etc/auto_direct /etc/auto_home files to make sure that there is NO WHITE space in the mount point dir name.
If you need more help please post your /etc/mnttab, /etc/vfstab, /etc/auto_direct and /etc/auto_home files
If you need more help please post your /etc/mnttab, /etc/vfstab, /etc/auto_direct and /etc/auto_home files
ASKER
Yuzh, I'm looking at the WHITE space now. Below given the content of files you required. I have already posted /etc/mnttab.
bash-2.03# cat /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s1 - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
/dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s3 /export ufs 2 yes -
swap - /tmp tmpfs - yes -
#remoted mounted drives
godavari:/vol/vol0/godavar i08/local - /usr/local nfs - yes intr,bg
bash-2.03#
bash-2.03# cat /etc/auto_master
# Master map for automounter
#
#+auto_master
/net -hosts -nosuid,nobrowse
/home auto_home -nobrowse
/xfn -xfn
+auto.master
bash-2.03# cat /etc/auto_home
# Home directory map for automounter
#
+auto_home
bash-2.03#
bash-2.03# cat /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s1 - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
/dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s3 /export ufs 2 yes -
swap - /tmp tmpfs - yes -
#remoted mounted drives
godavari:/vol/vol0/godavar
bash-2.03#
bash-2.03# cat /etc/auto_master
# Master map for automounter
#
#+auto_master
/net -hosts -nosuid,nobrowse
/home auto_home -nobrowse
/xfn -xfn
+auto.master
bash-2.03# cat /etc/auto_home
# Home directory map for automounter
#
+auto_home
bash-2.03#
If you want to see if a white space is the problem, you should do a "view /etc/mnttab" and then input ":set list". This will display TABS as "^T" symbols. Spaces will show up as spaces. The issue is with files like /etc/vfstab, /etc/auto_master and such are white space delimited already so looking for spaces in there is going to be somewhat fruitless as a space between fields is perfectly acceptable.
Anything found in /etc/mnttab has already been accepted by the kernel as a valid mount. /etc/mnttab is a kernel created and maintained file.
I would start by doing a patch audit for your version of solaris. Stuff that's accepted into /etc/mnttab by the kernel and then errored upon by tools that use the /etc/mnttab file (like df and mount) sounds like a bug to me.
Anything found in /etc/mnttab has already been accepted by the kernel as a valid mount. /etc/mnttab is a kernel created and maintained file.
I would start by doing a patch audit for your version of solaris. Stuff that's accepted into /etc/mnttab by the kernel and then errored upon by tools that use the /etc/mnttab file (like df and mount) sounds like a bug to me.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yuzh/Nukfor,
I appreciate your valuable inputs on this issue. But unfortunately that day as we couldn't solve the problem, we escalated to our L3 support and they fixed it (Not sure what they have done). Btw as per your advice, I checked the solaris site to download the latest solaris 8 recommended patch clusters but bit confused what to download (I never done patch cluster installation). I'm seeing these 4 available downloads, which one to take ?
1. Solaris 8 Sun Alert Patch Cluster
2. Solaris 8
3. Solaris 8 x86 Sun Alert Patch Cluster
4. Solaris 8 x86 <--- What is this x86 refers to?
Thanks,
Ashok
I appreciate your valuable inputs on this issue. But unfortunately that day as we couldn't solve the problem, we escalated to our L3 support and they fixed it (Not sure what they have done). Btw as per your advice, I checked the solaris site to download the latest solaris 8 recommended patch clusters but bit confused what to download (I never done patch cluster installation). I'm seeing these 4 available downloads, which one to take ?
1. Solaris 8 Sun Alert Patch Cluster
2. Solaris 8
3. Solaris 8 x86 Sun Alert Patch Cluster
4. Solaris 8 x86 <--- What is this x86 refers to?
Thanks,
Ashok
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Nukfor, Thanks for your explanation. I had this doubt for a long time but little hesitant to ask someone :)
ASKER
Yuzh, Your suspicion is right. Its a space issue in vfstab. Our L3 support guys corrected the same. Thanks !!
ASKER
Is there any log file available for mnttab so as to check this error ? /etc/mnttab looks like this.
# more /etc/mnttab
/dev/dsk/c0t0d0s0 / ufs rw,intr,largefiles,onerror
/proc /proc proc dev=4580000 1162145614
fd /dev/fd fd rw,suid,dev=4640000 1162145616
mnttab /etc/mnttab mntfs dev=4740000 1162145617
swap /var/run tmpfs dev=1 1162145617
swap /tmp tmpfs dev=2 1162145619
/dev/dsk/c0t0d0s3 /export ufs rw,intr,largefiles,onerror
godavari:/vol/vol0/godavar
-hosts /net autofs indirect,nosuid,ignore,nob
auto_home /home autofs indirect,ignore,nobrowse,d
-xfn /xfn autofs indirect,ignore,dev=480000
auto.disks /disks autofs indirect,ignore,dev=480000
auto.tools /tools autofs indirect,ignore,dev=480000
auto.projects /projects autofs indirect,ignore,dev=480000
-hard /- auto.direct autofs indirect,ignore,dev=480000
auto.proj /proj autofs indirect,ignore,dev=480000
auto.misc /misc autofs indirect,ignore,dev=480000
auto.users /users autofs indirect,ignore,dev=480000
gumani:vold(pid260) /vol nfs ignore,dev=47c0002 1162145634
kalyani:/export/home2/cds4
sutlej:/vol/datavol/sutlej
#