Operating System - HP-UX
1753640 Members
5292 Online
108798 Solutions
New Discussion юеВ

Re: A question about Create VG.

 
SOLVED
Go to solution
chixy_1
New Member

A question about Create VG.

I have already created a VG 'vg01'
by command " #vgcreate /dev/vg01 /dev/dsk/c3t5d0 ".
But I can't use vgdisplay to view the VG status.
When I type 'vgdisplay vg01' it saids 'Volumn Group "/dev/vg01" does not exist in the "/etc/lvmtab" file'.
Why? How to do?
Just do it.
4 REPLIES 4
Balaji N
Honored Contributor
Solution

Re: A question about Create VG.

hi,

was the command vgcreate successful.

i mean, did u create the /dev/vg01 directory, group file and then use vgcreate to create the vg.

in case your lvmtab is corrupted, this error might occur as well. in that case,

1. mv /etc/lvmtab /etc/lvmtab.orig.

2. vgscan -v -a -p (preview mode)

3. vgscan -a -v (to recreate lvmtab)

but i will do this only if doubt that my lvmtab is corrupted.

-balaji

Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Michael Tully
Honored Contributor

Re: A question about Create VG.

Before you try to create a volume group, you must create a major device for the group.

e.g.

# pvcreate /dev/rdsk/c3t5d0
# mkdir /dev/myvg
# mknod /dev/myvg/group c 64 0x020000
# vgcreate /dev/myvg /dev/dsk/c3t5d0

Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome."
Anyone for a Mutiny ?
T G Manikandan
Honored Contributor

Re: A question about Create VG.

First check whether your /dev/vg01 dir exist!

If not you should follow the below steps in creating VG


# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
Make sure the minor number is unique 0x010000.

you can do a
#ll /dev/vg*/group
to make sure it is unique.

#vgcreate /dev/vg01 /dev/dsk/c3t5d0

chixy_1
New Member

Re: A question about Create VG.

I've resolved the problem by recreate lvmtab.
Thank you.
Just do it.