- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: create vg01
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:09 AM
06-27-2002 06:09 AM
--- 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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:11 AM
06-27-2002 06:11 AM
SolutionYou 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:11 AM
06-27-2002 06:11 AM
Re: create vg01
Do a "pwd".
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:12 AM
06-27-2002 06:12 AM
Re: create vg01
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:13 AM
06-27-2002 06:13 AM
Re: create vg01
#/
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:13 AM
06-27-2002 06:13 AM
Re: create vg01
;^)
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:14 AM
06-27-2002 06:14 AM
Re: create vg01
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:14 AM
06-27-2002 06:14 AM
Re: create vg01
Execute the following command :
# strings /etc/lvmtab and see that the /dev/dsk/c0t5d0 is not seen in the output.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:16 AM
06-27-2002 06:16 AM
Re: create vg01
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:26 AM
06-27-2002 06:26 AM
Re: create vg01
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:31 AM
06-27-2002 06:31 AM
Re: create vg01
lvcreate -L
then create a new filesystem like newfs -F vxfs /dev/vg01/lvol1
then create a mountpoint say mkdir /mount1
then type mount /dev/vg01/lvol1 /mount1
if you want it to automount put an entry in the fstab
good luck
stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:35 AM
06-27-2002 06:35 AM
Re: create vg01
#lvcreate -L size /dev/vg01
This will create lvol1
#newfs -F vxfs /dev/vg01/rlvol1 ( Use rlvol1)
This will craete filesystem vxfs on lvlol1
#mkdir /mountpoint
# mount /dev/vg01/lvol1 /mountpoint
Mounts the filesystem
Make an ebtry for the filesystem in /etc/fstab so that it will get mounted in the next reboot.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:35 AM
06-27-2002 06:35 AM
Re: create vg01
Take a look at following thread from this forum
http://forums.itrc.hp.com/cm/components/FileAttachment/0,,0xeccbc8ecad09d6118ff40090279cd0f9,00.doc
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:40 AM
06-27-2002 06:40 AM
Re: create vg01
Do the following
#lvcreate -L xxxx -n d01 /dev/vg01
#lvcreate -L xxxx -n d02 /dev/vg01
where xxxx equals the size in MB.
Then do
newfs -F vxfs /dev/vg01/rd01
newfs -F vxfs /dev/vg01/rd01
Note that you have to use the raw LV for this
Then mount them
mount /dev/vg01/d01 /d01
mount /dev/vg01/d02 /d02
Then to have them mounted at boot time add the following to /etc/fstab
/dev/vg01/d01 /d01 vxfs delaylog,datainlog 0 2
/dev/vg01/d02 /d02 vxfs delaylog,datainlog 0 2
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:43 AM
06-27-2002 06:43 AM
Re: create vg01
Now that you have successfully created the volume group you need to 'lvcreate' a logical volume, and then create a filesystem for it.
For instance, to create a 400MB logical volume named /dev/vg01/d01, do this:
# lvcreate -L 400 -n d01 /dev/vg01
Now, create the filesytem:
# newfs -F vxfs -v -o nolargefiles /dev/vg01/rd01
Note the (r)aw devive file. Note that we have created an journaled filesystem (VxFS).
Lastly, add a mount entry to /etc/fstab, for instance:
/dev/vg01/d01 /mymountpoint vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
...and mount the new filesystem:
# mount -a
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:43 AM
06-27-2002 06:43 AM
Re: create vg01
The 2nd newfs should be
newfs -F vxfs /dev/vg01/rd02
And you do need to create mount point prior to mounting
mkdir /d01 /d02
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:44 AM
06-27-2002 06:44 AM
Re: create vg01
Thanks for all the info.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:47 AM
06-27-2002 06:47 AM
Re: create vg01
To gain a better understanding of the tasks involved in LVM management, you should read chapter-6 --- Managing Disks and Files in "Managing Systems and Workgroups: A Guide for HP-UX System Administrators":
http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html
If you take the time to do this, you will be well rewarded.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:53 AM
06-27-2002 06:53 AM
Re: create vg01
To create vg01
1)ioscan -fnC disk
# to see the path of the disk
2)pvcreate -f /dev/rdsk/c0t5d0
3)mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgcreate vg01 /dev/dsk/c0t5d0
Regards
Rafael