HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

what is the hp-ux command to get disk partition details?

 
DeviPvk
Occasional Advisor

what is the hp-ux command to get disk partition details?

I need following details about partitions
Partition name
Partition size
Is boot Partion
Mounted location of partition

Could any one please let me know hp-ux command to get the above details?

thanks,
Devi
20 REPLIES
Torsten.
Acclaimed Contributor

Re: what is the hp-ux command to get disk partition details?

Partitions are normally used for Integrity boot disks only.

p1 is EFI boot partition
p2 is for hp-ux
p3 is for diags

Get details with "idisk"


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!   
DeviPvk
Occasional Advisor

Re: what is the hp-ux command to get disk partition details?

How to get details of character device names and partition description file for disks?

The above command idisk need character device name and partition description file


thanks,
Devi
Johnson Punniyalingam
Honored Contributor

Re: what is the hp-ux command to get disk partition details?

Could any one please let me know hp-ux command to get the above details?

>>Partition name <<<<<

what do you mean by partition name ? Can't understand your Question , there is no partition name , do you mean HPUX Operating file system layout has partition name ??

command => bdf -> to display all mounted file system

Partition size ?

command => lvdisplay
man lvdisplay

take note , use should use above command for all the partition or file system mounted by refering to bdf command out put


Is boot Partion ? -> not able to understanding the question

Mounted location of partition

you need look for below link -> you can understand some basic commands related to your Questions

http://www.unixguide.net/unixguide.pdf

Problems are common to all, but attitude makes the difference
Torsten.
Acclaimed Contributor

Re: what is the hp-ux command to get disk partition details?

Example:

# idisk /dev/rdsk/c0t6d0

Size is usually default:

p1 500MB
p2 100% of remaining space
p3 400MB

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!   
DeviPvk
Occasional Advisor

Re: what is the hp-ux command to get disk partition details?

thanks for the reply

I need the details about logical partitions on the system.

Partition name
Partition size
Is boot Partion(Is this a boot partition?)
Mounted location of partition


Thanks,
Devi
Torsten.
Acclaimed Contributor

Re: what is the hp-ux command to get disk partition details?

As said

p1 named EFI 500MB bootable
p2 named hpux
p3 named HPSP 400MB

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!   
DeviPvk
Occasional Advisor

Re: what is the hp-ux command to get disk partition details?

I am getting the following error when I issue idisk command

idisk /dev/rdsk/c2t1d0s2
idisk version: 1.31
idisk: Primary partition information not valid.
Run idisk with -r option to restore.
Torsten.
Acclaimed Contributor

Re: what is the hp-ux command to get disk partition details?

Try

idisk /dev/rdsk/c2t1d0


"s2" is already the second partition, not the disk itself

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!   
DeviPvk
Occasional Advisor

Re: what is the hp-ux command to get disk partition details?

Thanks for the reply Torsten.

It worked. But I have a doubt regarding the partition details. when I issue following command on my machine

ioscan -funC disk

I am getting the result as follows

Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t1d0 /dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s1 /dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s1 /dev/rdsk/c2t1d0s3


what exactly /dev/dsk/*** and /dev/rdsk/*** mean?
DeviPvk
Occasional Advisor

Re: what is the hp-ux command to get disk partition details?

How to get lvpath for lvdisplay command?


thanks,
Devi
Johnson Punniyalingam
Honored Contributor

Re: what is the hp-ux command to get disk partition details?

what exactly /dev/dsk/*** and /dev/rdsk/*** mean?

c=controllor
t=terminal /target
d=disk
s=slice

/dev/dsk/c2t1d0 -> disk has been sliced with 3 slices that why you see

/dev/dsk/c2t1d0s1 /dev/rdsk/c2t1d0s1
/dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s3
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: what is the hp-ux command to get disk partition details?

How to get lvpath for lvdisplay command?

lvdisplay -v /dev/vgxx/lvolxx |more

man lvdisplay for more information
Problems are common to all, but attitude makes the difference
Torsten.
Acclaimed Contributor

Re: what is the hp-ux command to get disk partition details?

The raw/"cooked"/block/character devices are used to get access to disks in different ways.
There are many highly detailed explanations available on the net.

About volume groups:

Use
# vgdisplay -v ...
to get information about the volume group (including LVOLs).

With this information get closer to the LVOLS:

# lvdisplay -v /dev/vgxx/lvolx

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!   
Torsten.
Acclaimed Contributor

Re: what is the hp-ux command to get disk partition details?

BTW, this is the disk layout of a Integrity boot disk:

http://docs.hp.com/en/B2355-90950/img/gfx42.gif

more here:

http://docs.hp.com/en/B2355-90950/ch06s02.html

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!   
DeviPvk
Occasional Advisor

Re: what is the hp-ux command to get disk partition details?

thanks for the links

Does every disk have these 3 partitions
P1 EFI,
P2
P3 HPUX?
Torsten.
Acclaimed Contributor

Re: what is the hp-ux command to get disk partition details?

Every boot disk in Integrity systems.

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!   
Andrew Rutter
Honored Contributor

Re: what is the hp-ux command to get disk partition details?

hi,

only boot disks on integrity systems have these partitions.

normal disks used for storage just use volume groups and logical volume groups, just as boot disks on PA risc servers.

but the partitions are as Torsten stated not your example

Andy
Russ Park
Frequent Advisor

Re: what is the hp-ux command to get disk partition details?

This question has generated a wealth of good replies and information. I'm simply curious what real use you have for the partition information? I've worked with integrity boot disks for years now and can't think of a time when I 'needed' this information. I understand curiosity, but as to the disk layout, not sure what stirred you to ask the initial question in the first place?

Thanks,
Russ
sujit kumar singh
Honored Contributor

Re: what is the hp-ux command to get disk partition details?

Hi

you can do

isocan -fnCdisk
there note teh disks in the format of /dev/dsk/cXtYDZs*
then do
diskinfo /dev/rdsk/cXtYDZs1|awk '{ print $1 /1024}'
diskinfo /dev/rdsk/cXtYDZs2|awk '{ print $1 /1024}'
diskinfo /dev/rdsk/cXtYDZs3|awk '{ print $1 /1024}'

to get the sizes of teh partitons in MB


regards
sujit
sujit kumar singh
Honored Contributor

Re: what is the hp-ux command to get disk partition details?

Hi
No points please: only correcting the last post.


diskinfo /dev/rdsk/cXtYDZs1|awk '{ print $1 /1024}'
diskinfo /dev/rdsk/cXtYDZs2|awk '{ print $1 /1024}'
diskinfo /dev/rdsk/cXtYDZs3|awk '{ print $1 /1024}'


please replace these with
diskinfo -b /dev/rdsk/cXtYDZs1|awk '{ print $1 /1024}'
diskinfo -b /dev/rdsk/cXtYDZs2|awk '{ print $1 /1024}'
diskinfo -b /dev/rdsk/cXtYDZs3|awk '{ print $1 /1024}'


regards
sujit