AIX mount point size and disk usage

what is the best way to show mountpoint size in MEG or GIG and show percentage of disk usage?
also how to show the size of a block device?
LVL 11
it-rexAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

woolmilkporcCommented:
Hi,

do you mean something like

df -m  # (size in MB)?
or
df -g  # (size in GB)?

Percentage of filesystem use is in the 4th column of "df".

The utilization of a single hdisk can be found with

lspv hdiskx

(the "TOTAL/FREE/USED" values).


Which kind of "block device" do you have in mind?

wmp
0
it-rexAuthor Commented:
what is the difference between
%Used    and
%Iused
?
0
woolmilkporcCommented:
%Used is the percentage of space used,
%Iused is the percentage of inodes used.

Inode: http://en.wikipedia.org/wiki/Inode
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

it-rexAuthor Commented:
for the 2nd Q
I have a block device and a chracter device on /dev

say named like this

brw-------    1 oracle   dba          34,  4 Apr 19 2011  prod_asmdisk4
crw-------    1 oracle   dba          34,  4 Oct 31 07:42 rprod_asmdisk4

how to get the size?
0
woolmilkporcCommented:
Did you try

lspv prod_asmdisk4

?

Alternatively you could use th V$ASM_DISK view (sqlplus):

select NAME, PATH, TOTAL_MB, FREE_MB from V$ASM_DISK;

asmcmd is also an option:

asmcmd lsdsk

wmp





l
0
it-rexAuthor Commented:
lspv prod_asmdisk4
0516-306 : Unable to find  prod_asmdisk4 in the Device
        Configuration Database.
/dev
0
it-rexAuthor Commented:
prod_asmdisk15 is a logical volume so if I use

lslv prod_asmdisk15
LOGICAL VOLUME:     prod_asmdisk15         VOLUME GROUP:   prod_asmvg1
LV IDENTIFIER:      00f614e900004c000000012f6d7327a1.15 PERMISSION:     read/write
VG STATE:           active/complete        LV STATE:       closed/syncd
TYPE:               raw                    WRITE VERIFY:   off
MAX LPs:            1903                   PP SIZE:        256 megabyte(s)
COPIES:             1                      SCHED POLICY:   parallel
LPs:                1903                   PPs:            1903
STALE PPs:          0                      BB POLICY:      relocatable
INTER-POLICY:       minimum                RELOCATABLE:    yes
INTRA-POLICY:       middle                 UPPER BOUND:    1024
MOUNT POINT:        N/A                    LABEL:          None
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?:     NO
DEVICESUBTYPE : DS_LVZ
COPY 1 MIRROR POOL: None
COPY 2 MIRROR POOL: None
COPY 3 MIRROR POOL: None



how can I get the size here???
0
woolmilkporcCommented:
Multiply the value for PP size (256 MB) with the value for PPs (1903) to get the size of the logical volume in MB (487168). Divide this by 1024 to get the size in GB (475.75)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
it-rexAuthor Commented:
great
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.