Operating System - HP-UX
1834649 Members
2158 Online
110069 Solutions
New Discussion

Chg scsi @ of the controler of vg00 with mirrored disks

 
DECORSE Olivier
Occasional Advisor

Chg scsi @ of the controler of vg00 with mirrored disks

My configuration is : HP-UX 10.20, 1 scsi controler at 8/12 address, managing /dev/rdsk/c0t5d0 and c0t8d0, disks that are mirrored together, and completed inclued in /dev/vg00.
No other disks, ctrl or vg ! So all is in vg00, and is mirrored.
My problem is :
i want to change the address of the scsi controler, to 8/8, of course without any data lost.
I've read "avm" article (http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x27ab53921f1ad5118fef0090279cd0f9,00.html) but they're not mirroring in his configuration.
So, is it necessary to break mirroring (lvreduce, vgreduce, etc.), before vgexport, or not !?
i suggest :
1) lv reduce, vgreduce, etc # break mirror,
2) boot in maintenance mode (hpux -lm),
3) vgexport /dev/vg00, halt,
4) change ctrl slot/adress,
5) boot in maintenance mode (hpux -lm),
6) vgimport /dev/vg00 /dev/dsk/cxtydz,
7) lvlnboot -R
8) reboot normaly (?)
9) re-creat mirroring (vgextend, lvextend, etc.)
Thank's a lot for any response !!
Olivier.
4 REPLIES 4
Carlos Fernandez Riera
Honored Contributor

Re: Chg scsi @ of the controler of vg00 with mirrored disks

Last week i did a change from a D350 to a (??new?) D260:

Shutdown and change disks to new location.

boot, stop boot


search IPL

boot Hardware address or P[123]

interact with ipl ? YEs

hpux -lq -lm ## mode lvm maintenance.

After boot Vg00 is not active.

vgexport -s -m /VG00_MAP /dev/vg00

mkdir /dev/vg00
mknod /dev/vg00/group c 64 0x000000
vgimport -s -m /VG00_MAP
vgchange -a y /dev/vg00
lvlnboot -R

lvlnboot -v

reboot


It works for me.



unsupported
S.K. Chan
Honored Contributor

Re: Chg scsi @ of the controler of vg00 with mirrored disks

8/12 to change to 8/8
c0t5d0 and c0t8d0

You can also do this, ie by changing the instance number but still keep the device path unchange (c0t5d0 and c0t8d0)

o Build yourself the "infile" from the extisting configuration.

# ioscan -kf|grep -e INTERFACE -e DEVICE|awk '{printf "%s %s %s\n",$3,$1,$2}' > infile

o The "infile" should look something like this :-
......
0/0/8/0 ext_bus 0
0/0/8/0.5 target 3
0/0/8/0.5.0 disk 1
0/0/8/0.8 target 4
0/0/8/0.8.0 disk 2
0/0/8/1 ext_bus 1
0/0/8/1.2 target 5
....

o Edit the infile by changing the "ext_bus" line. For example the above .. you want to move the 2 disks from ext_bus 0 to ext_bus 1, you would modify the infile as such ..
...
0/0/8/0 ext_bus 1
.....
0/0/8/1 ext_bus 0
...

o Test the file :-

# ioinit -f infile 2>&1|more
==> Look for errors with any of the changed lines. If no diagnostic message is displayed for that line then it is good. All other lines that do not change will say something like ..

ioinit: Input identical to kernel, line ignored
Input line 1: 0/0/2/0 ext_bus 0

o Rename /etc/ioconfig and /stand/ioconfig with extension say ".save"

o Shutdown the system. Make the connection switch from 8.12 to 8/8. Power on the system.It will come up to ioinitrc and give this message:-

/sbin/ioinitrc /etc/ioconfig missing. Restore it from backup or invoke /sbin/ioinit -c to recreate it from kernel. (in ioinitrc) #

o Run this :-

(in ioinitrc) # /sbin/ioinit -f /infile -r
(in ioinitrc) # ^d

o After the system reboots, everything will come up just fine.



DECORSE Olivier
Occasional Advisor

Re: Chg scsi @ of the controler of vg00 with mirrored disks

thank you for your responses.
I will try the manipulation next week and then assign points.
A last question : are you using mirroring in your configuration ?

Thank's. Olivier.
S.K. Chan
Honored Contributor

Re: Chg scsi @ of the controler of vg00 with mirrored disks

Yes. A few more key points ..
1) Make sure no clashes of instance number for the "ext_bus", they must be unique.
2) Very important .. remember to save a copy /etc/ioconfig and /stand/ioconfig just in case if this fails you can fall back.