[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shrink lvm to get spare space



In <[🔎] 20090426181517.GA9437@m364d1.ece.northwestern.edu>, Zhengquan Zhang 
wrote:
>on on of my systems I have
>Filesystem            Size  Used Avail Use% Mounted on
>/dev/mapper/debian-root
>                      224G   12G  200G   6% /
>
>Now I would like to shrink / by 30G so that I have 30G for another OS. I
>wonder if this kind of shrinking is possible. I am using ext3.

1. Shrink the filesystem.  (For ext3, must be unmounted, so you'll have to 
this from a rescue OS.)
2. Shrink the logical volume.  (I *think* this requires it to be unmounted, 
so again, a rescue OS is needed.)
3. Shrink the physical volume.  (I'm not even sure LVM supports this.  If 
this is your only physical volume, and you are using the extents toward the 
end, I don't think you'll be able to move the data.)
4. Shrink the partition.  (I'm comfortable with fdisk, but gparted is the 
recommendation I've heard the most.)

Long story made short: Don't give LVM space you will ever want back.
-- 
Boyd Stephen Smith Jr.           	 ,= ,-_-. =.
bss@iguanasuicide.net            	((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy 	 `-'(. .)`-'
http://iguanasuicide.net/        	     \_/

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: