Operating System - HP-UX
1753820 Members
9123 Online
108805 Solutions
New Discussion юеВ

Re: why lvol1 was created as well as I just created vg01

 
SOLVED
Go to solution
Tingli
Esteemed Contributor

Re: why lvol1 was created as well as I just created vg01

Also, the info can be kept in /etc/lvmtab, which can be migrated in if the system is cloned.
Hanry Zhou
Super Advisor

Re: why lvol1 was created as well as I just created vg01

I missed steps mkdir /dev/vg01, mknod...

But now when I do vgcreate, I am getting the error message. it complains the disk is not correct. but I do have this disk.

> vgcreate -e 65535 -s 128 /dev/vg01 /dev/dsk/c3t0d1
vgcreate: Volume group "/dev/vg01" could not be created:
The path does not specify a valid physical volume.

> diskinfo /dev/rdsk/c3t0d1
SCSI describe of /dev/rdsk/c3t0d1:
vendor: HP
product id: LOGICAL VOLUME
type: direct access
size: 716709848 Kbytes
bytes per sector: 512


none
Patrick Wallek
Honored Contributor

Re: why lvol1 was created as well as I just created vg01

>>crw-r--r-- 1 root sys 64 0x010000 Jun 16 2009 group

The VG was not completely removed before you ran your vgcreate. Wipe /dev/vg01 completely via 'vgexport' and start from scratch.
Hanry Zhou
Super Advisor

Re: why lvol1 was created as well as I just created vg01

I did pvcreate on this disk again, and now everything went alright.
none
Patrick Wallek
Honored Contributor

Re: why lvol1 was created as well as I just created vg01

I have assigned points to 884 of 1837 responses to my questions.


You really should remedy that.
Jim Walls
Trusted Contributor

Re: why lvol1 was created as well as I just created vg01

Have you created the Physical Volume? The disc needs to be set up as a PV before it can by used in group:

pvcreate /dev/rdsk/c3t0d1