LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Data lost while reducing the lvm (https://www.linuxquestions.org/questions/linux-server-73/data-lost-while-reducing-the-lvm-585250/)

kkishore 09-17-2007 05:47 AM

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.

syg00 09-17-2007 06:03 AM

You have to reduce the filesystem before the LV.
See the howto at tldp.org


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