How to resize a snapshot to hold a larger filesystem

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

 



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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel


[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux