Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DISK SPACE

Status
Not open for further replies.

june54

Technical User
Jun 4, 2003
160
0
0
US
Is there a AIX/UNIX cmd that would give me the total amount availiable disk space on a RS6k with SSA disk ...

 
Check this FAQ: faq52-2441

It doesn't give you total disk space, but you could probably add that somewhere in the script.
 

You can use this command to see the available free space.

lspv hdisk2 (of course put in the disk of choice)
Should print out something similar to this. It shows the size of PP (Physical Partition) and the number of Free PPs. Just multiply and get free space.

PHYSICAL VOLUME: hdisk2 VOLUME GROUP: qvvg
PV IDENTIFIER: 000d162db7c458f3 VG IDENTIFIER 000d162d129feb7f
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 32 megabyte(s) LOGICAL VOLUMES: 2
TOTAL PPs: 814 (26048 megabytes) VG DESCRIPTORS: 2
FREE PPs: 406 (12992 megabytes) HOT SPARE: no
USED PPs: 408 (13056 megabytes)
FREE DISTRIBUTION: 162..00..00..81..163
USED DISTRIBUTION: 01..163..162..82..00


-kirk
 
hi,
independently from SSA (it creates an ulterior level), you have in AIX the Volume Manager.

You can put more than 1 disk together (1 or more PV in a VG) in a VolumeGroup and then partition it in LV (Logical Volumes) ( as Windows partition ). Usually on each LV, is created a FS (FileSystem) a structure with directory; usually becouse there are exceptions: hd5,hd6,hd8 boot,paging,jfslog and raw device for propietary use (Oracle or other)

Doing

lsvg

you get the list of VGs; doing

lsvg yourvg

you see which part of VG is free (unused,unpartitioned)

Giving

lsvg -l yourvg

you know how the VG is divided in FS and doing

df -k [yourfs]
or
df -k

you see the how much the FS is used.

Not related to space available, for thoroughness, you can

lsvg -p yourvg

to see which PV are in a VG.

bye



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top