Operating System - HP-UX
1752689 Members
5214 Online
108789 Solutions
New Discussion юеВ

Re: vgcreate: Volume group "/dev/vg01" could not be created: Unable to read the physical volume.

 
SOLVED
Go to solution
gobi_1
Frequent Advisor

vgcreate: Volume group "/dev/vg01" could not be created: Unable to read the physical volume.

hi error below occurs during vgcreate, any recommendation??? thanks

# vgcreate -s 256 /dev/vg01 /dev/dsk/c6t0d0
Increased the number of physical extents per physical volume to 1599.
vgcreate: Volume group "/dev/vg01" could not be created:
Unable to read the physical volume.
# diskinfo /dev/rdsk/c6t0d0
SCSI describe of /dev/rdsk/c6t0d0:
vendor: DGC
product id: CX4-480WDVR
type: direct access
size: 419430400 Kbytes
bytes per sector: 512
5 REPLIES 5
Aneesh Mohan
Honored Contributor

Re: vgcreate: Volume group "/dev/vg01" could not be created: Unable to read the physical volume.


Do first
#pvcreate /dev/rdsk/c6t0d0

Aneesh
SoorajCleris
Honored Contributor
Solution

Re: vgcreate: Volume group "/dev/vg01" could not be created: Unable to read the physical volume.

Hi,

Strings /etc/lvmtab

check if the disk is mentioned.

#mount

check if the disk is mounted as whole disk

# vxdisk list

check if /dev/dsk/c6t0d0 is a vxvm disk

#swapinfo -tam

check if this disk used as swpap


If all tests are fine , do

pvcreate /dev/rdsk/c6t0d0

check if any error message

pvcreate -f /dev/rdsk/c6t0d0

then do vgcreate.

If still you have read error, try to use #dd command adn do testing

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
TwoProc
Honored Contributor

Re: vgcreate: Volume group "/dev/vg01" could not be created: Unable to read the physical volume.

Like the others, I think you forgot to do the "pvcreate" command. This readies a disk to be used to lvm. If you're not going to use lvm on a disk, then you don't need to run pvcreate. In your case, you do.
We are the people our parents warned us about --Jimmy Buffett
Ismail Azad
Esteemed Contributor

Re: vgcreate: Volume group "/dev/vg01" could not be created: Unable to read the physical volume.

run pvcreate with the -f option in case there are some other structures for other disk partitioning approaches already present.

pvcreate -f /dev/rdisk/c6t0d0
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgcreate -s 256 /dev/vg01 /dev/dsk/c6t0d0.

Regards
Read, read and read... Then read again until you read "between the lines".....
gobi_1
Frequent Advisor

Re: vgcreate: Volume group "/dev/vg01" could not be created: Unable to read the physical volume.

thanks all you guys, all work fine now.