Problems with VG00

 
Gustavo Souza Lima
Frequent Advisor

Problems with VG00

Hi guys,

I have a big problem. I have a server with HPUX 11.00 and the VG00 was setting to work with Mirror, but always that the sync process ran the mirror disk was unavailable status. I try to reconfigure the mirror settings but when I try to extend the VG00 again and run vgscan -v command the vg00 didn't appear in the lvmtab file. I believe my problems with mirror happend because of the vg00 trouble.
I read a article about LVM Maintenance Mode on HPUX and I saw it's possible to export/import the VG00 in this Mode. My question is: My problem will be solved if I export/import the VG00 in this Mode???

Please anyone help me!!!!
Regards
26 REPLIES 26
Adam W.
Valued Contributor

Re: Problems with VG00

Gustavo,
Run the command ioscan -Fnc disk and post the output.
There are two types of people in the world, Marines and those who wish they were.
Adam W.
Valued Contributor

Re: Problems with VG00

HA typo, ioscan -fnC disk
There are two types of people in the world, Marines and those who wish they were.
Gustavo Souza Lima
Frequent Advisor

Re: Problems with VG00

Follow.. the ioscan command.
PS.: the disk c1t6d0 was the mirror disk, but now I remove the mirror configuration, so the VG00 is using only the disk c2t6d0.

svuxpmt1:/# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
======================================================================================
disk 0 0/0/1/0.1.0 sdisk CLAIMED DEVICE HP DVD-ROM 304
/dev/dsk/c0t1d0 /dev/rdsk/c0t1d0
disk 333 0/0/2/0.6.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c1t6d0 /dev/rdsk/c1t6d0
disk 1 0/0/2/1.6.0 sdisk CLAIMED DEVICE SEAGATE ST318203LC
/dev/dsk/c2t6d0 /dev/rdsk/c2t6d0
disk 41 0/4/0/0.97.117.19.0.0.0 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c54t0d0 /dev/rdsk/c54t0d0
disk 44 0/4/0/0.97.117.19.0.0.1 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c54t0d1 /dev/rdsk/c54t0d1
disk 45 0/4/0/0.97.117.19.0.0.2 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c54t0d2 /dev/rdsk/c54t0d2
disk 46 0/4/0/0.97.117.19.0.0.3 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c54t0d3 /dev/rdsk/c54t0d3
disk 47 0/4/0/0.97.117.19.0.0.4 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c54t0d4 /dev/rdsk/c54t0d4
disk 48 0/4/0/0.97.117.19.0.0.5 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c54t0d5 /dev/rdsk/c54t0d5
disk 49 0/4/0/0.97.117.19.0.0.6 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c54t0d6 /dev/rdsk/c54t0d6
disk 50 0/4/0/0.97.117.19.0.0.7 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c54t0d7 /dev/rdsk/c54t0d7
disk 51 0/4/0/0.97.117.19.0.1.0 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c54t1d0 /dev/rdsk/c54t1d0
disk 52 0/4/0/0.97.117.19.0.1.1 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c54t1d1 /dev/rdsk/c54t1d1
disk 53 0/4/0/0.97.117.19.0.1.2 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c54t1d2 /dev/rdsk/c54t1d2
disk 54 0/4/0/0.97.117.19.0.1.3 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c54t1d3 /dev/rdsk/c54t1d3
disk 55 0/4/0/0.97.117.19.0.1.4 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c54t1d4 /dev/rdsk/c54t1d4
disk 42 1/10/0/0.106.116.19.0.0.0 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c53t0d0 /dev/rdsk/c53t0d0
disk 43 1/10/0/0.106.116.19.0.0.1 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c53t0d1 /dev/rdsk/c53t0d1
disk 56 1/10/0/0.106.116.19.0.0.2 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c53t0d2 /dev/rdsk/c53t0d2
disk 57 1/10/0/0.106.116.19.0.0.3 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c53t0d3 /dev/rdsk/c53t0d3
disk 58 1/10/0/0.106.116.19.0.0.4 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c53t0d4 /dev/rdsk/c53t0d4
disk 59 1/10/0/0.106.116.19.0.0.5 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c53t0d5 /dev/rdsk/c53t0d5
disk 60 1/10/0/0.106.116.19.0.0.6 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c53t0d6 /dev/rdsk/c53t0d6
disk 61 1/10/0/0.106.116.19.0.0.7 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c53t0d7 /dev/rdsk/c53t0d7
disk 62 1/10/0/0.106.116.19.0.1.0 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c53t1d0 /dev/rdsk/c53t1d0
disk 63 1/10/0/0.106.116.19.0.1.1 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c53t1d1 /dev/rdsk/c53t1d1
disk 64 1/10/0/0.106.116.19.0.1.2 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c53t1d2 /dev/rdsk/c53t1d2
disk 65 1/10/0/0.106.116.19.0.1.3 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c53t1d3 /dev/rdsk/c53t1d3
disk 66 1/10/0/0.106.116.19.0.1.4 sdisk CLAIMED DEVICE DGC CX3-80WDR5
/dev/dsk/c53t1d4 /dev/rdsk/c53t1d4
Adam W.
Valued Contributor

Re: Problems with VG00

I am confused as to your issue. You want to mirror it? If it was mirrored why was the mirror removed?
There are two types of people in the world, Marines and those who wish they were.
Adam W.
Valued Contributor

Re: Problems with VG00

also are you using Veritas, ONline JFS?
There are two types of people in the world, Marines and those who wish they were.
Adam W.
Valued Contributor

Re: Problems with VG00

If your looking to mirror here is the procedure I use. (Online JFS)

A. pvcreate â B /dev/rdsk/c?t?d?
(to make the local disk2 to a bootable physical volume.)

B. vgextend /dev/vg00 /dev/dsk/c?t?d?
(to encase local disk2 into volume group vg00)

C. mkboot â l /dev/rdsk/c?t?d?
(to place the boot utilities into the boot area of the disk)

D. mkboot â a â hpux â lq (;0)/stand/vmunixâ /dev/rdsk/c?t?d?
( points disk to /stand Dir.)
NOTE: -lq needed if only 2 disks exist in the mirroring; otherwise when booting it wonâ t boot (if one disk is bad) and need to do ISL> hpux-lq

E. lvextend â m 1 /dev/vg00/lvol1 /dev/dsk/c?t?d?
(do this for all lvols on disk1 to disk2)

F. lvlnboot â b /dev/vg00/lvol1
(make bootable lvol)

G. lvlnboot â r /dev/vg00/lvol3
(makes root lvol)

H. lvlnboot â s /dev/vg00/lvol2
(makes swap lvol)

I. lvlnboot â d /dev/vg00/lvol2
(makes lvol2 dump space)

J. lvlnboot â v
(to confirm you see both bootable disks)

K. lvdisplay â v /dev/vg00/lvol[1-?]
(to ensure both disks are available and current/synched and not stale)

L. setboot â a ?/?/?/?.?.?.?.? (physical address)
(sets disk2 as backup boot disk in case primary failes)
NOTE: the â a is for alternate, if primary is needed the argument is -p
There are two types of people in the world, Marines and those who wish they were.
Adam W.
Valued Contributor

Re: Problems with VG00

All of the "â  " in the above are "-"
There are two types of people in the world, Marines and those who wish they were.
Adam W.
Valued Contributor

Re: Problems with VG00

Attached is the "text" version of what I use
There are two types of people in the world, Marines and those who wish they were.
Gustavo Souza Lima
Frequent Advisor

Re: Problems with VG00

Sorry..
Let me explain better...

There was a mirror configuration on this server, but the mirror disk (c1t6d0) crashed and I tried to change the disk twice, but all the time, the disk c1t6d0 was unavailable when the sync process started. Because of that I remove the mirror configuration and changed the disk (c1t6d0) again and tried to reconfigure the mirror, but when I tried to run the command vgscan -v to recreate the lvmtab file, the VG00 didn't appeared.

Now Can you understand???
Sorry for the distarbe...