BACKGROUND:
The system is Solaris 10 used SVM, RAID-1 with two sub-mirrors, c1t0d0 and c1t1d0. But it can not restart due to a metadevice c1t1d0 in an undefined state.
OPERATION:
1.Boot from cdrom and mount the disk c1t0d0s0.
ok boot cdrom -s
# mount /dev/dsk/c1t0d0s0 /tmp
2.Backup and then modify the /etc/vfstab and /etc/system on c1t0d0s0
/etc/vfstab: Change all the *md* format to /dev/dsk/c1t0d0s*.
/etc/system: Delete all the records related to SVM. Changes as following:
set md:mirrored_root_flag=1
* rootdev:/pseudo/md@0:0,0,blk
3.Restart the system using the sub-mirror c1t0d0.
# halt
ok boot
4.The system can only run in mode S and the / file system may be read only.
# metadb -i
flags first blk block count
a m p luo 16 8192 /dev/dsk/c1t0d0s7
a p luo 8208 8192 /dev/dsk/c1t0d0s7
M p unknown unknown /dev/dsk/c1t1d0s7
M p unknown unknown /dev/dsk/c1t1d0s7
# metadb -d /dev/dsk/c1t1d0s7
# metadb -i
flags first blk block count
a m p luo 16 8192 /dev/dsk/c1t0d0s7
a p luo 8208 8192 /dev/dsk/c1t0d0s7
But the command “metadb -f -a” and “metareplace” command failed with below errors:
Assertion failed: nsm == mm->un_nsm, file ../common/meta_mirror.c,
line 138
After check, we found that the service svc:/system/mdmonitor:default is in maintenance state. In the former messages, there was a record:
[ Mar 4 13:15:15 Executing start method
(“/lib/svc/method/svc-mdmonitor”) ]
No ‘mddb_bootlist’ entry in /kernel/drv/md.conf.
Delete all the meta database and prepare to recreate mirror.
# metadb -d /dev/dsk/c1t0d0s7
# halt
ok boot
5. Recreate the mirror.
# prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s – /dev/rdsk/c1t1d0s2
# metadb -afc 2 c1t0d07 c1t1d0s7
# metainit -f d10 1 1 c1t0d0s0
# metainit d20 1 1 c1t1d0s0
# metainit d0 -m d10
# metaroot d0
# init 6
# metattach d0 d20
Then the resync process is running. After it completed, the operating system redundancy has been restored.
REFERENCE:
Solstice DiskSuite[TM] 4.x & Solaris[TM] Volume Manager 1.0: Command line procedures [ID
1011732.1]
-
Recent Posts
Recent Comments
HA NFS solution usin… on nfs service group in VCS confl… Venkataramanan S on Network unreachable with error… sudhir on Punishment for destruction of… rat on Network not Stable Mr WordPress on Hello world! Archives
- May 2014
- March 2014
- August 2013
- May 2013
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
Categories
Meta