Operating System - HP-UX
1828667 Members
1790 Online
109984 Solutions
New Discussion

Re: How to create disk partiton

 
SOLVED
Go to solution
Chris2005
Regular Advisor

How to create disk partiton

Hi there,

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.
26 REPLIES 26
Kenan Erdey
Honored Contributor

Re: How to create disk partiton

hi,

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)


Computers have lots of memory but no imagination
likid0
Honored Contributor

Re: How to create disk partiton

you use idisk to partition disks:

man idisk
Windows?, no thanks
Chris2005
Regular Advisor

Re: How to create disk partiton

No there is one disk with one partition. Now I want to use the spare space on that disk for creating a second partition.
Mel Burslan
Honored Contributor

Re: How to create disk partiton

pvcreate /dev/rdsk/cXtXdXsX
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...
Vikas Thorat
Advisor

Re: How to create disk partiton

Hi,

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
Success is not a Permanent & Failure is not Final! So,Never Stop Working after Success & Never Stop Trying after Failure!
Chris2005
Regular Advisor

Re: How to create disk partiton

It seems I already have some partitons on my disk device:

# 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?
Chris2005
Regular Advisor

Re: How to create disk partiton

I have one disk device only
Sajjad Sahir
Honored Contributor

Re: How to create disk partiton

Dear Chris

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
Chris2005
Regular Advisor

Re: How to create disk partiton

Again, I have only 1 disk drive (when I open the machine there is only 1 disk drive).

/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?
Sajjad Sahir
Honored Contributor

Re: How to create disk partiton

yes
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
Kenan Erdey
Honored Contributor

Re: How to create disk partiton

Hi,

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



Computers have lots of memory but no imagination
Chris2005
Regular Advisor

Re: How to create disk partiton

As stated before there is spare space on that disk drive to create a second disk (partition).

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?
Sunny123_1
Esteemed Contributor

Re: How to create disk partiton

Hi

Use pvdisplay {disk path} to see the info of PV
likid0
Honored Contributor

Re: How to create disk partiton

Chris2005

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
Windows?, no thanks
Heironimus
Honored Contributor

Re: How to create disk partiton

You seem quite convinced that there is empty space on the disk, even though that would be a highly abnormal configuration for any modern HP-UX system. What makes you so certain that you have empty space on the disk that you could use?
Chris2005
Regular Advisor

Re: How to create disk partiton

Ok I have 2720 of free PE.

# 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?
Heironimus
Honored Contributor
Solution

Re: How to create disk partiton

If lvol3 is configured to require contiguous allocation (which it probably is, check in lvdisplay) then you won't be able to extend it because lvol4 is right behind it on the disk. Contiguous allocation for stuff in vg00 is one of those little nuisances in HP-UX.
Chris2005
Regular Advisor

Re: How to create disk partiton

Ok I've made a lvol10 now and mounted that to the point in the file system tree that needed the extra space.

Thanx for helping.

Still I'm wondering how to make another disk (partition) from the space left on that disk drive. Anyone?
Heironimus
Honored Contributor

Re: How to create disk partiton

OK, I'll ask it again: why are you so sure that there is free space on the underlying disk? A typical configuration for an Integrity boot disk would be a small EFI slice, a small utility slice, and a slice with the entire rest of the disk assigned to vg00. Slices (partitions) aren't really supported in modern HP-UX, using them in a very specific manner on Itanium boot disks is a special case.
Patrick Wallek
Honored Contributor

Re: How to create disk partiton

You more than likely CAN NOT!

All space should be used for VG00 if the system was setup in a relatively standard way.

Torsten.
Acclaimed Contributor

Re: How to create disk partiton

Still I'm wondering how to make another disk (partition) from the space left on that disk drive. Anyone?


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!   
Chris2005
Regular Advisor

Re: How to create disk partiton

Well you got me doubting now about that. Is there a way to check that other than opening the workstation case?
Torsten.
Acclaimed Contributor

Re: How to create disk partiton

What exactly do you want to check now?

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!   
Chris2005
Regular Advisor

Re: How to create disk partiton

I would like to check the (physical) storage capacity of my disk (like vendor information).

Just to be sure ... ;)