LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   messed up an fs with lvreduce (https://www.linuxquestions.org/questions/linux-newbie-8/messed-up-an-fs-with-lvreduce-715416/)

ic_torres 03-30-2009 02:01 AM

messed up an fs with lvreduce
 
hi, tried this one :

server1:~# lvreduce -L1G /dev/fileserver/media
WARNING: Reducing active logical volume to 1.00 GB
THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce media? [y/n]: <-- y
Reducing logical volume media to 1.00 GB
Logical volume media successfully resized

that's the exact syntax i did (from the site: http://www.howtoforge.com/linux_lvm_p2)


it was resized. . .but i saw something about corrupted blocks? etc.. suggested to do fsck but it was aborted... thought it was ok.. after a reboot, i encountered an error. .. cannot find the (lv i removed)


was dropped into a command prompt.. but cannot troubleshoot the problem. ..

any ideas on how to handle reducing lv errors?

eco 03-30-2009 02:15 AM

Hi,

Like LVM says:
Quote:

THIS MAY DESTROY YOUR DATA (filesystem etc.)
You need to give us a bit more info if we are to help you. What error are you getting, what version of LVM, ...?

I admit I never tried reducing an lv for the reasons above. If I have some free space I'd rather rsync the data to a smaller lv and change the fstab.

ic_torres 03-30-2009 04:17 AM

i got now the logic. .. to reduce safely . . i MUST enter the desired space to be reduced first using : resize2fs THEN goes lvreduce.. :D



thanks for the reply "eco" :)


All times are GMT -5. The time now is 07:46 AM.