linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] lvextend NEVER works but screws up
@ 2012-08-23 10:08 tariq wali
  2012-08-23 11:14 ` tariq wali
  0 siblings, 1 reply; 15+ messages in thread
From: tariq wali @ 2012-08-23 10:08 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 1556 bytes --]

Hi, i was a big fan of lvm and used to advocate it's use at my workplace
but each time i try to use lvreduce or lvextend on production it has ALWAYS
been a major let down and messed up our production data and caused major
outages and not to forget the big stick up *** .

please look at the sequence and this is what I did

 vgs
  VG   #PV #LV #SN Attr   VSize   VFree
  vg0    1   2   0 wz--n- 492.72G     * 42.72G*
*
*
*df -kh*
*/dev/mapper/vg0-logs   99G   43G   52G  46% /bin-logs*
*
*
I wanted to use the free 42.7 G and allocate it to /bin-logs so this is
what I ran in order to extended

# lvextend -L +42.7G -n /dev/vg0/logs
  Rounding up size to full physical extent 42.70 GB
  Extending logical volume logs to 142.70 GB
  Logical volume logs successfully resized

#resize2fs /dev/vg0/logs    ( and it gets screwed up here )
resize2fs 1.39 (29-May-2006)
*resize2fs: Filesystem has unsupported feature(s) while trying to open
/dev/vg0/logs*
*Couldn't find valid filesystem superblock.*
*
*
and the free space of 42.7G is also gone ,

 # vgs
  VG   #PV #LV #SN Attr   VSize   VFree
  vg0    1   2   0 wz--n- 492.72G  * 20.00M*
*
*
*
lvm version
  LVM version:     2.02.88(2)-RHEL5 (2012-01-20)
  Library version: 1.02.67-RHEL5 (2011-10-14)
  Driver version:  4.11.6

*
*
*
It' so annoying to see this happen , from what I know that's the cmd
sequence to extend an existing LVM online , now I am not sure what this did
to my filesystem and  hoping it hasn't ****ED my data yet .

your insights would greatly be appreciated .







-- 
*Tariq Wali.*

[-- Attachment #2: Type: text/html, Size: 2382 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-10-05  0:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-23 10:08 [linux-lvm] lvextend NEVER works but screws up tariq wali
2012-08-23 11:14 ` tariq wali
2012-08-23 14:10   ` Vic
2012-08-23 15:18     ` tariq wali
2012-08-23 15:23       ` Vic
2012-08-24  6:32       ` Jonathan Tripathy
2012-08-24 11:55       ` Stuart D Gathman
2012-08-27 11:46         ` tariq wali
2012-08-28  9:09           ` Zdenek Kabelac
     [not found]             ` <CAGQjrKajQYDc48i+FZhB5zUAJKHtMe4FqSgwx8Ed-z7wRuDVQQ@mail.gmail.com>
2012-10-04  6:32               ` tariq wali
2012-10-04 19:59                 ` Stuart D Gathman
2012-08-23 14:21   ` flavio-redhat
2012-08-23 16:08     ` Brassow Jonathan
2012-08-23 16:36   ` Bryn M. Reeves
2012-08-23 16:53     ` Stuart D Gathman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).