Operating System - HP-UX
1748211 Members
4800 Online
108759 Solutions
New Discussion юеВ

Unable to see volume groups and lvol's on system

 
SOLVED
Go to solution
Darrell Albee
Advisor

Re: Unable to see volume groups and lvol's on system

I also noticed that if I change to the directory /dev/vg01 it shows "lvol1" and "lvol2" which do not belong there and if I change to the directory /dev/vg02 it shows "lvol1" which does not belong there either. Is it okay to remove these too?
Vijaykumar_1
Valued Contributor

Re: Unable to see volume groups and lvol's on system

Hello Darrell,

Looking at the SAM o/p , it looks like you have create lvol "igi" under VG01 and lvol "data" under VG02.

If the answer is YES, and if you have not created any other lvol's under these VG's then obviously you can remove the unused lvol's under vg01 and vg02.

The following commands will help you do that..

#lvremove -f /dev/vg01/lvol1
#lvremove -f /dev/vg01/lvol2
#lvremove -f /dev/vg02/lvol1
#vgcfgbackup /dev/vg01
#vgcfgbackup /dev/vg02
Darrell Albee
Advisor

Re: Unable to see volume groups and lvol's on system

I tried the commands you suggested and it would not remove any of them. I even rebooted into single user mode and tried it. In Single User Mode only 1 was able to be removed which was /dev/vg02/lvol1. When I try to remove the other two I get the error: that the logical volume is either open or a sparing operation is in progress. There is no sparing operation in progress and the logical volume is not open especially since it is labeled as "unused". Any else you can think of that I can try?
Darrell Albee
Advisor

Re: Unable to see volume groups and lvol's on system

Everyones input was helpful in finding a solution to this problem. Thank you