Operating System - HP-UX
1830171 Members
6016 Online
109999 Solutions
New Discussion

vgcreate: IO error on Physical Volume device /dev/dsk/c7t2d2

 
Muda Ikhsan
Advisor

vgcreate: IO error on Physical Volume device /dev/dsk/c7t2d2

Hi.. Sorry it's me again.. i think i'm hits by problems today... another problem came when i try to do the vgcreate

# vgscan -p -v
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vgsapdbp011".
vgscan: The physical volume "/dev/dsk/c1t2d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c2t2d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c7t0d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c7t0d1" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c7t0d2" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c7t0d3" is already recorded in the "/etc/lvmtab" file.
Physical Volume "/dev/dsk/c3t2d0" contains no LVM information
Physical Volume "/dev/dsk/c7t0d4" contains no LVM information
Physical Volume "/dev/dsk/c7t0d5" contains no LVM information
Physical Volume "/dev/dsk/c7t0d6" contains no LVM information
Physical Volume "/dev/dsk/c7t0d7" contains no LVM information
Physical Volume "/dev/dsk/c7t1d0" contains no LVM information
Physical Volume "/dev/dsk/c7t1d1" contains no LVM information
Physical Volume "/dev/dsk/c7t1d2" contains no LVM information
Physical Volume "/dev/dsk/c7t1d3" contains no LVM information
Physical Volume "/dev/dsk/c7t1d4" contains no LVM information
Physical Volume "/dev/dsk/c7t1d5" contains no LVM information
Physical Volume "/dev/dsk/c7t1d6" contains no LVM information
Physical Volume "/dev/dsk/c7t1d7" contains no LVM information
Physical Volume "/dev/dsk/c7t2d0" contains no LVM information
Physical Volume "/dev/dsk/c7t2d1" contains no LVM information
Physical Volume "/dev/dsk/c7t2d2" contains no LVM information

/dev/vg00
/dev/dsk/c1t2d0
/dev/dsk/c2t2d0

/dev/vgsapdev
/dev/dsk/c7t0d0

/dev/vginfdev
/dev/dsk/c7t0d1
/dev/dsk/c7t0d2

/dev/vgsapp01
/dev/dsk/c7t0d3

The Volume Group /dev/vgsapdbp011/group was not matched with any Physical Volumes.
# vgcreate /dev/vgsapdbp011 /dev/dsk/c7t2d2
vgcreate: IO error on Physical Volume device /dev/dsk/c7t2d2: #
5 REPLIES 5
Massimo Bianchi
Honored Contributor

Re: vgcreate: IO error on Physical Volume device /dev/dsk/c7t2d2

Hi,
try

pvcreate /dev/dsk/c7t2d2


pvcreate is used to initialize the disk for lvm use.

see "man pvcreate"

HTH,
Massimo
Massimo Bianchi
Honored Contributor

Re: vgcreate: IO error on Physical Volume device /dev/dsk/c7t2d2

Sorry,
pressed "submit" too fast.


After the pvcreate, check the presence od group file and finally do the vgcreate /dev/dsk/c7t2d2



If there are errors with the pvcreate, you must first make sure that the disk is scratchabel, and the use the force flag:

pvcreate -f /dev/dsk/c7t2d2

and again the vgcreate


HTH,
Massimo
Michael Tully
Honored Contributor

Re: vgcreate: IO error on Physical Volume device /dev/dsk/c7t2d2

Many times if and when a disk has been used before, it may display messages (after attempting to run pvcreate or vgcreate) like IO errors and or it is part of a volume group. If you are sure that the disk is not used then you can run:

# pvcreate -f /dev/rdsk/cxtydz
Once you have used the -f (force flag) you can then use the disk to either create a volume group or add further disks to it. (vgextend)

Here's pretty much a standard procedure for creating a new group.

# mkdir /dev/myvg
# mknod /dev/myvg/group c 64 0x040000 (example)
# pvcreate -f /dev/rdsk/cxtydz
# vgcreate -p 128 /dev/myvg /dev/dsk/cxtydz
Now you are ready to start creating logical volumes (see lvcreate man page)

Running 'vgscan' does have it's dangers, please read the man pages for it.
Anyone for a Mutiny ?
Ravi_8
Honored Contributor

Re: vgcreate: IO error on Physical Volume device /dev/dsk/c7t2d2

Hi,

#ioscan -fnC disk

check whether machine is recognizing the disk or not.
if recognizing
#pvcreate -f /dev/rdsk/cxtxdx

and then procedures as given by Michel tully
never give up
Suresh Patoria
Super Advisor

Re: vgcreate: IO error on Physical Volume device /dev/dsk/c7t2d2

Hi,

i think disk not recongnized in the system

first you check the disk presence in the system using the ioscan -fnC disk

After recognizing disk

pvcreate /dev/dsk/c7d2d2

create the /dev/vgsapdbp011 directory

create the group file using the following command

mknod /dev/vgsapdbp011/group c 64 0x050000

vgcreate -d /dev/vgsapdbp011 /dev/dsk/c7t2d2


after above things then run vgscan -a -v command