Operating System - HP-UX
1752781 Members
6577 Online
108789 Solutions
New Discussion юеВ

Re: command for see disk unsed

 
SOLVED
Go to solution
Eli Daniel
Super Advisor

command for see disk unsed

good moorning,
i need see the disk not used instaled in the server.

ioscan -fnC disk (all disk)

command for disk free, no installed in the Volume Group.

7 REPLIES 7
Johnson Punniyalingam
Honored Contributor

Re: command for see disk unsed

>>>i need see the disk not used instaled in the server.<<<

with the help of "vgdisplay" & strings /etc/lvmtab you can find them

vgdisplay -v |more
strings /etc/lvmtab
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: command for see disk unsed

See below example
===================

ioscan -kfnC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 0/0/1/1.0.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c1t0d0 /dev/rdsk/c1t0d0
disk 1 0/0/1/1.2.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 2 0/0/2/0.0.0 sdisk CLAIMED DEVICE HP 18.2GST373207LC#18
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 3 0/0/2/0.2.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 4 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 304
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0

vgdisplay -v /dev/vg00
=========================

--- Physical volumes ---
PV Name /dev/dsk/c1t0d0
PV Status available
Total PE 4340
Free PE 134
Autoswitch On
Proactive Polling On

vgdisplay -v /dev/vg01
==========================
--- Physical volumes ---
PV Name /dev/dsk/c1t2d0
PV Status available
Total PE 4340
Free PE 2212
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c2t0d0
PV Status available
Total PE 4340
Free PE 4090
Autoswitch On
Proactive Polling On

# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c1t0d0
/dev/vg01
/dev/dsk/c1t2d0
/dev/dsk/c2t0d0


As per above "ioscan -fnC disk" total 4 disk , 3 disk in used by "Volume Groups" 1 disk unsused "/dev/rdsk/c1t2d0"
Problems are common to all, but attitude makes the difference
Patrick Wallek
Honored Contributor

Re: command for see disk unsed

>>with the help of "vgdisplay" & strings /etc/lvmtab you can find them

That is fine **IF** all disks are LVM.

What about VxVM disks? What about RAW disks not configured in a volume manager?

This is where you absolutely MUST have good documentation.
James R. Ferguson
Acclaimed Contributor

Re: command for see disk unsed

Hi Eli:

> command for disk free, no installed in the Volume Group.

And do you consider a physical disk "free" if it doesn't belong to a volume group but could be 'vgimport'ed because it is a valid LVM volume?

Documentation is the only absolute key to knowing what's free and what's used.

Regards!

...JRF...
Tingli
Esteemed Contributor
Solution

Re: command for see disk unsed

If you are not in 11.31, you can use sam to find it out easily. You can go to vg creation it will give you a list of all the disks not used yet.
Johnson Punniyalingam
Honored Contributor

Re: command for see disk unsed

OOoops, my BAD,, now i remember >>MK< Personal Note

While good documentation is a great thing to have, it's no substitute for understanding what you're doing.
Problems are common to all, but attitude makes the difference
Eli Daniel
Super Advisor

Re: command for see disk unsed

thanks