- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: san disk space calculation
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
10-29-2005 07:45 AM
10-29-2005 07:45 AM
How to use "xpinfo -il" command to calculate the San Disk Space ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2005 08:51 AM
10-29-2005 08:51 AM
Re: san disk space calculation
"xpinfo -il" command can list you the number of LUNs assigned to the server.
You can redirect this o/p to a file.This itself will give you the device files for those LUNs.
--> xpinfo -il > /tmp/lun_check
Even you can furthur filter the device files like this:
-->cat /tmp/lun_check |awk '{print N$}'
If one/two luns you can doa diskinfo afterthat.Hope this can help.
Regds, Granite
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2005 10:20 AM
10-29-2005 10:20 AM
Re: san disk space calculation
/dev/rdsk/c4t0d0 c5 17 00 CL2H 0f:d4 OPEN-E 00010333
Someone said to count number of "OPEN-E"; divide by 2 and multiply by 14GB. This will give total San Disk Space.
I am not sure how this formula works ?
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2005 10:39 AM
10-29-2005 10:39 AM
Re: san disk space calculation
xpinfo -m
or
xpinfo -p
should give enough information regarding the size. See "man xpinfo" for more information,.
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
10-29-2005 06:25 PM
10-29-2005 06:25 PM
SolutionThe person who told you this formula made an assumtion and an approximation.
each OPEN-E volume is roughly 13.5 GB big. And the assumption mad is that you have an alternate path. So, if you have two fiber optic interfaces going to the xp disk array, then run the command :
ioscan -fnC disk | grep "OPEN-E" | wc -l
divide the number into two. this will give you the number of LUNs connected to one of the interfaces, the other is the alternate path and redundant, count-wise.
multiply this number with 13.5 to get the SAN space in GBs.
As a matter of fact, run a diskinfo against the /dev/rdsk/cxtxdx devices of one of the OPEN-E devices and get the exact size and use that for exact calculation if you wish. There is no magic about it.
Hope this helps.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2005 02:22 AM
10-30-2005 02:22 AM
Re: san disk space calculation
When OPEN-E emulation is selected than the default LUN Size you get will be exactly 13893MB. Allthough this can be altered as well and you can get the exact size of each LUN using "xpinfo -m" in the size column. Adding this space will give you the total space but there may be alternate paths for same LUNS. If you have one alternate path for each LUN than divide the total by two, if you have two alternate paths for each LUN then divide it by three and if you have three alternate paths then divide the total by four to get the effective space.
Also if you have LUNs used in VxVM then you can use the following formula to find out the no. of alternate paths.
#for i in `vxdisk list|awk '{print $1}'`
do
if [ $i != "DEVICE" ]
then
vxdmpadm getdmpnode nodename=$i
fi
done
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2005 08:12 AM
10-30-2005 08:12 AM
Re: san disk space calculation
OPEN-E-CVS-CM
Should we also count them for disk space calculation ?
"OPEN-E-CVS-CM" stands for what ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2005 12:35 PM
10-30-2005 12:35 PM
Re: san disk space calculation
OPEN-E-CVS-CM represents "Custom Volume Size". It is some custom size LUN usually 100MB. These are configured if you do not want to have the LUNs of default sizes.
These LUNs shall be also counted as allocated disk space allthough are generally used for rootdg because if you use VxVM you should allocated atleast one device for rootdg. On systems running OS under LVM , the space allocated to rootdg is waste but is required. So we generally create a CVS volume to reduce the waste disk space. (Generally 100 MB is wasted as compared to 13893MB.)
HTH,
Devender
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2005 01:26 AM
10-31-2005 01:26 AM
Re: san disk space calculation
#!/bin/ksh
XPSERIAL=
for culdev in `grep $XPSERIAL /tmp/xpinfo |awk '{print $6}'|sort|uniq`;do
HPDEV=`grep $culdev /tmp/xpinfo|awk 'NR==1 {print $1}'`
SIZE=`diskinfo $HPDEV | grep -i size|awk '{print $2}'`
echo $HPDEV $culdev $SIZE
done
Just sum up the sizes (in KB)...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2005 01:34 AM
10-31-2005 01:34 AM
Re: san disk space calculation
1.) emulation
2.) however many paths each LDEV/LUN is presented.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 10:32 AM
11-15-2005 10:32 AM
Re: san disk space calculation
How to figure out used and free disk space in SAN enabled disks on the server ?
Whether SAN enabled and Direct attached disks co-exist ? If yes then how to differentiate them ?
Appreciate your help.
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2005 02:36 AM
11-16-2005 02:36 AM
Re: san disk space calculation
For counting the allocated and unused SAN space in a system, you should find the used and unused SAN LUNs in that system. Total LUNs assigned to VG's / DG's shall be considered as used space and unallocated space shall be free space.
Yes, both can co exist in a system. SAN LUNs will show the enclosure name or emulation in ioscan whereas local disk and JBOD disks will show the disk model names in ioscan.
For ex.
dev1:/home/hp>>ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 0 0/0/1/1.2.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 1 0/0/2/0.2.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 2 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
disk 3 0/4/0/0.8.0.2.0.0.0 sdisk CLAIMED DEVICE HP OPEN-E
/dev/dsk/c4t0d0 /dev/rdsk/c4t0d0
disk 4 0/4/0/0.8.0.2.0.0.1 sdisk CLAIMED DEVICE HP OPEN-E
/dev/dsk/c4t0d1 /dev/rdsk/c4t0d1
disk 5 0/4/0/0.8.0.2.0.0.2 sdisk CLAIMED DEVICE HP OPEN-E
/dev/dsk/c4t0d2 /dev/rdsk/c4t0d2
disk 6 0/4/0/0.8.0.2.0.0.3 sdisk CLAIMED DEVICE HP OPEN-E
/dev/dsk/c4t0d3 /dev/rdsk/c4t0d3
disk 7 0/4/0/0.8.0.2.0.0.4 sdisk CLAIMED DEVICE HP OPEN-E
/dev/dsk/c4t0d4 /dev/rdsk/c4t0d4
disk 8 0/4/0/0.8.0.2.0.0.5 sdisk CLAIMED DEVICE HP OPEN-E
/dev/dsk/c4t0d5 /dev/rdsk/c4t0d5
Here first two disks are locally attached, third is a DVD-ROM and later ones are LUNs of a storage.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2005 04:21 AM
11-16-2005 04:21 AM
Re: san disk space calculation
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2005 04:58 AM
11-16-2005 04:58 AM
Re: san disk space calculation
# diskinfo -b /dev/dsk/c8t12d0
diskinfo: can't open /dev/dsk/c8t12d0: Invalid argument
#
and
# diskinfo -v /dev/dsk/c8t12d0
diskinfo: can't open /dev/dsk/c8t12d0: Invalid argument
#
Appreciate any suggestion.
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2005 05:13 AM
11-16-2005 05:13 AM
Re: san disk space calculation
You shall be using charater device here
#diskinfo -b /dev/rdsk/cxtydz
or
diskinfo -v /dev/rdsk/cxtydz
Notice that rdsk instead of dsk.
Allthough the error still shall not be this. Try this and revert.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2005 05:16 AM
11-16-2005 05:16 AM
Re: san disk space calculation
diskinfo -v /dev/rdsk/c8t12d0
In case ioscan is showing DISK-SUBSYSTEM for this device, you won't get a size information.
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!
