We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Increase filesystem Size RHEL5

mnis2008
mnis2008 asked
on
Medium Priority
496 Views
Last Modified: 2012-06-21
How do I check how much space is still left out in my VG and if yes how do I increase /home
Comment
Watch Question

Top Expert 2011

Commented:
As root:
# pvdisplay
# vgdisplay
# lvdsiplay
Top Expert 2011

Commented:
Please post the output of those commands above plus this one:
# fdisk -l

So people here know your disk usage.
Top Expert 2011

Commented:
Woo, typo, should be (as root)
# pvdisplay
# vgdisplay
# lvdisplay
# fdisk -l
CERTIFIED EXPERT

Commented:
You can display one of the following

lvmdiskscan

pvs
vgs
lvs
pvscan
vgscan
lvscan

pvdisplay
vgdisplay
lvdisplay

You can extend your vg by vgextend
You can change your lvm by lvresize

Author

Commented:
Here is the output

]# lvdisplay
  --- Logical volume ---
  LV Name                /dev/VolGroup01/LogVol01
  VG Name                VolGroup01
  LV UUID                amYm35-eWPU-K8sR-jQnW-z79F-OlgY-K98WqV
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                3.97 GB
  Current LE             127
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:12

  --- Logical volume ---
  LV Name                /dev/VolGroup00/root
  VG Name                VolGroup00
  LV UUID                97IkAC-T35d-CMSg-8QXk-vsgs-fe9Q-fglWor
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

  --- Logical volume ---
  LV Name                /dev/VolGroup00/home
  VG Name                VolGroup00
  LV UUID                o0sDnj-LHHT-c0vl-GchM-3ZU4-1Fxe-1nlctD
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1

  --- Logical volume ---
  LV Name                /dev/VolGroup00/admin
  VG Name                VolGroup00
  LV UUID                p63Zcf-dl4x-hAct-EjOl-lO6u-04Vc-90Oy05
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2

  --- Logical volume ---
  LV Name                /dev/VolGroup00/tmp
  VG Name                VolGroup00
  LV UUID                UgXBKO-SumX-YFHK-pZg5-3saJ-Ad7F-mCnVGY
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3

  --- Logical volume ---
  LV Name                /dev/VolGroup00/opt
  VG Name                VolGroup00
  LV UUID                d1Fl4U-cOLs-cYsN-2KDu-PcSJ-DM5X-AaBloB
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2.00 GB
  Current LE             64
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:4

  --- Logical volume ---
  LV Name                /dev/VolGroup00/apps
  VG Name                VolGroup00
  LV UUID                fYMh5e-h0mu-qvxp-mthR-VqN9-YGiB-QBJulw
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:5

  --- Logical volume ---
  LV Name                /dev/VolGroup00/usr
  VG Name                VolGroup00
  LV UUID                HlRhrM-3EOx-xmwS-sA3s-l784-43KP-U2Khuj
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                3.00 GB
  Current LE             96
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:6

  --- Logical volume ---
  LV Name                /dev/VolGroup00/var
  VG Name                VolGroup00
  LV UUID                l3Onon-vaPN-rWG2-hbiP-yPei-BOdI-BKkyTO
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                3.00 GB
  Current LE             96
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:7

  --- Logical volume ---
  LV Name                /dev/VolGroup00/varlog
  VG Name                VolGroup00
  LV UUID                FrtRk7-w0BZ-Zuk9-4BJl-NAFx-wmzA-DBcRIB
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:8

  --- Logical volume ---
  LV Name                /dev/VolGroup00/varlogaudit
  VG Name                VolGroup00
  LV UUID                VY8XGg-bIKn-xWWQ-fai7-pMIN-xZTd-7xlFev
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:9

# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sdb1
  VG Name               VolGroup01
  PV Size               4.00 GB / not usable 30.63 MB
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              127
  Free PE               0
  Allocated PE          127
  PV UUID               8E781D-N6LZ-JQWk-ZXWf-R1WP-8d4r-HqrXBU

  --- Physical volume ---
  PV Name               /dev/sda2
  VG Name               VolGroup00
  PV Size               22.90 GB / not usable 22.43 MB
  Allocatable           yes
  PE Size (KByte)       32768
  Total PE              732
  Free PE               252
  Allocated PE          480
  PV UUID               Z8nPcb-ggmA-9kVL-GGZL-Q7I4-q2MI-BxcUD7

  --- Physical volume ---
  PV Name               /dev/sdc1
  VG Name               VolGroup00
  PV Size               60.00 GB / not usable 28.04 MB
  Allocatable           yes
  PE Size (KByte)       32768
  Total PE              1919
  Free PE               1919
  Allocated PE          0
  PV UUID               ijmOcX-f3RR-mnPZ-mvAG-mkJV-WHQ2-qT8P6q

]# vgdisplay
  --- Volume group ---
  VG Name               VolGroup01
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  2
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               3.97 GB
  PE Size               32.00 MB
  Total PE              127
  Alloc PE / Size       127 / 3.97 GB
  Free  PE / Size       0 / 0
  VG UUID               FQi33v-GzIl-gtfM-cMWV-j1MI-QJN8-xQ2z4U

  --- Volume group ---
  VG Name               VolGroup00
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  16
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                10
  Open LV               10
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               82.84 GB
  PE Size               32.00 MB
  Total PE              2651
  Alloc PE / Size       480 / 15.00 GB
  Free  PE / Size       2171 / 67.84 GB
  VG UUID               KJse36-7Sml-o0hm-JWoc-6QPR-vhb4-KtmxVa

[root@lpv042 Data_Files]# lvdisplay
  --- Logical volume ---
  LV Name                /dev/VolGroup01/LogVol01
  VG Name                VolGroup01
  LV UUID                amYm35-eWPU-K8sR-jQnW-z79F-OlgY-K98WqV
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                3.97 GB
  Current LE             127
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:12

  --- Logical volume ---
  LV Name                /dev/VolGroup00/root
  VG Name                VolGroup00
  LV UUID                97IkAC-T35d-CMSg-8QXk-vsgs-fe9Q-fglWor
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

  --- Logical volume ---
  LV Name                /dev/VolGroup00/home
  VG Name                VolGroup00
  LV UUID                o0sDnj-LHHT-c0vl-GchM-3ZU4-1Fxe-1nlctD
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1

  --- Logical volume ---
  LV Name                /dev/VolGroup00/admin
  VG Name                VolGroup00
  LV UUID                p63Zcf-dl4x-hAct-EjOl-lO6u-04Vc-90Oy05
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2

  --- Logical volume ---
  LV Name                /dev/VolGroup00/tmp
  VG Name                VolGroup00
  LV UUID                UgXBKO-SumX-YFHK-pZg5-3saJ-Ad7F-mCnVGY
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3

  --- Logical volume ---
  LV Name                /dev/VolGroup00/opt
  VG Name                VolGroup00
  LV UUID                d1Fl4U-cOLs-cYsN-2KDu-PcSJ-DM5X-AaBloB
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2.00 GB
  Current LE             64
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:4

  --- Logical volume ---
  LV Name                /dev/VolGroup00/apps
  VG Name                VolGroup00
  LV UUID                fYMh5e-h0mu-qvxp-mthR-VqN9-YGiB-QBJulw
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:5

  --- Logical volume ---
  LV Name                /dev/VolGroup00/usr
  VG Name                VolGroup00
  LV UUID                HlRhrM-3EOx-xmwS-sA3s-l784-43KP-U2Khuj
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                3.00 GB
  Current LE             96
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:6

  --- Logical volume ---
  LV Name                /dev/VolGroup00/var
  VG Name                VolGroup00
  LV UUID                l3Onon-vaPN-rWG2-hbiP-yPei-BOdI-BKkyTO
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                3.00 GB
  Current LE             96
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:7

  --- Logical volume ---
  LV Name                /dev/VolGroup00/varlog
  VG Name                VolGroup00
  LV UUID                FrtRk7-w0BZ-Zuk9-4BJl-NAFx-wmzA-DBcRIB
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:8

  --- Logical volume ---
  LV Name                /dev/VolGroup00/varlogaudit
  VG Name                VolGroup00
  LV UUID                VY8XGg-bIKn-xWWQ-fai7-pMIN-xZTd-7xlFev
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:9


# fdisk -l

Disk /dev/sda: 24.6 GB, 24696061952 bytes
255 heads, 63 sectors/track, 3002 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104358+  83  Linux
/dev/sda2              14        3002    24009142+  8e  Linux LVM

Disk /dev/sdb: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         522     4192901   8e  Linux LVM
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(0, 1, 1) logical=(0, 2, 3)

Disk /dev/sdc: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1        7832    62910508+  8e  Linux LVM
Top Expert 2011
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
This worked ...Thanks
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.