?
Solved

RHEL LVM Error

Posted on 2014-03-03
1
Medium Priority
?
872 Views
1 Endorsement
Last Modified: 2014-03-06
I am not able to extend a Filesystem on RHEL, This is error I receive


[root@csc061a ~]# lvextend -L +71G -r /dev/mapper/optvg-splunkvar
  Snapshot origin volumes can be resized only while inactive: try lvchange -an
  Run `lvextend --help' for more information.

How do I increase the Filesystem, I know that I have run resize2fs after the lvextend command is successful, so please help


I have enough space in the volume group "optvg
[root@csc061a ~]# vgs

  VG     #PV #LV #SN Attr   VSize   VFree
  optvg    3   5   1 wz--n- 274.99g 75.09g
  rootvg   1  11   0 wz--n-  19.50g  5.41g



For more volume group attributes:
[root@csc061a ~]# vgdisplay optvg
  --- Volume group ---
  VG Name               optvg
  System ID
  Format                lvm2
  Metadata Areas        3
  Metadata Sequence No  1047
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                5
  Open LV               5
  Max PV                0
  Cur PV                3
  Act PV                3
  VG Size               274.99 GiB
  PE Size               4.00 MiB
  Total PE              70397
  Alloc PE / Size       51175 / 199.90 GiB
  Free  PE / Size       19222 / 75.09 GiB
  VG UUID               d6sghB-v25g-DckA-h7WR-TiLv-0Kt7-4KlJT6


For more logical volume attributes
[root@csc061a ~]# lvs
  LV             VG     Attr       LSize   Pool Origin    Data%  Move Log Cpy%Sync Convert
  forwarder      optvg  -wi-ao---- 512.00m
  logs           optvg  -wi-ao----  25.00g
  lv_optitmagent optvg  -wi-ao---- 512.00m
  splunkvar      optvg  owi-aos--- 168.00g
  splunkvar-snap optvg  swi-aos---   5.90g      splunkvar  95.22
  logvol         rootvg -wi-ao----   1.47g
  optvol         rootvg -wi-ao----   1.00g
  rootvol        rootvg -wi-ao----   2.47g
  savol          rootvg -wi-ao---- 512.00m
  sharevol       rootvg -wi-ao----   1.00g
  splunk         rootvg -wi-ao----   1.00g
  swapvol        rootvg -wi-ao----   1.97g
  tivoli         rootvg -wi-ao---- 256.00m
  tmpvol         rootvg -wi-ao----   1.00g
  varvol         rootvg -wi-ao----   1.47g


For LV that I am concerned about the attributes are
[root@csc061a ~]# lvdisplay /dev/mapper/optvg-splunkvar
  --- Logical volume ---
  LV Path                /dev/optvg/splunkvar
  LV Name                splunkvar
  VG Name                optvg
  LV UUID                IX3mlpg-28DP-fihX-VRQy-TVYC-riHe-X99eCw
  LV Write Access        read/write
  LV Creation host, time csc061a, 2013-03-05 06:12:01 -0600
  LV snapshot status     source of
                         splunkvar-snap [active]
  LV Status              available
  # open                 1
  LV Size                168.00 GiB
  Current LE             43008
  Segments               3
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2

Open in new window

1
Comment
Question by:aanya247
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 13

Accepted Solution

by:
Sandy earned 2000 total points
ID: 39902578
error says system not permitted online resizing hence first make it inactive by taking downtime on FS and then extend.

TY/SA
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses

650 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