CHFS running clean but FileSize not changing


 
Thread Tools Search this Thread
Operating Systems AIX CHFS running clean but FileSize not changing
# 1  
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..
# 2  
Old 10-07-2015
To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)



Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums
# 3  
Old 10-08-2015
Please show the output of
Code:
lsfs -q /oracle/EP1/sapdata1

# 4  
Old 10-08-2015
I don't know why, but you have different outputs from lslv and lsvg -l commands. According to lsvg -l vg00 your lv_sapdata1 should be 483 PPs, and according to lslv lv_sapdata1 it is 482 PPs.

Then you did show us the output of df but not of lsvg -l vg00 or lslv after issuing chfs. And as zaxxon writes lslfs is very useful too.
# 5  
Old 10-09-2015
When I first starting reading I read over your literal question - the filesystem stats are not changing.

A bit of analysis.

The lsvg output says each PP (physical partition) is 256M (byte) - so 4 of these would be 1 GByte - and 40 would be the 10GByte that du is reporting.

Since 482 are already allocated - chfs simply does the expansion in place - so the lsvg/lslv output should not be changing.

At this point, as pointed out earlier that you have 482 PP in one listing, and 483 PP in another - whoever is running these commands (for you) is not giving you data "as it happens" - short form - I see too many "mistakes" in the data to provide a reply "to the data presented to us".

More analysis and guessing:

Quote:
sapep101dr(root):/home/root>chfs -a size=+512M /oracle/EP1/sapdata1
Filesystem size changed to 253231104
chfs looks at the data in /etc/filesystems (aka LVCB/VG info) and updates that. If another filesystem is mounted over that mount point then df will tell what is mounted over that mount point.

Getting back to the data above - the 2532231104 is in 512 byte blocks. That is roughly 120.75 GByte - and if we multiple 120.75 * 4 (i.e. 4PP per GByte we get 483 PP)

My guess is that chfs is working as it should, but something else is mounted over /oracle/EP1/sapdata1
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question