LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-17-2007, 05:47 AM   #1
kkishore
LQ Newbie
 
Registered: May 2007
Posts: 1

Rep: Reputation: 0
Data lost while reducing the lvm


Dear All,

I am facing a problem while reducing the lvm

df -h gives the following result.

/dev/mapper/VolGroup00-backup
29G 4.2G 24G 16% /backup

than i run the following command to reduce the logical volume.
lvreduce -L -23G /dev/VolGroup00/backup

But after that i got the following data missing error.
This logical volume is mounted at /backup.

ls -al /backup

drwxr-xr-x 4 root root 4096 Sep 17 18:43 .
drwxr-xr-x 25 root root 4096 Sep 17 19:40 ..
drwxr-xr-x 6 root root 4096 Sep 14 21:44 RHEL
?--------- ? ? ? ? ? RHEL4.4
-rw-r--r-- 1 root root 0 Sep 17 19:02 swapfile

How to reduce a lvm without lossing data.....
Please provide the proper solution for this...


Thansk and Regards,

K. K.
 
Old 09-17-2007, 06:03 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
You have to reduce the filesystem before the LV.
See the howto at tldp.org
 
  


Reply



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
LVM Nightmare! Have I lost my data? MythN00b Linux - Hardware 14 09-20-2007 09:42 PM
LVM: The Impact of Reducing a Logical Volume Size? muff Linux - General 0 07-27-2007 02:18 AM
HDD partition lost. xandros DVD + me = lost data lein Linux - General 18 05-22-2007 05:47 AM
Reducing the Linux LVM(8e) partition itself (not PV, VG or LV). ajitkth Linux - General 1 03-08-2005 03:45 AM
Reducing size of PV (partition) in LVM clacour Linux - General 2 10-24-2003 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:32 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration