1753838 Members
9918 Online
108806 Solutions
New Discussion юеВ

Re: New lvol

 
SOLVED
Go to solution
David Dangerfield_1
Frequent Advisor

New lvol

I had to replace a internal hard drive. Once done I need to create VG, LVOL etc. While trying to do this I see the replace hard drive as unused. Select that drive to create all items. Once i try to add it comes back that vg01 already exist. Is there a way to clear that out so i can use that vg01 as my VG.

THANKS
4 REPLIES 4
Analyst
Trusted Contributor
Solution

Re: New lvol

Hi David,

While creating the vg,plz check the following

ls -l /dev/vg*

make sure the vg name not exist. if exist remove it .

we have to create a group file for the vg creation using

mknod /dev/vg*/group c 0x0nn0000.

hence follow the lv creation.

Thanks,
Analyst.


Animesh Chakraborty
Honored Contributor

Re: New lvol

If you are replacing a disk for vg01 then you should do

vgcfgrestore -n /dev/vg00 /dev/rdsk/cxtydz


Did you take a backup?
Animesh Chakraborty
Honored Contributor

Re: New lvol

Sorry it should be vg01
#vgcfgrestore -n /dev/vg01 /dev/rdsk/c0t7d0

if you do not want to restore then make sure vg01 not in use then do #vgexport vg01
Did you take a backup?
Torsten.
Acclaimed Contributor

Re: New lvol

Hi David,

>>"I had to replace a internal hard drive"

Was this drive in use before?

>>"Once done I need to create VG, LVOL etc"

Same structure as on the old drive?

If yes, then have a look at:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!