LinuxQuestions.org
Help answer threads with 0 replies.
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 04-28-2014, 09:07 AM   #1
yosi
LQ Newbie
 
Registered: Apr 2014
Posts: 1

Rep: Reputation: Disabled
LVM lvreduce and vgreduce


Hi,

I tried to add more space to my LV so i will have 18TB of space.

All was good until i run resize2fs, and this is what i got.
resize2fs 1.42 (29-Nov-2011)
resize2fs: New size too large to be expressed in 32 bits

As i understand, ext3 (this is my filesystem) cant be more then 16TB.

My question is, can i run lvreduce and vgreduce without loosing any data?

The commands that i run:

vgextend vgpool /dev/sdc1
lvextend -L18.19T /dev/vgpool/lvstuff


Thanks For Your Help
Yosi
 
Old 04-28-2014, 10:50 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,345

Rep: Reputation: Disabled
lvreduce reduces the size of the LVM device by chopping off space at the end. As long as that part of the device is not in use, you should be fine. However, there's always a (small) risk that you'll end up removing just a little too much, so my recommendation would be to shrink the ext3 file system slightly first, run lvreduce, and then expand the ext3 filesystem to fill the entire device again.

Once there's sufficient free space in the Volume Group, you may be able to remove the recently added physical device with vgreduce. You can run pvdisplay to verify that the Physical Volume is not in use.
 
  


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
Problem with LVM mirror and failed PV, can't recover -- Debian Squeeze lvm 2.02.66-5 Linux Ninja Linux - Server 2 06-02-2017 04:50 PM
LVM lvreduce and lvextend azurtem Linux - Server 11 10-17-2013 01:13 PM
lvreduce/lvextend vs lvresize drManhattan Linux - Newbie 2 06-04-2012 01:03 AM
vgreduce LMV klompie Linux - General 5 06-17-2011 09:07 AM
messed up an fs with lvreduce ic_torres Linux - Newbie 2 03-30-2009 04:17 AM

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

All times are GMT -5. The time now is 03:02 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