1752569 Members
5097 Online
108788 Solutions
New Discussion юеВ

cant create new VG

 
SOLVED
Go to solution
Henry Chua
Super Advisor

cant create new VG

Hi guys,

I try to create a new vg but its not happening..
# vgcreate /dev/vg01 /dev/dsk/c3t5d0
Increased the number of physical extents per physical volume to 1023.
vgcreate: Volume group "/dev/vg01" could not be created:
Device busy

I have created vg01 under /dev then also make the nod using mknod command.. may i know what i did wrong?

Thanks

regards
Henry
10 REPLIES 10
S.Arunkumar
Trusted Contributor

Re: cant create new VG

Hi Henry

Whether PV create is thro for this desired disk.And also find out the diskinfo output for the same device.

Regards
S.Arunkumar



melvyn burnard
Honored Contributor

Re: cant create new VG

just out of interest, can you list the group device files for each vg, such as
ll /dev/vg*/group

Check the minor numbers
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Henry Chua
Super Advisor

Re: cant create new VG

FYI:

#ll /dev/vg*/group
crw-r--r-- 1 root sys 64 0x000000 May 22 1997 /dev/vg00/group
crw-rw-rw- 1 root sys 64 0x030000 Jul 26 16:36 /dev/vg01/group

#diskinfo -v /dev/rdsk/c3t5d0
SCSI describe of /dev/rdsk/c3t5d0:
vendor: SEAGATE
product id: ST34371W
type: direct access
size: 4194157 Kbytes
bytes per sector: 512
rev level: HPM2
blocks per disk: 8388314
ISO version: 0
ECMA version: 0
ANSI version: 2
removable media: no
response format: 2
(Additional inquiry bytes: (32)44 (33)52 (34)33 (35)31 (36)35 (37)36 (38)31 (39)0 (40)0 (41)0 (42)0 (43)0 (44)0 (45)0 (
46)0 (47)0 (48)0 (49)0 (50)0 (51)0 (52)0 (53)0 (54)0 (55)0 (56)0 (57)0 (58)0 (59)0 (60)0 (61)0 (62)0 (63)0 (64)0 (65)0 (66
)0 (67)0 (68)0 (69)0 (70)0 (71)0 (72)0 (73)0 (74)0 (75)0 (76)0 (77)0 (78)0 (79)0 (80)0 (81)0 (82)0 (83)0 (84)0 (85)0 (86)0
(87)0 (88)0 (89)0 (90)0 (91)0 (92)43 (93)6f (94)70 (95)79 (96)72 (97)69 (98)67 (99)68 (100)74 (101)20 (102)28 (103)63 (10
4)29 (105)20 (106)31 (107)39 (108)39 (109)36 (110)20 (111)53 (112)65 (113)61 (114)67 (115)61 (116)74 (117)65 (118)20 (119)
41 (120)6c (121)6c (122)20 (123)0 (124)7f (125)fe (126)da (127)0 (128)0 (129)2 (130)0 (131)0 (132)0 (133)0 (134)0 (135)0 (
136)0 (137)0 (138)0 )


Thayanidhi
Honored Contributor

Re: cant create new VG

Hi,
Try to increase the PE size with -s switch.
(8,16,32 ...etc)
Just a thought.

Regds
TT
Attitude (not aptitude) determines altitude.
Joseph Loo
Honored Contributor
Solution

Re: cant create new VG

hi,

go thru this lengthy post:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=939280

also a good LVM doc (just published):

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

regards.
what you do not see does not mean you should not believe
Joseph Loo
Honored Contributor

Re: cant create new VG

hi,

another thing. before vgcreate, did u perform pvcreate on that physical disk:

# pvcreate -f /dev/rdsk/c3t5d0

regards.
what you do not see does not mean you should not believe
S.Arunkumar
Trusted Contributor

Re: cant create new VG

Hi Henry

I am sure there is no problem in your disk

Can u redo the same things as follows

First check the LVMtab file

1.strings /etc/lvmtab
your disk should not participate in any existing VG

2. pvcreate -f /dev/rdsk/c3t5d0

3. mkdir /dev/vg01

4. mknod group c 64 0x010000

6. vgcreate /dev/vg01 /dev/dsk/c3t5d0

Regards
S.Arunkumar

Mahesh Kumar Malik
Honored Contributor

Re: cant create new VG

Hi Henry

Do pvcreate -f /dev/rdsk/c3t5d0 and then repeat the steps you have taken.

If it fails, try dd if=/dev/dsk/c3t5d0 of=/dev/null bs=64 to query the disk and see if it is physically OK

Regards
Mahesh
Devender Khatana
Honored Contributor

Re: cant create new VG

Hi Henry,

Is is through ? The reason for this apears to be only that your disk is rather not prepared for LVM i.e pvcreate is not done or the disk is part of second VG.

Could you post the output of following commands.
1. pvdisplay -v /dev/dsk/c3t5d0
2. strings /etc/lvmtab


HTH,
Devender
Impossible itself mentions "I m possible"