Link to home
Start Free TrialLog in
Avatar of jgourlay
jgourlay

asked on

unable to mount file systems at reboot

added file systems zone1 and zone2 to vfstab and mounted successfully

root@felix: /export/zone1> more /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/zvol/dsk/zfspool/swap      -       -       swap    -       no      -
/devices        -       /devices        devfs   -       no      -
sharefs -       /etc/dfs/sharetab       sharefs -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -
/dev/dsk/c1t1d0s0       /dev/rdsk/c1t1d0s0      /export/zone1   ufs     -       yes     -
/dev/dsk/c1t1d0s1       /dev/rdsk/c1t1d0s1      /export/zone2   ufs     -       yes     -
root@felix: /export/zone1>


when server rebooted the new entries in vfstab seemed to trigger problem (see below)

Rebooting with command: boot
Boot device: disk:a  File and args:
SunOS Release 5.10 Version Generic_137137-09 64-bit
Copyright 1983-2008 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Hardware watchdog enabled
Hostname: felix
/dev/rdsk/c1t1d0s0 is clean
/dev/rdsk/c1t1d0s1 is clean
svc:/system/filesystem/local:default: WARNING: /sbin/mountall -l failed: exit status 1
Reading ZFS config: done.
Mounting ZFS filesystems: (5/5)
Apr 22 10:09:57 svc.startd[7]: svc:/system/filesystem/local:default: Method "/lib/svc/method/fs-local" failed with exit status 95.
Apr 22 10:09:57 svc.startd[7]: system/filesystem/local:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details)
felix console login:




root@felix: /var/svc/log> tail "system-filesystem-local:default.log"
mount: Nonexistent mount point: /export/zone1
mount: Nonexistent mount point: /export/zone2
WARNING: /sbin/mountall -l failed: exit status 1
[ Apr 21 14:37:08 Method "start" exited with status 95 ]
[ Apr 22 10:09:40 Enabled. ]
[ Apr 22 10:09:56 Executing start method ("/lib/svc/method/fs-local") ]
mount: Nonexistent mount point: /export/zone1
mount: Nonexistent mount point: /export/zone2
WARNING: /sbin/mountall -l failed: exit status 1
[ Apr 22 10:09:57 Method "start" exited with status 95 ]
root@felix: /var/svc/log>


at this stage however I can now mount file systems at command line

root@felix: /> df -k
Filesystem            kbytes    used   avail capacity  Mounted on
zfspool/ROOT/s10s_u6wos_07b
                     70189056 4621265 63468532     7%    /
/devices                   0       0       0     0%    /devices
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                 1643856     256 1643600     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
sharefs                    0       0       0     0%    /etc/dfs/sharetab
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
                     68089798 4621265 63468532     7%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                     68089798 4621265 63468532     7%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                         0       0       0     0%    /dev/fd
swap                 1643600       0 1643600     0%    /tmp
swap                 1643616      16 1643600     1%    /var/run
zfspool/export       70189056      22 63468532     1%    /export
zfspool/export/home  70189056     519 63468532     1%    /export/home
zfspool              70189056      94 63468532     1%    /zfspool
root@felix: /> mount /export/zone1
root@felix: /> mount /export/zone2
root@felix: /> df -k
Filesystem            kbytes    used   avail capacity  Mounted on
zfspool/ROOT/s10s_u6wos_07b
                     70189056 4621265 63468594     7%    /
/devices                   0       0       0     0%    /devices
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                 1643216     256 1642960     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
sharefs                    0       0       0     0%    /etc/dfs/sharetab
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
                     68089859 4621265 63468594     7%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                     68089859 4621265 63468594     7%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                         0       0       0     0%    /dev/fd
swap                 1642960       0 1642960     0%    /tmp
swap                 1642976      16 1642960     1%    /var/run
zfspool/export       70189056      22 63468594     1%    /export
zfspool/export/home  70189056     519 63468594     1%    /export/home
zfspool              70189056      94 63468594     1%    /zfspool
/dev/dsk/c1t1d0s0    1020815  497924  461643    52%    /export/zone1
/dev/dsk/c1t1d0s1    1020815  497924  461643    52%    /export/zone2
root@felix: />




 
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

the df command shows that they are mounted, it could be that these are old messages
Avatar of jgourlay
jgourlay

ASKER

the problem is that these new file systems are not mounted after reboot despite being in vfstab
but what is th/e output of df -k you showed before? do you have an old copy of vfstab file that you can compare with
the 1st df is after filesystem have been added to vfstab and mounted at command line.

everything seems to be ok with these filesystems as I have been using them.

when I reboot with these entries in vfstab the problem I reported occurs however if I remove entries I get a clean reboot
The problem is in the syntax, please change to

/dev/dsk/c1t1d0s0       /dev/rdsk/c1t1d0s0      /export/zone1   ufs     2       yes     -
/dev/dsk/c1t1d0s1       /dev/rdsk/c1t1d0s1      /export/zone2   ufs     2       yes     -
changed vfstab - reboot still failing

Rebooting with command: boot
Boot device: disk:a  File and args:
SunOS Release 5.10 Version Generic_137137-09 64-bit
Copyright 1983-2008 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Hardware watchdog enabled
Hostname: felix
/dev/rdsk/c1t1d0s0 is clean
/dev/rdsk/c1t1d0s1 is clean
svc:/system/filesystem/local:default: WARNING: /sbin/mountall -l failed: exit status 1
Reading ZFS config: done.
Mounting ZFS filesystems: (5/5)
Apr 22 14:46:02 svc.startd[7]: svc:/system/filesystem/local:default: Method "/lib/svc/method/fs-local" failed with exit status 95.
Apr 22 14:46:02 svc.startd[7]: system/filesystem/local:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details)

felix console login: root
Password:
Last login: Wed Apr 22 14:41:28 on console
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
root@felix: /> more /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/zvol/dsk/zfspool/swap      -       -       swap    -       no      -
/devices        -       /devices        devfs   -       no      -
sharefs -       /etc/dfs/sharetab       sharefs -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -
/dev/dsk/c1t1d0s0       /dev/rdsk/c1t1d0s0      /export/zone1   ufs     2       yes     -
/dev/dsk/c1t1d0s1       /dev/rdsk/c1t1d0s1      /export/zone2   ufs     2       yes     -
root@felix: />
do you get any error message in /var/adm/messages
ASKER CERTIFIED SOLUTION
Avatar of nyaar
nyaar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial