You are not logged in.

#1 2013-11-15 08:31:39

elukas
Member
From: Avignon, France
Registered: 2012-03-14
Posts: 18
Website

[LVM] how do I get contiguous space after a lvresize ?

Hi,

I made a dedicated partition for /var/cache, but the space I allocated is too small.
I have plenty of free psace (for this kind of partition), but not contiguous to this one, and it was created with the option -C y.

How do I actually move data on the PV of others LV to get contiguous space ?

thx.

Last edited by elukas (2013-11-15 08:32:03)

Offline

#2 2013-11-15 15:07:48

frostschutz
Member
Registered: 2013-11-15
Posts: 401

Re: [LVM] how do I get contiguous space after a lvresize ?

You could use `lvs -o +devices` to get an idea what's where and `pvmove` to move data of specific volumes or extents.

But usually, you don't do this. You just let LVM worry about what's allocated where.

Offline

#3 2013-11-23 06:00:19

elukas
Member
From: Avignon, France
Registered: 2012-03-14
Posts: 18
Website

Re: [LVM] how do I get contiguous space after a lvresize ?

Thx for the tips,

but since I have only one PV, I'm not sure pvmove could help me.
finally I've created a new LV rename with contiguous option.

thx.

Offline

Board footer

Powered by FluxBB