LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 07-25-2008, 06:11 PM   #1
jimmyjiang
Member
 
Registered: Jun 2006
Posts: 132

Rep: Reputation: 15
how to fixe-my logical volume partition-size-error ?


hi,
I have a centOS 5 server and recently I tried to shrink the /usr partition online:
[root@us-vm1 ~]# lvreduce -L 1G /dev/vg00/lv_usr
WARNING: Reducing active and open logical volume to 1.00 GB
THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce lv_usr? [y/n]: y
Reducing logical volume lv_usr to 1.00 GB
Logical volume lv_usr successfully resized
[root@us-vm1 ~]# df -h /usr
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg00-lv_usr
5.9G 2.1G 3.5G 37% /usr
[root@us-vm1 ~]# resize2fs /dev/vg00/lv_usr
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/vg00/lv_usr is mounted on /usr; on-line resizing required
On-line shrinking from 1572864 to 262144 not supported.

after reboot I get error at boot post:
The filesystem size (according to the superblock)is 1572864 blocks
The physical size of the devoce is 262144 blocks
Either the superblock or the partition table is likely to be corrupt!

I boot to single user mode and rescue mode, and use e2fsck tried to fix it, no luck.
anybody has a solution, thanks in advance!
jimmy
 
Old 07-26-2008, 04:33 AM   #2
storkus
Member
 
Registered: Jun 2008
Posts: 310

Rep: Reputation: 45
Sounds like it's totally corrupted. It DID warn you and you did it anyway, and from how desperate you are you didn't back up, so this is your fault. Sorry dude.
 
  


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
Resizing Logical Volume Partition BobNutfield Fedora 4 02-03-2008 06:56 PM
LVM: The Impact of Reducing a Logical Volume Size? muff Linux - General 0 07-27-2007 03:18 AM
Root partition on logical volume and kernel without module support CedrX Linux - Server 1 03-02-2007 12:26 PM
max logical volume size for dell 2850 server jcai Linux - General 1 06-09-2006 01:22 AM
Can create logical volume after ext3 partition setup finished? lewkh Linux - Newbie 0 11-17-2004 02:00 AM


All times are GMT -5. The time now is 09:28 AM.

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