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.
$ bash
bash-3.00$ lspv
hdisk1 0001579a7fa3c086 None
$ lscfg -vl hdisk1
hdisk1 U7998.61X.06157AA-V2-C2-T1-L820000000000 Virtual SCSI Disk Drive
girija
2
you can try df -k (Man df for options) which will give you free space and total spaces
Scott
3
Hi.
You can use:
$ getconf DISK_SIZE /dev/hdisk1
This shows the size in Megabytes.
choyb
6
Can 'df' tell you how much is used ? on the filesystems
Bryan
depending on the storage subsystem, the driver may give you an answer too
for sddpcm drivers (IBM storage)
pcmpath query essmap
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
df -g .will show you your /hd4 (thats root dir )
lsvg .will show Volume Groups (ie Rootvg)
lsvg -l Rootvg . will show properties of this Volume Group
lsvg -o .will show active VGs
hdisk1 0001579a7fa3c086 None
"none" means device hdisk1 no belongs to any volumen group->no any volumen -> no any filesystems -> can't use command fs.