Operating System - HP-UX
1829582 Members
1211 Online
109992 Solutions
New Discussion

LVM : disk1 is not able to remove from vg00.

 
Raj D.
Honored Contributor

LVM : disk1 is not able to remove from vg00.

Hi All ,

I am having two disk

/dev/dsk/c0t0d0
/dev/dsk/c0t5d0

I had vg00 , and later added c0t5d0 to this vg. Now my c0t5d0 gone bad and i have removed the HDD . Now i have booted the system and booted fine. [given error for c0t5d0]

But vgscan shows error , can not query /dev/vg00/c0t5d0.

and # strings /etc/lvmtab shows this entry.

/dev/vg00
/dev/dsk/c0t0d0
/dev/dsk/c0t5d0

My question , can i remove the entry of c0t5d0 from my system.

Any help is highly appreciated .
Thanks ,
Raj D.
------
" If u think u can , If u think u cannot , - You are always Right . "
4 REPLIES 4
RAC_1
Honored Contributor

Re: LVM : disk1 is not able to remove from vg00.

vgreduve -f vg00
then
mv /etc/lvmtab /etc/lvmtab.old
vgscan -av

man vgreduce.
man vgscan

Anil
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: LVM : disk1 is not able to remove from vg00.

The vgreduce command will give you an ominous statement and display some steps you must follow after completeing the command.

Complete them carefully.

Also note, even if you totally trash the lvmtab file, your system will continue running.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Raj D.
Honored Contributor

Re: LVM : disk1 is not able to remove from vg00.

Thanks Steven and Anil , i ll do that tomorow and reply ...


Till then bye ,

Thanks ,
Raj D.
------------
" If u think u can , If u think u cannot , - You are always Right . "
Sundar_7
Honored Contributor

Re: LVM : disk1 is not able to remove from vg00.

vgreduce -f vg00 will do.

Alternative way would be to reboot the system in maintenance mode, export vg00 and import it back with only /dev/dsk/c0t0d0.
Learn What to do ,How to do and more importantly When to do ?