Summary: Solaris Volume Manager (SVM) issue with mirroring the disks.

From: Kiran Sharma <speedyourmind_at_yahoo.com>
Date: Tue Jul 22 2008 - 09:36:27 EDT
The Issue was with vfstab. I copied the entry of / (root) from the vfstab and forgot to change no to yes on mount at boot. I would like to thank following who pointed out the issue with the mount. Thank  you so much. Have a wonderful day.
   
      Matthew Stier
    Neil Calton 
    Paveza, Gary
    Deiter, Scott
    Andrew Williamson - Fujitsu
    joe fletcher
    Udo Grabowski
    Ric Anderson 
    A Darren Dunham
    Matthew Stier  
    Romeo Theriault 
    JayJay Florendo 

Kiran Sharma <speedyourmind@yahoo.com> wrote:
  Gurus,
I just installed Solaris 10 05/08 on the server. I created state database on slice 3 and 4 on two disk c0t0d0 and c0t1d0. I created two slices 6 and 7 with about 1gb space and 500mb on each slice. I used the following command.
metainit d51 1 1 c0t0d0s3
metainit d52 1 1 c0t1d0s3
metainit d5 -m d51
metattach d5 d52 
and same process for d6 mirror.
I manually tried to mount and I can mount it and I can see the content on c0t0d0s3 with the following mount command
mount /dev/md/dsk/d6 /sam but when I unmount and add entry into vfstab and do mountall it does not mount the mount point /sam. I added entry on vfstab and rebooted the server without any problem but it didn't mount the filesystem. Again if I manually mount then I can mount and see the content on the disk. Here is detail from the server. I really appreciate if someone please guide if I am missing something or is there any bug on the system or need to upgrade or apply any patches.
Thanks
- KS 
# uname -a
SunOS samrat 5.10 Generic_127127-11 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
#
# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 20169850 13690434 6277718 69% /
/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 2824016 1472 2822544 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
fd 0 0 0 0% /dev/fd
swap 2822544 0 2822544 0% /tmp
swap 2822584 40 2822544 1% /var/run
#
------------------------------------------------------------------
# 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/dsk/c0t0d0s1 - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
/devices - /devices devfs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
/dev/md/dsk/d6 /dev/md/rdsk/d6 /sam ufs 1 no logging
/dev/md/dsk/d5 /dev/md/rdsk/d5 /cisco ufs 1 no logging
swap - /tmp tmpfs - yes -

I even move swap on top up /sam and also tried moving bottom but didn't work.
----------------------------------------------------
# mountall
mount: /tmp is already mounted or swap is busy
#

# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 20169850 13690434 6277718 69% /
/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 2824184 1472 2822712 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
fd 0 0 0 0% /dev/fd
swap 2822712 0 2822712 0% /tmp
swap 2822752 40 2822712 1% /var/run
#

# metastat |more
d6: Mirror
Submirror 0: d61
State: Okay
Submirror 1: d62
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 1025595 blocks (500 MB)
d61: Submirror of d6
State: Okay
Size: 1025595 blocks (500 MB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t1d0s7 0 No Okay Yes

d62: Submirror of d6
State: Okay
Size: 1025595 blocks (500 MB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t0d0s7 0 No Okay Yes

d5: Mirror
Submirror 0: d51
State: Okay
Submirror 1: d52
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 2097414 blocks (1.0 GB)
d51: Submirror of d5
State: Okay
Size: 2097414 blocks (1.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t0d0s6 0 No Okay Yes

d52: Submirror of d5
State: Okay
Size: 6110235 blocks (2.9 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t1d0s6 0 No Okay Yes

Device Relocation Information:
Device Reloc Device ID
c0t0d0 Yes id1,sd@SSEAGATE_ST336704LSUN36G_3CD1XFL600007141DJ82
c0t1d0 Yes id1,sd@SSEAGATE_ST336704LSUN36G_3CD1AK9W00007125L64L
-------------------------------------------------
# metadb
flags first blk block count
a m pc luo 16 8192 /dev/dsk/c0t0d0s3
a pc luo 16 8192 /dev/dsk/c0t0d0s4
a pc luo 16 8192 /dev/dsk/c0t1d0s3
a pc luo 16 8192 /dev/dsk/c0t1d0s4
#

# mount /dev/md/dsk/d6 /sam
# mount /dev/md/dsk/d5 /cisco

# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 20169850 13690434 6277718 69% /
/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 2823512 1472 2822040 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
fd 0 0 0 0% /dev/fd
swap 2822040 0 2822040 0% /tmp
swap 2822080 40 2822040 1% /var/run
/dev/md/dsk/d6 482308 1252 432826 1% /sam
/dev/md/dsk/d5 1016306 1252 954076 1% /cisco
#
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Tue Jul 22 09:38:21 2008

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:11 EST