LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-09-2011, 01:29 AM   #1
++nick++
Member
 
Registered: Dec 2008
Location: Bellevue,WA
Distribution: RHEL 5 , Fedora ,Sabayon,Solaris,Vmware,AWS
Posts: 107

Rep: Reputation: 18
Multiple Volume groups in a single disk


Hi All,

I have a 500GB SAN Disk provisioned to my RHEL 5.6 64bit box . It will host some DBMS . Now as per the requirement I need to create multiple VG's in the SAN disk (/dev/sdb1) with different VG size, So here is what I did ,

#pvcreate /dev/sdb1

Now I need to create a VG named stg for 4096m size , whatever option I use I end up creating a VG which utilizes the whole PV size of 500G , please let me know whether we have a way to define the VG size , I know that there is a way to do it (Alas , can't find how) as a similar server has custom set VG sizes in a single LUN,

Also to note , EMC Power path or any other multipathing software isn't installed in the server

Thanks,

Last edited by ++nick++; 12-09-2011 at 01:37 AM.
 
Old 12-09-2011, 06:06 AM   #2
_bsd
Member
 
Registered: Jan 2010
Location: Velveeta, USA
Distribution: Xen, Gentoo,Ubuntu,openSUSE,Debian,pfSense
Posts: 98

Rep: Reputation: 9
Code:
vgcreate vgname device(s)
creates a "volume group" as a collection of physical devices (which may be simply partitions).
You can specify the extent size, the unit of size which can be used to create "logical volumes" but you can't specify the volume group size.

You maybe confusing logical volumes and volume groups.
You may create one large volume group that has lots of space, then allocate the space needed by creating logical volumes
using lvcreate, which takes size as an arg.

Also, you may create your partitions in small units, then create a volume group as a collection of partitions, which you can add to, or remove from.

If you insist on having a 4096M VG, then
Create /dev/sdb1 to be 4096M
Code:
pvcreate /dev/sdb1
vgcreate vgname /dev/sdb1
and your VG vgname will be 4096M

You'll still have to create a logical volume, and in the end it will be slightly less than 4096M of usable space because of metadata.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Logical Groups out of a Physical Volume Hi_This_is_Dev Linux - Server 2 04-26-2010 08:31 PM
Ownership for Multiple groups to a single share fizeelinux Linux - Server 7 02-08-2010 06:47 AM
When to use multiple LVM Volume Groups koenigj3 Linux - Newbie 11 02-04-2010 06:20 PM
single volume from IBM ESS storage shows multiple times in fdisk -l output? kingston Linux - Newbie 3 07-06-2009 04:31 AM
adding multiple groups in a single user guy_ripper Linux - Newbie 1 12-04-2007 09:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration