Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Device-mapper Development (http://www.linux-archive.org/device-mapper-development/)
-   -   How to resize a snapshot to hold a larger filesystem (http://www.linux-archive.org/device-mapper-development/495905-how-resize-snapshot-hold-larger-filesystem.html)

Greg Stark 03-01-2011 07:28 PM

How to resize a snapshot to hold a larger filesystem
 
I wanted to resize a filesystem in both the underlying device and a
snapshot recently. Doing this for the underlying device was a bit of a
hassle but basically straightforward. I figured doing it for the
snapshot should be trivial since it's COW anyways and I should be able
to just change the logical size of the device and have the newly added
space come from the snapshot COW space.

It doesn't seem to work that way and I'm surprised. lvmextend just
adds the space to the COW space, which isn't what I want at all. And
it looks like dmsetup can load a table but only into an unactived
slot, not replace an existing table for an existing volume.

What I would expect to do is replace the table for the snapshot volume
with a table using the same snapshot for the existing space and a new
snapshot with /dev/zero as the underlying volume for the new space. I
could create a whole new volume but I don't see any unique identifier
in the snapshot table entry to specify what point in time the snapshot
is for so I don't see how to specify the snapshot in the replacement
table so it will match the existing snapshot.

--
greg

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel


All times are GMT. The time now is 09:26 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.