how to find out disk capacity


 
Thread Tools Search this Thread
Operating Systems AIX how to find out disk capacity
# 1  
Old 08-05-2010
Question how to find out disk capacity

Hi,

I would like to know how to find out disk capacity if it is assigned from the storage as a lun.

as per below command , I am unable to find out disk capacity.
Code:
$ bash
bash-3.00$ lspv

hdisk1          0001579a7fa3c086                    None
$ lscfg -vl hdisk1
  hdisk1           U7998.61X.06157AA-V2-C2-T1-L820000000000  Virtual SCSI Disk Drive


Last edited by Scott; 08-05-2010 at 05:07 AM.. Reason: Added code tags
# 2  
Old 08-05-2010
you can try df -k (Man df for options) which will give you free space and total spaces
# 3  
Old 08-05-2010
Hi.

You can use:

Code:
$ getconf DISK_SIZE /dev/hdisk1

This shows the size in Megabytes.
# 4  
Old 08-05-2010
bootinfo -s <hdisk>
# 5  
Old 08-05-2010
Or else use

Code:
bootinfo -s hdisk1

again size in MB.
# 6  
Old 08-05-2010
Can 'df' tell you how much is used ? on the filesystems


Bryan
# 7  
Old 08-05-2010
depending on the storage subsystem, the driver may give you an answer too

for sddpcm drivers (IBM storage)

Code:
pcmpath query essmap

Code:
Disk        Path  P     Location   adapter      LUN SN       Type       Size   LSS    Vol   Rank  C/A   S   Connection  port RaidMode
-------     ----- -    ----------  --------    --------  ------------   ----   ---    ---   ----  ---   -   ----------- ---- --------
hdisk61     path0     06-00-02[FC] fscsi0   7XXXXXX0A6  IBM 2107-900 307.2GB    10    166   ffdc   29   Y   R1-B8-H1-ZA  700   RAID5
hdisk61     path1     06-00-02[FC] fscsi0   7XXXXXX0A6  IBM 2107-900 307.2GB    10    166   ffdc   29   Y   R1-B4-H1-ZA  300   RAID5
hdisk61     path2     04-00-02[FC] fscsi2   7XXXXXX0A6  IBM 2107-900 307.2GB    10    166   ffdc   29   Y   R1-B7-H3-ZA  630   RAID5
.
.
..

take a look at the driver documentation for your subsystem
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Tru 64 Disk Capacity Check

i have a query on checking Tru64 disk drives physical capacity. i used hwmgr view devices and saw this disk. 160: /dev/disk/dsk7c COMPAQ BF03688284 bus-3-targ-0-lun-0 checking the model on the internet shows it is a 36.4GB drive. i checked the disk details and saw the... (2 Replies)
Discussion started by: iamnotaguru
2 Replies

2. Homework & Coursework Questions

Disk Capacity Shell Script

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! I am pretty close I think, but stuck. I don't know how to send an email to the user specified on the command line, and I receive an error stating -ge expecting a unary value(lines... (14 Replies)
Discussion started by: polyglot0727
14 Replies

3. Red Hat

Help to Find out Available disk space

I need to find available disk space for /home. $ df /home Filesystem 1K-blocks Used Available Use% Mounted on /dev/mahhh/VolGroup11-LogVol00 32281452 45028 26034172 15% / $df /home |tail -1| awk '{print $4}' 15% The above result shows the... (5 Replies)
Discussion started by: Anu_1
5 Replies

4. Shell Programming and Scripting

Shell script to find filesystem capacity on 50 servers

Hi all, I am new to Unix and I want to write a shell script in a jumpbox for finding the filesystem capacity on 50 unix servers ( by ssh ) and then email the result in HTML format with server name and capacity % to a specific outlook distribution list. any suggestion would be of great help. (17 Replies)
Discussion started by: amitbisht9
17 Replies

5. Solaris

format can't find a disk

Hello all, I was hoping to use a spare NAS as a ZFS fileserver and try a few things. Unfortunately it has a huge raid for data, but a small 1G system disk. As I want to use the kernel CIFS server, I need OpenSolaris, which doesn't install without all the bloated Gnomestuff (oh well) So I... (2 Replies)
Discussion started by: PatrickBaer
2 Replies

6. Solaris

Migrate VxVM boot disks to higher capacity disk

Hi, Im getting a downtime of 4 hrs to do porting of bootdisks. Currently, the system is running on Sf4800. 2 internal disk 36G connected to a SE3510 storage. We're getting 72G disks and we want to restore the OS from the current 36G to the 72G disk. System is under veritas volume manager ctrl.... (4 Replies)
Discussion started by: incredible
4 Replies

7. UNIX for Dummies Questions & Answers

How to find filesystems crossed 90% capacity

Hi experts, How do i find which are the filesystems which has crossed 90% capacity in solaris box. thanks Shaan:) (4 Replies)
Discussion started by: shaan_dmp
4 Replies

8. Solaris

how to find an errored disk

hai all, hope you people will guide me. please suggest me how find an errored disk in a ssa-100 array. what is the error message we get , when a disk fails and where is it logged. iam using solaris 8 version. please help me (2 Replies)
Discussion started by: raj.soladm
2 Replies

9. Filesystems, Disks and Memory

how to find memory capacity.

Hi, In Sun solaris o/s how can i find the memory space available,Swap space. By giving df command i can get the disc space. I want RAM space & swap space. If anybody assist me.that is great. Thanks (2 Replies)
Discussion started by: Mar1006
2 Replies

10. UNIX for Dummies Questions & Answers

Unix disk capacity at 100%

Is there any danger to keeping one of my disks at 100% capacity? (it's a disk just used for read-only files, not system files or anything like that). It's HP-UX if that matters. Thanks! (1 Reply)
Discussion started by: FredSmith
1 Replies
Login or Register to Ask a Question