Operating System - HP-UX
1834704 Members
2817 Online
110069 Solutions
New Discussion

Re: 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

Okay the vgcfgrestore command ran okay and I reactivated it. I tried the "mount -a" command and it did not mount the lvol. If I mound the lvol manually it works. What do I need to do so it mounts automatically?
Vijaykumar_1
Valued Contributor

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

Great.. finally the issue got resolved.

You have to add the entires to /etc/fstab for the filesystems to mount automatically at reboot.
S.N.S
Valued Contributor

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

Dear Darrell,

As Bill Hassell opined, you would be facing more issues due to the incomplete /etc ...

You would need to cross check (with backup)the underlying files or restore /etc from backup before it goes to production....coz U never know....

Plus, you ought to do more homework on your HP-UX ;-)....

Mistakes may be the best teachers, but they may turn out to be nightmare are not too sure of our part!

SNS

(And yes, thanks for the points-some ppl even dont have those manners)
"Genius is 1% inspiration, 99% Perspiration" - Edison
Darrell Albee
Advisor

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

SNS, If you had read my original post you would have realized that I stated that this was a new system and I had not backed it up yet so a restore is out of the question. I am hoping that the one thing I have going for me is I restored from another RX4640 that also had the same version of HP-UX installed. This system being newer, is more up to date with patches so I may still run into problems later. Thanks for your input though :)
Darrell Albee
Advisor

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

Vilaykumar, On the response that I sent a screen shot of output from SAM where it shows some logical volumes as "unused" in the Use column. Is it okay to remove these?
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