LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-01-2008, 01:04 AM   #1
centos82
Member
 
Registered: Sep 2008
Distribution: CentOS
Posts: 75

Rep: Reputation: 16
LVM Reducing LVs Without Data Loss


I am trying to move space around on my server but am getting some warnings like the following that are keeping me from proceeding:

[/os_images]# lvreduce -L 19G /dev/VolGroup00/backuplv
WARNING: Reducing active logical volume to 19.00 GB
THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce backuplv? [y/n]:


I have unmounted the filesystem /backup so I am not sure why the warning says the logical volume is still active. Is there a way to unactivate the logical volume? Is there a way to reduce an LVM filesystem with 100% assurance that there won't be data corruption? And finally, is there a way to shrink a mounted/online filesystem without the risk of data loss?

Thank you whoever helps!
 
Old 10-01-2008, 02:00 AM   #2
jmbrink26
Member
 
Registered: Aug 2006
Posts: 72

Rep: Reputation: 15
Check the LV in /etc/lvm/lvm.conf (typically). Path and filename may be slightly different, but that should at least get you on the right track. Make sure the LV is inactive there.
 
Old 10-03-2008, 01:25 AM   #3
centos82
Member
 
Registered: Sep 2008
Distribution: CentOS
Posts: 75

Original Poster
Rep: Reputation: 16
Solved

I was able to get this to work by unmounting the filesystem and using "system-config-lvm". I was really trying to do this at the command line and some experts I trust said I could use the lvreduce or lvresize command and ignore the warning message as long as I was sure the resize2fs command was succssful.
 
Old 10-04-2008, 01:58 AM   #4
jmbrink26
Member
 
Registered: Aug 2006
Posts: 72

Rep: Reputation: 15
Awesome. Sounds like your all good to go. Yeah, there's always more than one way to go about most things, it all just depends on which one works the best :P.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reduce LVM Partition size without any data loss viral_Ahire Linux - Software 1 04-11-2008 03:42 PM
Need to mount LVM volume and save Data -- Recovering from power loss. chuckcom Linux - General 1 02-09-2008 07:57 PM
Data lost while reducing the lvm kkishore Linux - Server 1 09-17-2007 06:03 AM
LVM - possible data loss zdenisl Linux - Software 0 05-11-2006 06:21 PM
LVM problems (VGs found, but not LVs) jimisola Linux - Software 2 12-11-2005 11:59 AM


All times are GMT -5. The time now is 11:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration