Operating System - HP-UX
1834772 Members
3177 Online
110070 Solutions
New Discussion

Re: HOW TO FIND FREE DISK SPACE

 
SOLVED
Go to solution
ramesh_6
Frequent Advisor

HOW TO FIND FREE DISK SPACE

Hi,

I've a HP-UX-B.10.10 server connected to an EMC Disk array. I got my volume groups configured to use the disks in EMC. How do i know how much free disks are available in the EMC for creating one more volume group?

Any help will be highly appreciated
12 REPLIES 12
Sanjay_6
Honored Contributor
Solution

Re: HOW TO FIND FREE DISK SPACE

Hi,

Do a "string /etc/lvmtab" to look for the disks already configured into VG's. Then do a ioscan to find out all the disks on your system. Do a diskinfo -v /dev/rdsk/cxtydz for the unused disk to know their sizes. You can then decide on the no of the disks and then sizes you want to include in the VG.

Hope this helps.

Regds
Ron Cornwell
Trusted Contributor

Re: HOW TO FIND FREE DISK SPACE

ioscan -fnC disk

Find the disk/LUN that is configured for the current volume group

pvdisplay -v /dev/vg?? | more
look for PE Size and Free PE
Craig Rants
Honored Contributor

Re: HOW TO FIND FREE DISK SPACE

I would use

for i in `ls /dev/vg*`
do
vgdisplay -v $i | grep -i "free pe"
done

This of course assumes that your vg names follow a standard naming format.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Christopher McCray_1
Honored Contributor

Re: HOW TO FIND FREE DISK SPACE

Hello,

There should have been EMC software installed on your server. run the command /usr/emc/ECC/bin/symmConsole for the gui interface. There it should tell you what is allocated and free. also you can do the traditional ioscan and strings lvmtab to determine this.

Hope this helps

Chris
It wasn't me!!!!
Jeff Schussele
Honored Contributor

Re: HOW TO FIND FREE DISK SPACE

Hi ramesh,

vgdisplay /dev/vg_name

will give a Free PE value & a PE Size.
Multiply the two & that's the free space.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Helen French
Honored Contributor

Re: HOW TO FIND FREE DISK SPACE

Hi Ramesh:

Try these things:

1) SAM - disk and file systems - disk devices (this will list you all "unused" disks)
2) Check with pvdisplay:
# pvdisplay -v device_path

HTH,
Shiju
Life is a promise, fulfill it!
S.K. Chan
Honored Contributor

Re: HOW TO FIND FREE DISK SPACE

First ..
# ioscan -fnC disk
==> from the device files you can run ..
# diskinfo /dev/rdsk/cXtXdX
==> gives you the available size

You would want to cross reference with what's already configured in you VG.
# vgdisplay -v | grep dsk
==> shows you just the disk device already configured in all of your VGs, so you do not want to use these to create a new VG.

Also take note of alternate path because you do not want to include that in your calculation. Devices that appears in "ioscan" and not found in "vgdisplay" can be used for your new VG creation.
James R. Ferguson
Acclaimed Contributor

Re: HOW TO FIND FREE DISK SPACE

Hi:

I think Sanjay has answered your principal question. Note that you will find a collection of small-sized disks using 'diskinfo' to discover their sizes. The small disks (~ 2-7MB or so) are called "gatekeepers" and are generally not used.

Regards!

...JRF...
Jeff Schussele
Honored Contributor

Re: HOW TO FIND FREE DISK SPACE

Hi ramesh,

Sorry I didn't read your post thoroughly i.e. you wanted total EMC free space.
Depending on what EMC Control Center version you have you may/may not have access to a GUI.
But almost all versions have the inquiry command usually it's
/usr/emc/symcli/bin/syminq

Insure that the EMC man pages (usually /usr/emc/symcli/man) are in your MANPATH & you can do a man on syminq

A normal command would be
syminq /dev/dsk/cxtydz

But you can just do a syminq & it'll display all EMC devices available to the host. This can then be matched against what /etc/lvmtab has to determine what's used/unused.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
ramesh_6
Frequent Advisor

Re: HOW TO FIND FREE DISK SPACE

Thank you for all your help

Jeff Schussele
Honored Contributor

Re: HOW TO FIND FREE DISK SPACE

Hi (again) ramesh,

One final note - which may actually be a warning.
IF there a multiple hosts connected to this EMC array AND this is an older array with older EMC SW that has not implemented zoning, it's entirely possible that you'll see devices that appear unused but are in fact in use by another host.
IF you pvcreate a device in use by another host, you'll essentially destroy the other host's data.
So unless you know for a fact that this is the ONLY host connected to this array, assume that unused devices are unused ONLY by this host & check for other host connections & if found the other hosts usage.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
MANOJ SRIVASTAVA
Honored Contributor

Re: HOW TO FIND FREE DISK SPACE

Hi Ramesh


There is a inq software which cretes a good o/p interms of all teh disk and there assignemts incase you are intersted i can send you that .

I have attached a typical o/p which can be taken in a html format and seen through explorer.


Manoj Srivastava