Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

RHEL LVM Error

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

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

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

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…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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 Month20 days, 23 hours left to enroll

810 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