Sponsored Content
Operating Systems AIX CHFS running clean but FileSize not changing Post 302957160 by nck_ptl on Wednesday 7th of October 2015 05:18:41 PM
Old 10-07-2015
CHFS running clean but FileSize not changing

Code:
sapep101dr(root):/home/root>lsvg -l vg00
vg00:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
lv_102_64           jfs2       40      40      1    open/syncd    /oracle/EP1/102_64
loglv01             jfs2log    1       1       1    open/syncd    N/A
lv_EP1              jfs2       12      12      1    open/syncd    /sapmnt/EP1
lv_origlogA         jfs2       4       4       1    open/syncd    /oracle/EP1/origlogA
lv_mirrlogA         jfs2       4       4       1    open/syncd    /oracle/EP1/mirrlogA
lv_origlogB         jfs2       4       4       1    open/syncd    /oracle/EP1/origlogB
lv_mirrlogB         jfs2       4       4       1    open/syncd    /oracle/EP1/mirrlogB
lv_sapreorg         jfs2       40      40      1    open/syncd    /oracle/EP1/sapreorg
lv_oraarch          jfs2       40      40      1    open/syncd    /oracle/EP1/oraarch
lv_sapdata1         jfs2       483     483     3    open/syncd    /oracle/EP1/sapdata1
lv_sapdata2         jfs2       240     240     1    open/syncd    /oracle/EP1/sapdata2
lv_sapdata3         jfs2       240     240     1    open/syncd    /oracle/EP1/sapdata3
lv_sapdata4         jfs2       240     240     2    open/syncd    /oracle/EP1/sapdata4
sapep101dr(root):/home/root>



sapep101dr(root):/home/root>lslv lv_sapdata1 .
LOGICAL VOLUME:     lv_sapdata1            VOLUME GROUP:   vg00
LV IDENTIFIER:      00c5130e00004c00000001261fee63b6.10 PERMISSION:     read/write
VG STATE:           active/complete        LV STATE:       opened/syncd
TYPE:               jfs2                   WRITE VERIFY:   off
MAX LPs:            512                    PP SIZE:        256 megabyte(s)
COPIES:             1                      SCHED POLICY:   parallel
LPs:                482                    PPs:            482
STALE PPs:          0                      BB POLICY:      relocatable
INTER-POLICY:       minimum                RELOCATABLE:    yes
INTRA-POLICY:       middle                 UPPER BOUND:    128
MOUNT POINT:        /oracle/EP1/sapdata1   LABEL:          /oracle/EP1/sapdata1
DEVICE UID:         0                      DEVICE GID:     0
DEVICE PERMISSIONS: 432
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?:     NO
INFINITE RETRY:     no

sapep101dr(root):/home/root>lsvg vg00
VOLUME GROUP:       vg00                     VG IDENTIFIER:  00c5130e00004c00000001261fee63b6
VG STATE:           active                   PP SIZE:        256 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      1421 (363776 megabytes)
MAX LVs:            512                      FREE PPs:       70 (17920 megabytes)
LVs:                13                       USED PPs:       1351 (345856 megabytes)
OPEN LVs:           13                       QUORUM:         1 (Disabled)
TOTAL PVs:          3                        VG DESCRIPTORS: 3
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         3                        AUTO ON:        yes
MAX PPs per VG:     130048
MAX PPs per PV:     1016                     MAX PVs:        128
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable
PV RESTRICTION:     none                     INFINITE RETRY: no

sapep101dr(root):/home/root>lsattr -El vg00
auto_on       y                                Auto varyon             True
conc_auto_on  n                                N/A                     True
conc_capable  n                                N/A                     True
gbl_pbufs_ppv 0                                N/A                     True
gbl_pbufs_pvg 0                                N/A                     True
timestamp     561585a31df100fe                 N/A                     True
vg_pbufs_ppv  0                                N/A                     True
vgserial_id   00c5130e00004c00000001261fee63b6 Volume group identifier False


sapep101dr(root):/home/root>df -g /oracle/EP1/sapdata1
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/lv_sapdata1     10.00      9.33    7%     5957     1% /oracle/EP1/sapdata1

sapep101dr(root):/home/root>chfs -a size=+512M /oracle/EP1/sapdata1
Filesystem size changed to 253231104

sapep101dr(root):/home/root>df -g /oracle/EP1/sapdata1
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/lv_sapdata1     10.00      9.33    7%     5957     1% /oracle/EP1/sapdata1
sapep101dr(root):/home/root>


Last edited by Corona688; 10-07-2015 at 06:38 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

filesize

I know in php if you use the function filesize it will return the size of the file in bytes, but is there an easy way to get the size in MB. Cheers (2 Replies)
Discussion started by: jmg5
2 Replies

2. Shell Programming and Scripting

FileSize ???

How do I identify if there is any content in a file? If there is nothing in a specified file, I'd like to send an email indicating that there is nothing to report. Any help appreciated. (3 Replies)
Discussion started by: Cameron
3 Replies

3. AIX

chfs increase /var limit at 512mb?

Is there a limit of 512Mb when doing a "chfs -a size=XXXXX /myfs" ? I managed to increase /var to 512MB fine, no issues, then i wanted to increase /usr to 2Gb, but when i enter: # chfs -a size=2260992 /usr chfs: 0506-908 Cannot reduce size... (5 Replies)
Discussion started by: craigp84
5 Replies

4. UNIX for Dummies Questions & Answers

UNIX and filesize

Hey guys. What I need to do is this: I need to find files that have a certain filesize (for this case a file size of 0 (zero) ) When I find this file with a filesize of zero I need to echo a statement that tells the user to delete it and not to delete it if the filesize is greater than... (3 Replies)
Discussion started by: ndoggy020
3 Replies

5. AIX

chfs -- permission denied

nevermind .. please close. tired admin in the morning ) edit by bakunin: your wish shall be my command... ;-)) -closed- (0 Replies)
Discussion started by: tenshi
0 Replies

6. Shell Programming and Scripting

filesize

I want to know if there is any unix command to view the size of the file? eg. i have a directory letter in this i have file a,b,c,d,e. i just want to know the size of file d and not any other. (3 Replies)
Discussion started by: infyanurag
3 Replies

7. Shell Programming and Scripting

getting filesize

Hello, I have a script that should store file size in a variable $filesize. I don't know what is the best way to do it. I tried ls -lt myfile.txt | sed something >$filesize but I don't know how to use sed to get filesize. I know that the owner of the file is root and then we have some... (6 Replies)
Discussion started by: pppswing
6 Replies

8. Shell Programming and Scripting

Filesize not working

I am having problems with finding the filesize with this in my script: filesize=`ls -l | awk '$5=0'` if ; then ls -l | awk '{print $9 " " $5}' if ; then echo "Would you like to delete this file? (y/n)" if yes do this elif no do this fi fi else... (7 Replies)
Discussion started by: akeenabawa
7 Replies

9. Shell Programming and Scripting

if condition for filesize

Hi, I want to check file size in unix, based on file size I am going to execute appropriate command. I tried below, but getting the error. System details – Machine hardware: sun4u OS version: 5.9 if ( -s $f1 ) then echo "filename exists and is > 0 bytes" else echo "filename... (7 Replies)
Discussion started by: rahulbahulekar
7 Replies

10. Shell Programming and Scripting

Changing information supplied when running file

In unix systems I can call `file` to return me the file type. file cel.vik $ cel.vik: ASCII text How can I append additional information when I create a file such that when I call `file` it returns me that additional information. (2 Replies)
Discussion started by: kristinu
2 Replies
All times are GMT -4. The time now is 03:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy