Skip to contentSkip to conversation

Snapshots

linux-lvm Jon Hardcastle 3 participants 3 messages Sep 17, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

Do I need some free extents to create a READ ONLY snapshot? I dont have free extents but require a read-only snapshot before doing an upgrade.

Cheers.

-----------------------
N: Jon Hardcastle
E: [email protected]
'Do not worry about tomorrow, for tomorrow will bring worries of its own.'
-----------------------

#1 lore raw
Quoted 5 lines · Jon Hardcastle

Hi,

Do I need some free extents to create a READ ONLY snapshot? I dont have free extents but require a read-only snapshot before doing an upgrade.

Yes, even though you intend to only read from the snapshot the upgrade will cause data to be copied out from the origin to the snapshot. So you definitely need some free extents.

Mike

#2 lore raw
In reply to Jon Hardcastle

Dear John,

Quoted 3 lines · Jon Hardcastle

Hi,

Do I need some free extents to create a READ ONLY snapshot? I dont have free extents but require a read-only snapshot before doing an upgrade.

Extents are written to the snapshot when changes take place on the volume that the snapshot is based on. If you have no free extents, trying to create a snapshot strikes me as pointless: you may as well mount the origin volume read-only and back up its contents directly (or unmount it and back it up at the level of the volume). Or do you have some special circumstances?

If you make the snapshot read-only, as soon as changes occur on the origin volume the snapshot will become useless: some of the data that are required to make the snapshot usable (i.e. unchanged copies of altered blocks on the origin volume) will no longer exist.

Regards,
Peter.

Signature · 6 lines
Peter Keller                                     Tel.: +44 (0)1223 353033
Global Phasing Ltd.,                             Fax.: +44 (0)1223 366889
Sheraton House,
Castle Park,
Cambridge CB3 0AX
United Kingdom