1832592 Members
3206 Online
110043 Solutions
New Discussion

Not able to reduce vg00

 
Binukuttan VM_1
Frequent Advisor

Not able to reduce vg00

Hi all,

Please tell me how to reduce a missing OV from vg00

one of the root disk was mirrored ( /dev/dsk/c1t2d0) with /dev/dsk/c2t2d0. c1t2d0 failed and i am not able to replace the fialed one.

I tried

1. replaced the failed.
2. Pvcreate -fB /dev/rdsk/c1t2d0
--- given error already exists /etc/lvmtab ----
3.Tried vgcfgrestore /dev/vg00 /dev/dsk/c1t2d0
..Given I/O error

So i put the disk in another slot( disk is hotswappable) and

pvcreate -fB /dev/dsk/c0t1d0
mkboot -l /dev/dsk/c0t1d0
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t1d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c0t1d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t1d0

but lvlnboot -v ==== does'nt show any details

Only error can't query /dev/dsk/c1t2d0


pls tell how to overcome this error or vgreduce this.


All suggestions will be appreciated highly

regds

Binu
12 REPLIES 12
Eknath
Trusted Contributor

Re: Not able to reduce vg00

Hi Binu

Here are the steps i follow
1. ioscan -H path### (eg 0/4/0/0 do not use .) # put disk as claimed from no-hw
2. ioscan -funC disk|more # check to see hw is claimed
3. mv /etc/lvmtab /etc/lvmtab.old # pvcreate fails if disk is in lvmtab
4. pvcreate -f -B /dev/rdsk/c_t_d0 # sets aside a boot area
5. mv /etc/lvmtab.old /etc/lvmtab # moves it back
6. vgcfgrestore -n vg00 /dev/rdsk/c_t_d0 # restores headers on drive
7. vgchange -a y /dev/vg00 # puts drive online
8. vgsync vg00 # if disk does not automatically start syncing (if stale)
9. mkboot /dev/rdsk/c_t_d0 # puts the boot sector in the boot area
10. mkboot -a "hpux -lq" /dev/rdsk/c_t_d0 # puts HPUX in the auto file
11. lvlnboot -Rv /dev/vg00 # updates the LIF with the info from the BDRA
12. cd /usr/sbin/diag/lif
13. mkboot -b updatediaglif -p ISL -p HPUX -p LABEL -p AUTO /dev/rdsk/c_t_d0 # to put ODE, etc. back on boot area
14. vgdisplay -v vg00 # to check it

Hope this will work...

Cheers
Adisuria Wangsadinata_1
Honored Contributor

Re: Not able to reduce vg00

Hi Binu,

Good day to you !
Check the document at the url below (document-ID : LVMKBRC00006116) about 'Replacing a mirrored root disk' :

http://www6.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000068955762

Hope this can help you.

Cheers,
AW
now working, next not working ... that's unix
Suraj Singh_1
Trusted Contributor

Re: Not able to reduce vg00

Hi Binu,

Reverse the steps you have done, i.e., lvreduce the logical volumes, and put the disk back on the slot where the disk failed.

Now perform the following steps:
1. # pvcreate -Bf /dev/rdsk/c1t2d0
2. # vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t2d0
3. # vgchange -a y /dev/vg00
4. # mkboot -l /dev/rdsk/c1t2d0
5. # mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t2d0
6. # vgsync /dev/vg00

Now confirm if the disk is indeed mirrored:
# lvlnboot -v

Take the backup of vg00:
# vgcfgbackup vg00

Hope this helps,
Regards,
Suraj
What we cannot speak about we must pass over in silence.
Enrico P.
Honored Contributor

Re: Not able to reduce vg00

Hi,

vgreduce -l vg00 /dev/dsk/c1t2d0

Enrico
Hoang Chi Cong_1
Honored Contributor

Re: Not able to reduce vg00

See this site:
http://www.unixadm.net/howto/bad_disk.html

Regard,
Hoang Chi Cong
Looking for a special chance.......
Binukuttan VM_1
Frequent Advisor

Re: Not able to reduce vg00

Hi all,

Thanks for the immediate response,but pls advice , if am doing pvcreate -fB /dev/dsk/c1t2d0..it says error entry already exists in /etc/lvmtab

pls reply

regs

binu
Thayanidhi
Honored Contributor

Re: Not able to reduce vg00

If "vgdisplay -v" reports the second disk is missing, also "lvdisplay -v" is showing ??? in the missing disk, then "lvreduce -k -m 0"
to forcebly the LV mirrors and reduce the PV forcebly with "vgreduce -l" (also removes the entry in lvmtab). See manapages for all aove commands. Then stsrt from pvcreate .....

Regds
TT
Attitude (not aptitude) determines altitude.
Kurt Beyers.
Honored Contributor

Re: Not able to reduce vg00

Binu,

Remove (or rename) the file /etc/lvmtab and create it afterwards again with the command vgscan.

The correct entries are placed now again in /etc/lvmtab. Afterwards the creation of the new mirrored disk will succeed.

best regards,
Kurt
Binukuttan VM_1
Frequent Advisor

Re: Not able to reduce vg00

I tried
#mv /etc/lvmtab /etc/lvmtab.old
#vgscan -a
--Error gives says that /dev/dsk/c1t2d0 not found.lvmtab not created
Binukuttan VM_1
Frequent Advisor

Re: Not able to reduce vg00

I have done these following steps but ..

1. ioscan -H path### (eg 0/4/0/0 do not use .) # put disk as claimed from no-hw
2. ioscan -funC disk|more # check to see hw is claimed
3. mv /etc/lvmtab /etc/lvmtab.old # pvcreate fails if disk is in lvmtab
4. pvcreate -f -B /dev/rdsk/c_t_d0 # sets aside a boot area
5. mv /etc/lvmtab.old /etc/lvmtab # moves it back
6. vgcfgrestore -n vg00 /dev/rdsk/c_t_d0 # restores headers on drive


----HERE i got the error that /dev/dsk/c0t1d0 cannot queried..I/O error. (Confirmed disk has no problem)


pls help
Enrico P.
Honored Contributor

Re: Not able to reduce vg00

Hi,
have you tried with

vgreduce -l vg00

Enrico
joinsiva
Advisor

Re: Not able to reduce vg00

binu,

1.First reduce all your lv mirrors in vg00 from the failed disk forcefully.

lvreduce -k -m 0 /dev/vg00/lvol$i

2.Do vgreduce that disk forcefully.

vgreduce -l /dev/vg00 /dev/dsk/c1t2d0

3.mv lvmtab to lvmtab.old

4.vgscan -v

5. Add the disk and Do the new mirroring.

regards
sivakumar p.