?
Solved

RHEL LVM Error

Posted on 2014-03-03
1
Medium Priority
?
839 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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month14 days, 17 hours left to enroll

771 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