FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

LinkBack Thread Tools
Old 03-01-2011, 05:23 PM
Greg Stark
Default How to change the size of a snapshot device?

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 though.


dm-devel mailing list

Thread Tools

All times are GMT. The time now is 11:07 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org