God I hate Solaris

sourceninja

Diamond Member
Mar 8, 2005
8,805
65
91
So can anyone explain this to me?

We are migrating SANS this weekend. So our first step is to move to our new fiber switch fabric. No card switching or san switching, just unplugging from the old switches and plugging into the new ones. Same zones and everything.

ESX handled this fine, Ubuntu linux handled this fine, even novell handled this fine. But not solaris 9 and 10.

So our solaris machines decided that they were going to change the targets, so instead of /dev/dsk/c4d3t1s7 its now /dev/dsk/c4d3t2s7. That's not a big deal, we just update the vfstab and reboot to make sure everything mounts itself.

Only it doesn't. Instead fsck fails on one of the volumes. Says it can't stat the device /dev/rdsk/c4d3t2s7. So I run fsck manually. Sure enough it finds a single superblock error and fixes it. I mount the partition manually and all the data is there and everything works fine. So I reboot.

Same problem only this time fsck finds no errors. I try tons of things, nothing fixes it, the volume simply will not mount on boot and errors out with the same fsck error.

Now the weird part is the solution. I can't explain this. Another admin decides to test something while I'm getting coffee. He comments out the line in the vfstab and reboots. The server starts fine because the drive is not being mounted. He then uncomments the same exact line and reboots again. This time everything mounts and works just fine.

I can't explain it. I rebooted 2 more times to be sure and it is fixed. Can anyone explain why this worked?
 

degibson

Golden Member
Mar 21, 2008
1,389
0
0
Originally posted by: sourceninja
I can't explain it. I rebooted 2 more times to be sure and it is fixed. Can anyone explain why this worked?

Gnomes.
 

crontab

Member
Dec 20, 2000
160
0
0
i've migrated a tons of hosts to new switches and never seen anything like this, although I added the new switches to the existing zones and then when i finished moving, i removed the old switch from the zone. Performed while everything was up... All devices remained the same...

i don't understand how the target changed, unless you're not using any form of multipathing, like mpxio or if you using Veritas's vxdmp.

If it did have to change to a new target or SAN controller, how you find them? reboot -- -r or /reconfigure or devdsadm?

Also why are your targets in c#t#d#s# just numbers. They should be 5000 #### ... as the target, the wwid of the controller or primary controller its attached to.
 

sourceninja

Diamond Member
Mar 8, 2005
8,805
65
91
Well, the machine in question only has a single fiber card, no redundancy so we didn't think multipathing was required. I'm going to reevaluate that. That is why our targets are just numbers.

According to the guy from xiotech who helped setup our switches, the zones were copied over and it should of been transparent. In fact all other machines that were not solaris had no trouble and booted right up. So I never ran any kind of command to find the new target. The system was off, we copied the zones and moved the fiber connection. Booted it up and got errors that followed.
 

Fallen Kell

Diamond Member
Oct 9, 1999
6,159
507
126
devfsadm should be able to find any new disks attached to a system without needing to do a reconfigure reboot. I have seen issues with fibrechannel cards depending on which drivers you are using. Sun has a webpage discussing exactly which driver you should be using depending on which card you are using (sorry, I have it bookmarked at work, not at home).
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |