1836574 Members
2530 Online
110102 Solutions
New Discussion

Volume Group Problem

 
Muda Ikhsan
Advisor

Volume Group Problem

 
10 REPLIES 10
Patrick Wallek
Honored Contributor

Re: Volume Group Problem

What steps did you take to create the VG?

The command you used and any output from the command would be helpfule. So would the output of 'ls /dev/*/group'.

Did you do:

# mkdir /dev/vgsapdbp011/
# mknod /dev/vgsapdbp011/group c 64 0x??0000

# pvcreate /dev/rdsk/c?t?d?
If necessary

# vgcreate ---????? What options and any output from the command.

It really sounds like you missed some steps somewhere.
Muda Ikhsan
Advisor

Re: Volume Group Problem

Hi..
I'm doing these steps for creating the VG .

#mkdir /dev/vgsapdbp011
# ls -ll /de/*/group (checking the minor & major number)
# mknod /dev/vgsapdbp011/group c 64 0x040000
Muda Ikhsan
Advisor

Re: Volume Group Problem

hi all the pv are created
ll /dev/rdsk/
total 0
crw-r----- 1 bin sys 188 0x012000 Jul 8 10:43 c1t2d0
crw-r----- 1 bin sys 188 0x022000 Jul 8 10:43 c2t2d0
crw-r----- 1 bin sys 188 0x032000 Nov 15 2002 c3t2d0
crw-r----- 1 bin sys 188 0x040000 Apr 12 18:34 c4t0d0
crw-r----- 1 bin sys 188 0x040100 Apr 12 18:40 c4t0d1
crw-r----- 1 bin sys 188 0x040200 Apr 12 18:40 c4t0d2
crw-r----- 1 bin sys 188 0x040300 Apr 15 18:33 c4t0d3
crw-r----- 1 bin sys 188 0x040400 Apr 15 18:33 c4t0d4
crw-r----- 1 bin sys 188 0x040500 Apr 15 18:33 c4t0d5
crw-r----- 1 bin sys 188 0x040600 Apr 15 18:32 c4t0d6
crw-r----- 1 bin sys 188 0x040700 Apr 15 18:32 c4t0d7
crw-r----- 1 bin sys 188 0x070000 Apr 17 10:20 c7t0d0
crw-r----- 1 bin sys 188 0x070100 Apr 17 10:20 c7t0d1
crw-r----- 1 bin sys 188 0x070200 Apr 17 12:02 c7t0d2
crw-r----- 1 bin sys 188 0x070300 Apr 17 10:20 c7t0d3
crw-r----- 1 bin sys 188 0x070400 Jul 7 16:46 c7t0d4
crw-r----- 1 bin sys 188 0x070500 Jul 7 17:26 c7t0d5
crw-r----- 1 bin sys 188 0x070600 Jul 7 16:45 c7t0d6
crw-r----- 1 bin sys 188 0x070700 Jul 7 16:45 c7t0d7
crw-r----- 1 bin sys 188 0x071000 Apr 22 18:22 c7t1d0
crw-r----- 1 bin sys 188 0x071100 Apr 22 18:21 c7t1d1
crw-r----- 1 bin sys 188 0x071200 May 5 15:09 c7t1d2
crw-r----- 1 bin sys 188 0x071300 Jun 11 17:08 c7t1d3
crw-r----- 1 bin sys 188 0x071400 Jun 11 17:12 c7t1d4
crw-r----- 1 bin sys 188 0x071500 Jul 7 17:15 c7t1d5
crw-r----- 1 bin sys 188 0x071600 Jul 7 13:47 c7t1d6
crw-r----- 1 bin sys 188 0x071700 Jul 7 13:47 c7t1d7
crw-r----- 1 bin sys 188 0x072000 Jul 7 13:47 c7t2d0
crw-r----- 1 bin sys 188 0x072100 Jul 7 13:47 c7t2d1
crw-r----- 1 bin sys 188 0x072200 Jul 7 13:47 c7t2d2
Patrick Wallek
Honored Contributor

Re: Volume Group Problem

Did you do a 'vgcreate' command to create the VG?

You haven't mentioned it. If you haven't that's the next step.

# man vgcreate

for more information.
Michael Tully
Honored Contributor

Re: Volume Group Problem

Once you've done these processes:

# mkdir /dev/vgsapdbp011
# ls -ll /de/*/group (checking the minor & major number)
# mknod /dev/vgsapdbp011/group c 64 0x040000

You need to actually create the VG using 'vgcreate'

e.g.
# vgcreate -p 128 /dev/vgsapdbp011 /dev/dsk/cxtydz

Once you've done that the VG is created and you can add further LUN's to it or start to create logical volumes. You should also see infomation in /etc/lvmtab but not until after 'vgcreate' has been run.

Anyone for a Mutiny ?
Suresh Patoria
Super Advisor

Re: Volume Group Problem

Hi,

I think according to me following step may be help you:

1) create /dev/vgsapdbp011 directory

2) create /dev/vgsapdbp011/group file with major and minor number

3) create the physical volume with pvcreate command

4) create the volume grop with vgcreate -f /dev/dsk/* command (be carefull with this step)

5)use the vgchange -a y /dev/vgsapdbp011 to active the volume group

6) Use the vgscan -a -v command

7) Then use the vgdisplay /dev/vgsapdbp011 command to display the volume group information
Sunil Sharma_1
Honored Contributor

Re: Volume Group Problem

Hi,
I have not seen any command you used to create volume group. Whatever error you listed is output of some other commands.

use vgcreate command to create volume group with options you want and if you get any error just give that.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Muda Ikhsan
Advisor

Re: Volume Group Problem

Sorry .. missed that out... i did and got error too.
# vgcreate /dev/vgsapdbp011 /dev/rdsk/c7t1d5
vgcreate: Physical volume "/dev/rdsk/c7t1d5" is not a block special file

# vgcreate /dev/vgsapdbp011 /dev/rdsk/c7t0d6
vgcreate: Physical volume "/dev/rdsk/c7t0d6" is not a block special file
Massimo Bianchi
Honored Contributor

Re: Volume Group Problem

Hi,
when you create a vg you must use the block special file


vgcreate -p 128 vgsapdbp10 /dev/dsk/cxtydz

BTW, i saw that you have the special files, but did you use "pvcreate" on them before trying to create a vg ? This is a necessary step, and i think you can miss it.

HTH,
Massimo

Muda Ikhsan
Advisor

Re: Volume Group Problem

Hi.. tahnk you all.. my problem is solved.. after i playing around with vgreduce, vgimport & vgexport.

Thanks