Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Solaris 9 Mirroring perculiarity !

Thread Tools
 
Search this Thread
 
Old 26 January 2007, 11:05 AM
  #1  
Wurzel
Scooby Senior
Thread Starter
iTrader: (1)
 
Wurzel's Avatar
 
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes on 54 Posts
Cool Solaris 9 Mirroring perculiarity !

I need some help here as I am going insane.

I have a V240 with 4 x 72gb disks, I have mirrored disk 0 and disk 1 successfully and these work perfectly, the machine can boot from either disk.

I then mirrored disk 2 and disk 3 successfully.

I added the /dev/md/rdsk/d6 blah blah blah to vfstab so that it mounts automatically on a reboot.

My problem is that when the system reboots I get an error saying it can not read DISK BLOCK 143287232: Invalid argument

Then unexpected inconsitency and to FSCK it.

The system stops and wants me to login to maintenence mode and then press CTRL C but when I do this the machine ignore CTRL C and carries on booting. When I do df -k on the machine the offending d6 is mounted correctly and I can write to it.

I tried setting the mount at boot flag to no in vfstab and sure enough it doesn't mount and the machine boots normally, if I then try and mount the d6 disks manually it tells me that it is already mounted. However when I cd to the mount point there is nowt there. If I try to unmount it it says that it is busy and can't be unmounted.

If I try to fsck d6 it screws up.

Also if I try to recreate the mirror from scratch even after blowing away the disks and newfsing them it tells me that the pairing already exists, inspite of me blowing away the database slice 7 on each disk and recreating the vtoc on slice 2.

Can anyone shed any light on what could be causing this boot problem.

Cheers

Steve
Old 26 January 2007, 11:10 AM
  #2  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Default

CTRL-D after maintenence....

is d6 a whole disc or slice ?
Old 26 January 2007, 11:14 AM
  #3  
Wurzel
Scooby Senior
Thread Starter
iTrader: (1)
 
Wurzel's Avatar
 
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes on 54 Posts
Default

it is a 67gb slice.

I made c1t2d0s0 the slice I want mounting and I made

c1t2d0s7 the SVM replica slice.

I thought about using slice 2 as technically need the whole disk as one partition but I needed to make the SVM replica in order to mirror the disks so decided on slice 0 and 7.

Does this make sense?

The thing is want it to mount normally I do not want to have to CTRL-C or CTRL-D anything.
Old 26 January 2007, 11:26 AM
  #4  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Default

what does metadb -i say ?

I think your state databases aren't right for d6 which is why it boots normally with d6 disabled.
Old 26 January 2007, 11:27 AM
  #5  
Wurzel
Scooby Senior
Thread Starter
iTrader: (1)
 
Wurzel's Avatar
 
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes on 54 Posts
Default

Ok now I am really confused?

if I do metastat d6 it tells me that the size is

141266880 blocks (67 GB)

but the error on boot is saying it can not read DISK BLOCK 143287232

Why is it even trying to read that block?
Old 26 January 2007, 11:32 AM
  #6  
Wurzel
Scooby Senior
Thread Starter
iTrader: (1)
 
Wurzel's Avatar
 
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes on 54 Posts
Default

root@tcsun29: metadb -i
flags first blk block count
a m p luo 16 8192 /dev/dsk/c1t0d0s7
a p luo 8208 8192 /dev/dsk/c1t0d0s7
a p luo 16 8192 /dev/dsk/c1t1d0s7
a p luo 8208 8192 /dev/dsk/c1t1d0s7
F M p 16 unknown /dev/dsk/c1t2d0s7
a p luo 8208 8192 /dev/dsk/c1t2d0s7
F M p 16 unknown /dev/dsk/c1t3d0s7
a p luo 8208 8192 /dev/dsk/c1t3d0s7

r - replica does not have device relocation information
o - replica active prior to last mddb configuration change
u - replica is up to date
l - locator for this replica was read successfully
c - replica's location was in /etc/lvm/mddb.cf
p - replica's location was patched in kernel
m - replica is master, this is replica selected as input
W - replica has device write errors
a - replica is active, commits are occurring to this replica
M - replica had problem with master blocks
D - replica had problem with data blocks
F - replica had format problems
S - replica is too small to hold current data base
R - replica had device read errors

it appears the database on disk 2 and 3 are corrupt, so how can I recreate them?
Old 26 January 2007, 11:35 AM
  #7  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Default

F M p 16 unknown /dev/dsk/c1t2d0s7
a p luo 8208 8192 /dev/dsk/c1t2d0s7
F M p 16 unknown /dev/dsk/c1t3d0s7
a p luo 8208 8192 /dev/dsk/c1t3d0s7
There's your problem....
Old 26 January 2007, 11:36 AM
  #8  
Wurzel
Scooby Senior
Thread Starter
iTrader: (1)
 
Wurzel's Avatar
 
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes on 54 Posts
Default

yeah but what do I do to rectify it?

if I run this again it tells me c1t2d0s7 already has a metadevice database replica.

# metadb -a -f -c 2 c1t2d0s7
# metadb -a -c 2 c1t3d0s7

Last edited by Wurzel; 26 January 2007 at 11:42 AM.
Old 26 January 2007, 11:44 AM
  #9  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Default

to clarify :

you have a mirror of c1t0d0 and c1t1d0 .

you have *added* a second mirror of c1t2d0 and c1t3d0

so 2x raid-1 yes?
Old 26 January 2007, 11:45 AM
  #10  
Wurzel
Scooby Senior
Thread Starter
iTrader: (1)
 
Wurzel's Avatar
 
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes on 54 Posts
Cool

Originally Posted by stevem2k
to clarify :

you have a mirror of c1t0d0 and c1t1d0 .

you have *added* a second mirror of c1t2d0 and c1t3d0

so 2x raid-1 yes?
Correct!
Old 26 January 2007, 12:01 PM
  #11  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by Wurzel
yeah but what do I do to rectify it?

if I run this again it tells me c1t2d0s7 already has a metadevice database replica.

# metadb -a -f -c 2 c1t2d0s7
# metadb -a -c 2 c1t3d0s7
** I assume there is no data on the t2/t3 mirror ?

I don't expect this to be a problem but how big is s7 ?

if you do
Code:
metadb -d -f c1t2d0s7
metadb -d -f c1t3d0s7
 
..then 
 
metadb -a -f -c 3 -l 8192 -f c1t2d0s7
metadb -a -c 3 -l 8192 c1t3d0s7
 
..then
 
metadb -i
What does it look like ?

Last edited by stevem2k; 26 January 2007 at 12:12 PM. Reason: gah, no-one needs an extra -f ;)
Old 26 January 2007, 12:12 PM
  #12  
Wurzel
Scooby Senior
Thread Starter
iTrader: (1)
 
Wurzel's Avatar
 
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes on 54 Posts
Default

it looks like this

Sorry s7 is 1gb

root@tcsun29: metadb
flags first blk block count
a m p luo 16 8192 /dev/dsk/c1t0d0s7
a p luo 8208 8192 /dev/dsk/c1t0d0s7
a p luo 16 8192 /dev/dsk/c1t1d0s7
a p luo 8208 8192 /dev/dsk/c1t1d0s7
a u 16 8192 /dev/dsk/c1t2d0s7
a u 8208 8192 /dev/dsk/c1t2d0s7
a u 16400 8192 /dev/dsk/c1t2d0s7
a u 16 8192 /dev/dsk/c1t3d0s7
a u 8208 8192 /dev/dsk/c1t3d0s7
a u 16400 8192 /dev/dsk/c1t3d0s7
root@tcsun29:
Old 26 January 2007, 12:27 PM
  #13  
Wurzel
Scooby Senior
Thread Starter
iTrader: (1)
 
Wurzel's Avatar
 
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes on 54 Posts
Default

Ok that has resolved the BLOCK issue but the error has now changed to

Can't roll the log for /dev/md/rdsk/d6

It wants me to fsck the filesystem

then after it resumes it says

resuming mountall
mount I/O error
mount: cannot mount /dev/md/dsk/d6

so should I detach the mirror and then reattach it so that it syncs again?
Old 26 January 2007, 12:31 PM
  #14  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Default

yes, break the mirror , fsck the file system and reattach.
Old 26 January 2007, 12:33 PM
  #15  
Wurzel
Scooby Senior
Thread Starter
iTrader: (1)
 
Wurzel's Avatar
 
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes on 54 Posts
Default

ok will do and then will report back
Old 26 January 2007, 12:39 PM
  #16  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Default

rate card is 900/day, I'll pm you with where to send the Purchase Order
Old 26 January 2007, 01:06 PM
  #17  
Wurzel
Scooby Senior
Thread Starter
iTrader: (1)
 
Wurzel's Avatar
 
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes on 54 Posts
Default

ok

anyway I broke the mirror and tried to fsck the slice and it failed.

It told me FSCK was running in yes mode and if I wanted to do this I would need to run a certain command blah blah

so I did and it told me it could not read DISK Block 143287232 I/O error

then it said it could not read sectors 143287232 143287233 143287234 143287235
Old 26 January 2007, 01:49 PM
  #18  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Default

<sigh>

format for a Seagate 73G says it has

backup wu 0 - 14086 68.35GB (14087/0/0) 143349312

Which would put your 'errant' blocks in the last 62080 - or s7

..so why is d6 trying to access this ?

When you did the formatting did you label the disc ????
Old 26 January 2007, 02:43 PM
  #19  
Wurzel
Scooby Senior
Thread Starter
iTrader: (1)
 
Wurzel's Avatar
 
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes on 54 Posts
Default

Yes I labeled c1t2 as js1 and c1t3 as js2.

Sorry for the late reply I am busy documenting the mirror process.

root@jumpstart: format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@1c,600000/scsi@2/sd@0,0
1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@1c,600000/scsi@2/sd@1,0
2. c1t2d0 <SEAGATE-ST373307LC-0007 cyl 49780 alt 2 hd 4 sec 720>
/pci@1c,600000/scsi@2/sd@2,0
3. c1t3d0 <SEAGATE-ST373307LC-0007 cyl 49780 alt 2 hd 4 sec 720>
/pci@1c,600000/scsi@2/sd@3,0
Specify disk (enter its number):

Last edited by Wurzel; 26 January 2007 at 02:48 PM.
Old 29 January 2007, 02:55 PM
  #20  
Wurzel
Scooby Senior
Thread Starter
iTrader: (1)
 
Wurzel's Avatar
 
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes on 54 Posts
Default

Ok update time, I could not get the d6 slice to mount or fsck properly so I configured my jumpstart server to create all the partitions I needed on the 2 disks I was going to mirror so c1t0d0 and c1t2d0, and reinstalled the machine.

Then I mirrored c1t2d0 to c1t3d0 and it all worked perfectly. Then I mirrored the root disk c1t0d0 to c1t1d0 and that also worked perfectly, the machine is now all mirrored up and ready for me to start to build my new jumpstart server. I have no idea what was wrong with the d6 slice when I manually created it, maybe it got it's knockers in a twist about summat. Anyway it now all works as I wanted it to.

Cheers for your help Steve. I had no idea how to delete the metadb until you gave me the command. I have now documented the process so that even a manager can understand it
Old 29 January 2007, 03:56 PM
  #21  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Default

If you said you were doing it via jumpstart I would have sent you one of my jet templates that does all the mirroring for you

Glad it's all ok now anyway ...


S
Old 30 January 2007, 11:19 AM
  #22  
Wurzel
Scooby Senior
Thread Starter
iTrader: (1)
 
Wurzel's Avatar
 
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes on 54 Posts
Cool

Originally Posted by stevem2k
If you said you were doing it via jumpstart I would have sent you one of my jet templates that does all the mirroring for you

Glad it's all ok now anyway ...


S
How about you send it to me anyway as I am always keen an learning new stuff.

Cheers

Steve
Old 30 January 2007, 12:01 PM
  #23  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Default

couple of examples inbound
Old 30 January 2007, 01:12 PM
  #24  
Wurzel
Scooby Senior
Thread Starter
iTrader: (1)
 
Wurzel's Avatar
 
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes on 54 Posts
Cool

Originally Posted by stevem2k
couple of examples inbound

Cheers.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Frizzle-Dee
Essex Subaru Owners Club
13
09 March 2019 07:35 PM
Abx
Subaru
22
09 January 2016 05:42 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM



Quick Reply: Solaris 9 Mirroring perculiarity !



All times are GMT +1. The time now is 11:36 PM.