Operating System - HP-UX
1846447 Members
2549 Online
110256 Solutions
New Discussion

Re: remove boot disk trouble

 
SOLVED
Go to solution
Hoang Chi Cong_1
Honored Contributor

remove boot disk trouble

Dear all,
I get stuck with remove a boot disk :(
Something wrong with me?

I have rp5470 running with HP-UX 11i version
Here is screen when check by lvlnboot command:
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t0d0 (0/0/1/1.0.0) -- Boot Disk
/dev/dsk/c2t0d0 (0/0/2/0.0.0)
Boot: lvol1 on: /dev/dsk/c1t0d0
Root: lvol3 on: /dev/dsk/c1t0d0
Swap: lvol2 on: /dev/dsk/c1t0d0
Dump: lvol2 on: /dev/dsk/c1t0d0, 0



I did as follow:
1. Break all of mirror with every logical volume in vg00.
2. Try to reduce that disk from vg00:
vgreduce /dev/vg00 /dev/dsk/c2t0d0
But the error message said that the disk was used.
Check for vgdisplay says:
PV Name /dev/dsk/c2t0d0
PV Status available
Total PE 4340
Free PE 4218
Autoswitch On

Means that the pv was used 122 PE.
But I have breaked all of LVM mirror.Where are the allocated PE?
How to remove that disk in this case?
Thanks a lot.
Looking for a special chance.......
4 REPLIES 4
Luk Vandenbussche
Honored Contributor
Solution

Re: remove boot disk trouble

Hi,
Somewhere some PE are still in use

Type

pvdisplay -v /dev/dsk/c2t0d0
to find out to which logical volume the belong.

Afterwards type
vgdisplay -v /dev/vg00/lvolx
to check the status of the logical volume
RAC_1
Honored Contributor

Re: remove boot disk trouble

pvdisplay on disk.

vgdisplay - check currents pvs and active pvs.
There is no substitute to HARDWORK
Hoang Chi Cong_1
Honored Contributor

Re: remove boot disk trouble

That my careless!
Thanks to Luk Vandenbussche and RAC!
I have checked and passed with a logical volume /dev/vg00/lvol13 :):):):)
It like /lvol3........
OK now!
Thanks a lot.
I will remmember and hope never meet it again :)
Have a nice weekend!
Looking for a special chance.......
Hoang Chi Cong_1
Honored Contributor

Re: remove boot disk trouble

Thread closed!
Looking for a special chance.......