- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pvcreate disk_size / multiple PVs on one physical ...
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
Discussions
Discussions
Forums
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
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
тАО01-27-2007 04:23 AM
тАО01-27-2007 04:23 AM
Please, could someone shed some light on what purpose the "disk_size" parameter to pvcreate is supposed to serve?
Is it to allow creating more than one pv on a single physical disk? If not, is there any other way to create multiple pvs on the same physical disk?
Thanks
Peter
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2007 04:50 AM
тАО01-27-2007 04:50 AM
Re: pvcreate disk_size / multiple PVs on one physical disk?
HP has put the man pages online.
-s disk_size
Effective size of the physical volume to be created, specified in number of physical sectors.
http://devrsrc1.external.hp.com/STK/cgi-bin/man2html?debug=0&manpage=/usr/share/man/man1m.Z/pvcreate.1m
It is not as cryptic as it may seem. A volume group only has a limited number of Physical Extents to spread on a volume group and newer larger disks require more of them to be distributed to a single disk.
To answer your question, no, it is not to allow the creating of more than one physical volume on a disk.
With LVM a disk can only belong to one volume group. In Linux this limitation was removed when LVM was ported.
Once part of a volume group multiple LOGICAL volumes (partitions) can be partitioned into a disk.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2007 05:01 AM
тАО01-27-2007 05:01 AM
Re: pvcreate disk_size / multiple PVs on one physical disk?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2007 06:46 AM
тАО01-27-2007 06:46 AM
Re: pvcreate disk_size / multiple PVs on one physical disk?
The pvcreate command initializes a direct access storage device (a raw disk device) for use as a physical volume in a volume group.
The operation is denied if pv_path belongs to another volume group. Only physical volumes not belonging to other volume groups can be created.
so you can not create more than one pv on a single physical disk.
if you try to create pv with -f parameter on the same disk, it will create pv but data will lost at the disk.
disk_size ; size of the pv to be created,in number of physical sectors.
regards;
mustafa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2007 07:12 AM
тАО01-27-2007 07:12 AM
SolutionI'm nor really sure about the "-s" parameter, but IMHO you can shrink a disk device to a smaller size.
Regarding the physical volumes: for 11.23 and newer versions you can create partitions (man idisk), each partition can be a physical volume - so youu can have multiple PVs on the same physical disk.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2007 08:54 AM
тАО01-27-2007 08:54 AM