Operating System - HP-UX
1758622 Members
2061 Online
108874 Solutions
New Discussion юеВ

Change instance number of current VG00

 
SOLVED
Go to solution
William Wan_1
Frequent Advisor

Change instance number of current VG00

Hi,

Itanium rx3600 + sas controller with disks (vg00) and fiber storage

While igniting this new box, it was attached with SAS disks and has connection to SAN storage via fiber.

This is the result:
$ /usr/sbin/ioscan -fnkCext_bus
Class I H/W Path Driver S/W State H/W Type Description
==================================================================================
ext_bus 0 0/0/2/1.0.16 UsbScsiAdaptor CLAIMED INTERFACE USB SCSI Stack Adaptor
ext_bus 1 0/1/1/0 mpt CLAIMED INTERFACE SCSI Ultra320 A6961-60011
/dev/mpt1
ext_bus 2 0/1/1/1 mpt CLAIMED INTERFACE SCSI Ultra320 A6961-60011
/dev/mpt2
ext_bus 3 0/3/1/0.1.0.239.0 fcd_vbus CLAIMED INTERFACE FCP Array Interface
ext_bus 4 0/3/1/0.1.0.255.14 fcd_vbus CLAIMED INTERFACE FCP Device Interface
ext_bus 7 0/4/1/0.0.0 sasd_vbus CLAIMED INTERFACE SAS Device Interface
ext_bus 8 0/4/2/0.0.0 sasd_vbus CLAIMED INTERFACE SAS Device Interface
ext_bus 5 0/7/1/0.1.8.239.0 fcd_vbus CLAIMED INTERFACE FCP Array Interface
ext_bus 6 0/7/1/0.1.8.255.14 fcd_vbus CLAIMED INTERFACE FCP Device Interface


as you can see, the sequence of instance numbers go like:
first USB devices, then FCP, then SAS.

What I want is, it that the root disk (SAS) to have instance number 3 and 4 so that the device names will be c3t0d0...

I know i can use ioscan to prepare a mapfile, manualy change instance numbers of ext_bus.
delete /etc/ioconfig , /stand/ioconfig and reboot in single-user mode to force to generate a new ioconfig.

then I run /sbin/ioinit -f mapfile -r
hope that will force the instance numbes will be swapped, and the device files of vg00 disks will changed too

but it's not working as I want to. I must have forgotten something.

do I need to rmsf everything?
Delete /dev/rdsk, /dev/dsk?

Some guideline will be great, thanks in advance.

William
5 REPLIES 5
skt_skt
Honored Contributor

Re: Change instance number of current VG00

William Wan_1
Frequent Advisor

Re: Change instance number of current VG00

Thanks for the instruction of how to handle with ioconfig. These are the steps I took too.

But my actual question is:
How to re-confige the VG00

using ioinit, i changed the interface for SAS controller (where root disk attached)
from 5 to 3, so my root disk will change from
c5t0d0 to c3t0d0.

I think I need to vgexport VG00, rm /dev/dsk/* /dev/rdsk/*
and reboot again in lm mode to rebuild to VG00
Ramesh S
Esteemed Contributor

Re: Change instance number of current VG00

Hi

If you want to update the new device file on /etc/lvmtab,

you could move the /etc/lvmtab and run vgscan -pv

If it doesn't update the work, you could create map file and vgimport in maitenance mode

Best Regards
Ramesh S

Eric SAUBIGNAC
Honored Contributor
Solution

Re: Change instance number of current VG00

Bonjour William,

"Then I run /sbin/ioinit -f mapfile -r
hope that will force the instance numbes will be swapped, and the device files of vg00 disks will changed too"

With HP-UX 11.23 or lower, it will not. Starting from HP-UX 11.31, device file names will not change even if you modify hardware instanciation and if you use new DSF but legacy files.

Assuming you are working with 11.23, you must import vg00 with new device file names. Here is a general guide :

- boot in maintenance mode (-lm)
- vgexport -m vg00.map vg00
- ioscan
- insf -e
- locate the new device file name for system disk. Assuming this name is now /dev/dsk/c3t0d0 ...
- mkdir /dev/vg00
- mknod /dev/vg00/group c 64 0x000000
- vgimport -m vg00.map vg00 /dev/dsk/c3t0d0s2
- vgchange -a y vg00
- mountall (errors on other vg than vg00, but doesn't matter)
- su - root
- lvlnboot -R (check with lvlnboot -v)
- setboot -p HardwarePathOfSystemDisk (can get it with lssf /dev/dsk/c3t0d0)
- sync;sync;reboot -r

It should be better now

Regards

Eric
William Wan_1
Frequent Advisor

Re: Change instance number of current VG00

Yes, I was looking for the guideline of rebuilding VG00..
thanks