1753666 Members
5987 Online
108799 Solutions
New Discussion юеВ

Re: create vg01

 
SOLVED
Go to solution
Teck Sim
Frequent Advisor

create vg01

# vgdisplay
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 2000
VGDA 2
PE Size (Mbytes) 4
Total PE 1023
Alloc PE 296
Free PE 727
Total PVG 0

This is what I did:
#vgdisplay

target 1 8/16/5.2 tgt CLAIMED DEVICE
disk 0 8/16/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-570
1TA
/dev/dsk/c0t2d0 /dev/rdsk/c0t2d0
target 2 8/16/5.5 tgt CLAIMED DEVICE
disk 1 8/16/5.5.0 sdisk CLAIMED DEVICE SEAGATE ST34572N
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
target 3 8/16/5.6 tgt CLAIMED DEVICE
disk 2 8/16/5.6.0 sdisk CLAIMED DEVICE SEAGATE ST34572N
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0


# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
# ll /dev/*/group
crw-r----- 1 root root 64 0x000000 Jun 11 1996 /dev/vg00/group
crw-rw-r-- 1 root sys 64 0x010000 Jun 26 20:41 /dev/vg01/group

#vgcreate /dev/vg01 /dev/dsk/c0t5d0
Increased the number of physical extents per physical volume to 1023.
vgcreate: Volume group "/dev/vg01" could not be created:
Device busy

Did I do anything wrong here.
Please help.
Thanks.
18 REPLIES 18
Stefan Farrelly
Honored Contributor
Solution

Re: create vg01


You need to pvcreate your drive first.

pvcreate /dev/rdsk/c0t5d0

If it still returns an error and your'e absolutely sure this drive isnt already in use then add the -f option

pvcreate -f /dev/rdsk/c0t5d0

Then create your vg.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Pete Randall
Outstanding Contributor

Re: create vg01

What directory are you in now?
Do a "pwd".

Pete

Pete
PIYUSH D. PATEL
Honored Contributor

Re: create vg01

Hi,

You should start with

1. pvcreate -f /dev/rdsk/c0t5d0

Then use the above commands. The commands you have used are right.

After doing the pvcreate execute the

#vgcreate /dev/vg01 /dev/dsk/c0t5d0

Piyush
Teck Sim
Frequent Advisor

Re: create vg01

#pwd
#/
Thanks.
Pete Randall
Outstanding Contributor

Re: create vg01

That's why you've got that fancy headgear, Stefan. I completely missed that.

;^)

Pete

Pete
Stefan Saliba
Trusted Contributor

Re: create vg01

first do a vgdisplay -v vg00 and check at the bottom which physical volumes are in this vg. In your case you should only have c0t6d0. if you have c0t5d0 as well then you cannot create vg01 using that disk.

Secondly I think you forgot to pvcreate the disk.

use pvcreate only if you are sure that the disk is not a member of the other vg i.e. vg00.

If you send an output of vgdisplay -v vg00 we can check.

after the pvcreate try again the vgcreate

good luck
stefan


PIYUSH D. PATEL
Honored Contributor

Re: create vg01

Hi,

Execute the following command :

# strings /etc/lvmtab and see that the /dev/dsk/c0t5d0 is not seen in the output.

Piyush
Jeff Schussele
Honored Contributor

Re: create vg01

Hi Teck,

Do a
#pvdisplay -v /dev/dsk/c0t5d0
to determine if there is an LVM structure on that disk.
If not then you need to do this before the vgcreate
#pvcreate /dev/rdsk/c0t5d0 (Note: you may need a -f parameter if there's been an LVM structure on it in the past also note the "rdsk")

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Teck Sim
Frequent Advisor

Re: create vg01

# pvcreate /dev/rdsk/c0t5d0
pvcreate: The physical volume already belongs to a volume group
# pvcreate -f /dev/rdsk/c0t5d0
Physical volume "/dev/rdsk/c0t5d0" has been successfully created.
# vgcreate /dev/vg01 /dev/dsk/c0t5d0
Increased the number of physical extents per physical volume to 1023.
Volume group "/dev/vg01" has been successfully created.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.cof

and what should I do next? I am trying to create a new file system, let say /dev/vg01/d01 and /dev/vg01/d02 and both will be mounted on /d01 and /d02 respectively.
Thanks.