Archive

Archive for August, 2013

Rescan SAN Lun without reboot system

August 6, 2013 Leave a comment

1. First check FC Path ( show that there are two directories:host7 and host8, it means that there are two pathing)

#  ls -l /sys/class/fc_host*
drwxr-xr-x 3 root root 0 Aug  6 16:04 host7
drwxr-xr-x 3 root root 0 Aug  6 16:05 host8

2. Echo “1” into /sys/class/fc_host/host#/issue_lip file. Like my case as below

# echo “1” > /sys/class/fc_host/host7/issue_lip

# echo “1” > /sys/class/fc_host/host8/issue_lip

3. Check the news, there are two paths for the new lun

#fdisk -l

Disk /dev/sdf: 429.4 GB, 429496729600 bytes
255 heads, 63 sectors/track, 52216 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdg: 429.4 GB, 429496729600 bytes
255 heads, 63 sectors/track, 52216 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

 

Advertisements

svc.startd[7]: svc:/system/filesystem/root:default: Method “/lib/svc/method/fs-root” failed with exit status 1

August 2, 2013 Leave a comment

Today, I recovered a Solaris server from netbackup server. When restarting the server, the console showed the following messages

SunOS Release 5.10 Version Generic_142909-17 64-bit
Copyright (c) 1983, 2010, Oracle and/or its affiliates. All rights reserved.
WARNING: Cannot find /etc/mnttab

Aug  2 17:59:07 svc.startd[7]: svc:/system/filesystem/root:default: Method “/lib/svc/method/fs-root” failed with exit status 1.
Aug  2 17:59:08 svc.startd[7]: svc:/system/filesystem/root:default: Method “/lib/svc/method/fs-root” failed with exit status 1.
Aug  2 17:59:08 svc.startd[7]: svc:/system/filesystem/root:default: Method “/lib/svc/method/fs-root” failed with exit status 1.
Aug  2 17:59:08 svc.startd[7]: system/filesystem/root:default failed: transitioned to maintenance (see ‘svcs -xv’ for details)
Hostname: yckeunisz01
Aug  2 17:59:16 svc.startd[7]: svc:/network/iscsi/initiator:default: Method “/lib/svc/method/iscsid start” failed with exit status 1.
Aug  2 17:59:17 svc.startd[7]: svc:/network/iscsi/initiator:default: Method “/lib/svc/method/iscsid start” failed with exit status 1.
Aug  2 17:59:17 svc.startd[7]: svc:/network/iscsi/initiator:default: Method “/lib/svc/method/iscsid start” failed with exit status 1.
Aug  2 17:59:17 svc.startd[7]: network/iscsi/initiator:default failed: transitioned to maintenance (see ‘svcs -xv’ for details)
Requesting System Maintenance Mode
(See /lib/svc/share/README for more information.)
Console login service(s) cannot run

Root password for system maintenance (control-d to bypass):  <– Enter the root password to bypass
single-user privilege assigned to /dev/console.

After the bypass, to run ‘svcs -xv’ to get more details, the following messages listed

svc:/system/filesystem/root:default (root file system mount)
 State: maintenance since Fri Aug 02 17:59:08 2013
Reason: Start method failed repeatedly, last exited with status 1.
   See: http://sun.com/msg/SMF-8000-KS
   See: /etc/svc/volatile/system-filesystem-root:default.log

Checked the file /etc/svc/volatile/system-filesystem-root:default.log, the log showed that /etc/mnttab can not be opened

[ Aug  2 17:59:07 Enabled. ]
[ Aug  2 17:59:07 Executing start method (“/lib/svc/method/fs-root”) ]
/lib/svc/method/fs-root: /etc/mnttab: cannot open
[ Aug  2 17:59:07 Method “start” exited with status 1 ]
[ Aug  2 17:59:08 Executing start method (“/lib/svc/method/fs-root”) ]
/lib/svc/method/fs-root: /etc/mnttab: cannot open
[ Aug  2 17:59:08 Method “start” exited with status 1 ]

Solution

Finally, boot the server with CDROM, mount the root partition of the disk and created the /etc/mnttab as the following.

touch /mnt/etc/mnttab
chmod 444 /mnt/etc/mnttab
Reboot, the server was up.