Solved

RHEL LVM Error

Posted on 2014-03-03
1
790 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
1 Comment
 
LVL 13

Accepted Solution

by:
Sandy earned 500 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
what is the difference between "sudo su" and "su - root" 6 106
PHP Apache application gives "Forbidden" message 5 45
Linux Scripting 3 102
is my large folder zipped corrupted 4 51
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

867 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now