LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 03-30-2009, 02:01 AM   #1
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Rep: Reputation: 34
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?

Last edited by ic_torres; 03-30-2009 at 02:04 AM.
 
Old 03-30-2009, 02:15 AM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
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.
 
Old 03-30-2009, 04:17 AM   #3
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Original Poster
Rep: Reputation: 34
i got now the logic. .. to reduce safely . . i MUST enter the desired space to be reduced first using : resize2fs THEN goes lvreduce..



thanks for the reply "eco"
 
  


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
messed up thekeymaker264 Linux - Hardware 4 09-04-2006 08:46 AM
I Messed Up! TerabyteUK Linux - Newbie 16 01-25-2006 05:48 PM
messed up loser112 Linux - Software 6 01-22-2006 09:37 AM
Messed Up Already !!! tamtam Linux - Newbie 7 05-07-2004 04:29 AM
really messed up X JunLitsu Linux - Software 0 05-06-2003 01:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration