This is a discussion on How to recover disk space in AIX 5.x within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi all, Could anybody let me know where my disk space has gone. I ahve 18GB(16 Bit LVD SCSI ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi all, Could anybody let me know where my disk space has gone. I ahve 18GB(16 Bit LVD SCSI Disk Drive)in IBM RS/6000(AIX 5.x)but it show me 10GB space mounted while "lsvg rootvg" shows all PPs used. Here are the output of some commands : $df -k /dev/hd4 32768 14124 57% 2265 14% / /dev/hd2 1310720 14856 99% 27461 9% /usr /dev/hd9var 32768 9212 72% 745 10% /var /dev/hd3 524288 425400 19% 86 1% /tmp /dev/hd1 8617984 869320 90% 53923 3% /home /proc - - - - - /proc /dev/hd10opt 32768 29324 11% 77 1% /opt $lsvg rootvg $lsvg rootvg VOLUME GROUP: rootvg VG IDENTIFIER: 00077aaf8e605fa3 VG STATE: active PP SIZE: 32 megabyte(s) VG PERMISSION: read/write TOTAL PPs: 542 (17344 megabytes) MAX LVs: 256 FREE PPs: 2 (64 megabytes) LVs: 9 USED PPs: 540 (17280 megabytes) OPEN LVs: 8 QUORUM: 2 TOTAL PVs: 1 VG DESCRIPTORS: 2 STALE PVs: 0 STALE PPs: 0 ACTIVE PVs: 1 AUTO ON: yes MAX PPs per PV: 1016 MAX PVs: 32 LTG size: 128 kilobyte(s) AUTO SYNC: no HOT SPARE: no $lsvg -l rootvg LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT hd5 boot 1 1 1 closed/syncd N/A hd6 paging 16 16 1 open/syncd N/A hd8 jfslog 1 1 1 open/syncd N/A hd4 jfs 1 1 1 open/syncd / hd2 jfs 40 40 1 open/syncd /usr hd9var jfs 1 1 1 open/syncd /var hd3 jfs 216 216 1 open/syncd /tmp hd1 jfs 263 263 1 open/syncd /home hd10opt jfs 1 1 1 open/syncd /opt How to recover the rest of the space with out affecting the existing filesystem. Thanks In advance Sids |
| |||
| Sids wrote: > Hi all, > > Could anybody let me know where my disk space has gone. I ahve 18GB(16 > Bit LVD SCSI Disk Drive)in IBM RS/6000(AIX 5.x)but it show me 10GB > space mounted while "lsvg rootvg" shows all PPs used. Here are the > output of some commands : > > $df -k > > /dev/hd4 32768 14124 57% 2265 14% / > /dev/hd2 1310720 14856 99% 27461 9% /usr > /dev/hd9var 32768 9212 72% 745 10% /var > /dev/hd3 524288 425400 19% 86 1% /tmp > /dev/hd1 8617984 869320 90% 53923 3% /home > /proc - - - - - /proc > /dev/hd10opt 32768 29324 11% 77 1% /opt > > > > $lsvg -l rootvg > > LV NAME TYPE LPs PPs PVs LV STATE MOUNT > POINT > hd5 boot 1 1 1 closed/syncd N/A > hd6 paging 16 16 1 open/syncd N/A > hd8 jfslog 1 1 1 open/syncd N/A > hd4 jfs 1 1 1 open/syncd / > hd2 jfs 40 40 1 open/syncd /usr > hd9var jfs 1 1 1 open/syncd /var > hd3 jfs 216 216 1 open/syncd /tmp > hd1 jfs 263 263 1 open/syncd /home > hd10opt jfs 1 1 1 open/syncd /opt > > > How to recover the rest of the space with out affecting the existing > filesystem. > > Thanks In advance > > Sids Space is inside hd3 logical volume, which is 7GB Someone resized the LV, but not its filesystem. So this space is really wasted. You can grow /tmp to fill the whole LV, but this is useless. You need to reduce /tmp to recover, but since it's usually used by the running system, you need to have a maintenance period and some skill. Have a look at this doc http://sysunconfig.net/aixtips/reduc...ystem_size.txt and to the AIX Documentation as well -- Alberto 'JCN-9000' Varesio AKA BlueRider AIX pSeries System Admin Datavision PLM - Tel: +390117710276 Biker on HONDA CB500 - LHG http://www.datavisionplm.com Jeeper on Sport TJ - Wave Please http://www.fsf.org/philosophy/no-word-attachments.html, thx! == Every time I think about exercise, I lie down until the thought goes away. |
| |||
| On 2004-07-02, Sids <love25sep@yahoo.com> wrote: > /dev/hd3 524288 425400 19% 86 1% /tmp > hd3 jfs 216 216 1 open/syncd /tmp The logical volume hd3 is 6912 MB in size, but the /tmp filesystem that is located on that volume is only 512 MB in size. > How to recover the rest of the space with out affecting the existing > filesystem. There are two options: extend the /tmp filesystem to 6900 MB, or shrink the logical volume hd3. The latter option requires either maintenance mode or a very quiet system since you need to unmount /tmp to shrink the LV. -- Jurjen Oskam "Avoid putting a paging file on a fault-tolerant drive, such as a mirrored volume or a RAID-5 volume. Paging files do not need fault-tolerance."-MS Q308417 |
| |||
| love25sep@yahoo.com (Sids) wrote in message news:<91ec5e5c.0407012300.549f7516@posting.google. com>... > Hi all, > > Could anybody let me know where my disk space has gone. I ahve 18GB(16 > Bit LVD SCSI Disk Drive)in IBM RS/6000(AIX 5.x)but it show me 10GB > space mounted while "lsvg rootvg" shows all PPs used. Here are the > output of some commands : > > $df -k > > /dev/hd4 32768 14124 57% 2265 14% / > /dev/hd2 1310720 14856 99% 27461 9% /usr > /dev/hd9var 32768 9212 72% 745 10% /var > /dev/hd3 524288 425400 19% 86 1% /tmp > /dev/hd1 8617984 869320 90% 53923 3% /home > /proc - - - - - /proc > /dev/hd10opt 32768 29324 11% 77 1% /opt > > > $lsvg > > rootvg > > $lsvg rootvg > > VOLUME GROUP: rootvg VG IDENTIFIER: > 00077aaf8e605fa3 > VG STATE: active PP SIZE: 32 > megabyte(s) > VG PERMISSION: read/write TOTAL PPs: 542 (17344 > megabytes) > MAX LVs: 256 FREE PPs: 2 (64 > megabytes) > LVs: 9 USED PPs: 540 (17280 > megabytes) > OPEN LVs: 8 QUORUM: 2 > TOTAL PVs: 1 VG DESCRIPTORS: 2 > STALE PVs: 0 STALE PPs: 0 > ACTIVE PVs: 1 AUTO ON: yes > MAX PPs per PV: 1016 MAX PVs: 32 > LTG size: 128 kilobyte(s) AUTO SYNC: no > HOT SPARE: no > > $lsvg -l rootvg > > LV NAME TYPE LPs PPs PVs LV STATE MOUNT > POINT > hd5 boot 1 1 1 closed/syncd N/A > hd6 paging 16 16 1 open/syncd N/A > hd8 jfslog 1 1 1 open/syncd N/A > hd4 jfs 1 1 1 open/syncd / > hd2 jfs 40 40 1 open/syncd /usr > hd9var jfs 1 1 1 open/syncd /var > hd3 jfs 216 216 1 open/syncd /tmp > hd1 jfs 263 263 1 open/syncd /home > hd10opt jfs 1 1 1 open/syncd /opt > > > How to recover the rest of the space with out affecting the existing > filesystem. > > Thanks In advance > > Sids Sid How did you manage to do this? Its interesting anyway it would appear that your /tmp area has gone mad the lsvg -l tells us that it thinks its using 216 PP which is about 7GB but your df -k shows about 524MB. I would use smit jfs just to see what that screen thinks, I would also log a call with IBM on this as this shouldn't happen I can only guess its the odm which has gone wrong but trying to fix all the information will be hard work and I would tell the business to expect some downtime. Of course you may be able to just expand the tmp area upto the correct amount within smit jfs and that may work but that won't give you the space back. let us know what you find. Peter |
| |||
| On 2004-07-02, peter.glover@dsl.pipex.com <peter.glover@dsl.pipex.com> wrote: > How did you manage to do this? Very simple: run extendlv instead of chfs. The latter automatically extends the logical volume, if needed. The former only adds logical partitions to the logical volume without touching the data already on the volume. -- Jurjen Oskam "Avoid putting a paging file on a fault-tolerant drive, such as a mirrored volume or a RAID-5 volume. Paging files do not need fault-tolerance."-MS Q308417 |
| ||||
| love25sep@yahoo.com (Sids) wrote in message news:<91ec5e5c.0407012300.549f7516@posting.google. com>... > Could anybody let me know where my disk space has gone. I ahve 18GB(16 > Bit LVD SCSI Disk Drive)in IBM RS/6000(AIX 5.x)but it show me 10GB > space mounted while "lsvg rootvg" shows all PPs used. Here are the > output of some commands : > > $df -k > > /dev/hd4 32768 14124 57% 2265 14% / > /dev/hd2 1310720 14856 99% 27461 9% /usr > /dev/hd9var 32768 9212 72% 745 10% /var > /dev/hd3 524288 425400 19% 86 1% /tmp > /dev/hd1 8617984 869320 90% 53923 3% /home > /proc - - - - - /proc > /dev/hd10opt 32768 29324 11% 77 1% /opt > [snip] > $lsvg -l rootvg > > LV NAME TYPE LPs PPs PVs LV STATE MOUNT > POINT > hd5 boot 1 1 1 closed/syncd N/A > hd6 paging 16 16 1 open/syncd N/A > hd8 jfslog 1 1 1 open/syncd N/A > hd4 jfs 1 1 1 open/syncd / > hd2 jfs 40 40 1 open/syncd /usr > hd9var jfs 1 1 1 open/syncd /var > hd3 jfs 216 216 1 open/syncd /tmp > hd1 jfs 263 263 1 open/syncd /home > hd10opt jfs 1 1 1 open/syncd /opt > > > How to recover the rest of the space with out affecting the existing > filesystem. > This missing space is in logical volume hd3. /tmp should be around 7 GB in size given the number of LPs assigned to hd3. Someone expanded the logical volume rather than expanding the filesystem. You could recover the unused LPs by shutting the system down into maintenance mode, backing up /tmp, removing /tmp (which will remove hd3), recreating hd3 with at least 13 LPs, creating /tmp within hd3, and restoring /tmp. |