Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

AIX mount point size and disk usage

Posted on 2011-10-31
9
Medium Priority
?
1,302 Views
Last Modified: 2013-11-17
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?
0
Comment
Question by:it-rex
  • 5
  • 4
9 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 37057547
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
 
LVL 11

Author Comment

by:it-rex
ID: 37057593
what is the difference between
%Used    and
%Iused
?
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 37057617
%Used is the percentage of space used,
%Iused is the percentage of inodes used.

Inode: http://en.wikipedia.org/wiki/Inode
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 11

Author Comment

by:it-rex
ID: 37057780
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
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 37057833
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
 
LVL 11

Author Comment

by:it-rex
ID: 37058066
lspv prod_asmdisk4
0516-306 : Unable to find  prod_asmdisk4 in the Device
        Configuration Database.
/dev
0
 
LVL 11

Author Comment

by:it-rex
ID: 37058622
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
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 37058916
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
 
LVL 11

Author Closing Comment

by:it-rex
ID: 37062181
great
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month14 days, 15 hours left to enroll

577 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question