Solved

RHEL LVM Error

Posted on 2014-03-03
1
773 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
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
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 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…
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.

743 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

18 Experts available now in Live!

Get 1:1 Help Now