- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to create disk partiton
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
05-27-2009 06:22 AM
05-27-2009 06:22 AM
I have a Itanium workstation with HPUX 11.23 with one disk and want to create a second disk partition from the disk, so I can include that one into volume group vg00.
How do I create that partiton?
Thanx in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 06:27 AM
05-27-2009 06:27 AM
Re: How to create disk partiton
as i understood there is another disk and you want to include it in vg00, so:
vgextend /dev/vg00 /dev/dsk/cxtxtx(your second disk)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 06:29 AM
05-27-2009 06:29 AM
Re: How to create disk partiton
man idisk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 06:30 AM
05-27-2009 06:30 AM
Re: How to create disk partiton
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 06:31 AM
05-27-2009 06:31 AM
Re: How to create disk partiton
vgextend vg00 /dev/rdsk/cXtXdXsX
hope this helps
PS. Partition term is generally used by Windoze systems and does not apply, and generally confuse everybody, when mentioned in the context of hpux.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 06:34 AM
05-27-2009 06:34 AM
Re: How to create disk partiton
Want to clarify few things to give you support.
1) One disk you already added to vg00 (having OS filesystems) and want to add one more.
2) Is this new disk is going to use for any new filesystem or to mirror the OS filesystem?
To include the disk into vg00, follow below steps:
# ioscan -fnC disk
---- Identify your newly assignded disk and it path (cXtXdX)
# pvcreate /dev/rdsk/cXdXtX
It will create LVM resident structure.
# vgextend /dev/vg00 /dev/dsk/cXdXtX
It will add the disk to the Volume Group
# lvcreate -L 120 -n lvname /dev/vg00
Note: this will create a logical volume of 120 MB.
# newfs -F vxfs /dev/vg00/rlvname
Note: to create an hfs filesystem change vxfs to hfs in the previous command.
# mkdir /home
# mount /dev/vg00/lvname /home
regards,
Vikas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 06:42 AM
05-27-2009 06:42 AM
Re: How to create disk partiton
# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/2/2/0.1.0.0 sdisk CLAIMED DEVICE HL-DT-STDVD-ROM GDR8163B
/dev/dsk/c1t0d0 /dev/rdsk/c1t0d0
disk 1 0/3/1/0.8.0 sdisk CLAIMED DEVICE FUJITSU MAU3073NP
/dev/dsk/c2t8d0 /dev/dsk/c2t8d0s2 /dev/rdsk/c2t8d0 /dev/rdsk/c2t8d0s2
/dev/dsk/c2t8d0s1 /dev/dsk/c2t8d0s3 /dev/rdsk/c2t8d0s1 /dev/rdsk/c2t8d0s3
--
vgdisplay shows I'm using /dev/dsk/c2t8d0s2 now. How can I check which one is empty?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 06:43 AM
05-27-2009 06:43 AM
Re: How to create disk partiton
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 06:46 AM
05-27-2009 06:46 AM
Re: How to create disk partiton
what i understand is u need to create one more physical volume and u want to add that disk in the volume group
for that purpose
first u have to create physical volume
by using pvcreate command
pvcreate /dev/rdsk/c#t#d#
once u created physical volume u can add this physical volume in volume group by extending the volume group
vgextend vg00 /dev/rdsk/c#t#d#
thanks and regards
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 07:05 AM
05-27-2009 07:05 AM
Re: How to create disk partiton
/dev/dsk/c2t8d0s2 is the only disk (partition) that is included in vg00.
I wanted to know how to create another disk (partition). Like /dev/dsk/c2t8d0s3 for instance.
Now it seems I already have multiple disks (partitons of one disk drive)
# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/2/2/0.1.0.0 sdisk CLAIMED DEVICE HL-DT-STDVD-ROM GDR8163B
/dev/dsk/c1t0d0 /dev/rdsk/c1t0d0
disk 1 0/3/1/0.8.0 sdisk CLAIMED DEVICE FUJITSU MAU3073NP
/dev/dsk/c2t8d0 /dev/dsk/c2t8d0s2 /dev/rdsk/c2t8d0 /dev/rdsk/c2t8d0s2
/dev/dsk/c2t8d0s1 /dev/dsk/c2t8d0s3 /dev/rdsk/c2t8d0s1 /dev/rdsk/c2t8d0s3
--
How do I chech which one is empty?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 07:09 AM
05-27-2009 07:09 AM
Re: How to create disk partiton
if u want one more disk like this one u have to present the disk from storage, once u added disk from storage
u have to find the lun number.
evainfo -i
xpinfo -i it dependes on storage
once u got lun number
u have to create device files
by using insf -C disk
then u can create new physical volume based on that lun, please tell us which storage u are using
thanks and regards
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 07:11 AM
05-27-2009 07:11 AM
Re: How to create disk partiton
disk partitioning is only for boot disks. and it's up to three.
have a look at thread:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1110904
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 07:24 AM
05-27-2009 07:24 AM
Re: How to create disk partiton
I still would like to know how to do that. Furthermore I noticed via ioscan (look above) that there are already multiple other disks (partitions) available. How do I check which one is empty?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 07:32 AM
05-27-2009 07:32 AM
Re: How to create disk partiton
Use pvdisplay {disk path} to see the info of PV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 07:44 AM
05-27-2009 07:44 AM
Re: How to create disk partiton
Partition1 example(c1t0d1s1) is for efi you need it to boot you system
And Partition3 example(c1t0d1s3) is for hp support tools normally it has 500 megs only.
and you can have 3 partions tops, so you it's complicated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 08:56 AM
05-27-2009 08:56 AM
Re: How to create disk partiton
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 09:08 AM
05-27-2009 09:08 AM
Re: How to create disk partiton
# vgdisplay
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4328
VGDA 4
PE Size (Mbytes) 16
Total PE 4342
Alloc PE 1622
Free PE 2720
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
But when extending it says there is not enough:
# lvextend -L 304 /dev/vg00/lvol3
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol3" could not be extended.
Failure possibly caused by contiguous allocation policy.
Failure possibly caused by strict allocation policy
What could be the problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 09:51 AM
05-27-2009 09:51 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 10:23 AM
05-27-2009 10:23 AM
Re: How to create disk partiton
Thanx for helping.
Still I'm wondering how to make another disk (partition) from the space left on that disk drive. Anyone?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 11:39 AM
05-27-2009 11:39 AM
Re: How to create disk partiton
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 11:51 AM
05-27-2009 11:51 AM
Re: How to create disk partiton
All space should be used for VG00 if the system was setup in a relatively standard way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 08:03 PM
05-27-2009 08:03 PM
Re: How to create disk partiton
You can't, because there is no free space.
About the layout:
- first partition is used for booting (EFI)
- second is used for hp-ux
- third is used as service partition (e.g. diag tools)
By default the 1. and 3. are around 500MB in size, all the rest is the 2. partition - so no free space to create another.
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
05-28-2009 01:36 AM
05-28-2009 01:36 AM
Re: How to create disk partiton
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2009 01:41 AM
05-28-2009 01:41 AM
Re: How to create disk partiton
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
05-28-2009 01:52 AM
05-28-2009 01:52 AM
Re: How to create disk partiton
Just to be sure ... ;)