All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] meaning of -L for snapshots ?
@ 2005-12-19 13:33 Olivier Kaloudoff
  2005-12-20  0:49 ` kelsey hudson
  0 siblings, 1 reply; 3+ messages in thread
From: Olivier Kaloudoff @ 2005-12-19 13:33 UTC (permalink / raw)
  To: linux-lvm

Hello,

 	I'm playing with lvm snapshots for the first time,
and wondering the meaning of -L when creating a snapshot. Indeed,
the following example shows a snapshot done with -L10M, on a
volume that's already 156M used for a total of 2G;


[root@shinwey root]# df /vservers/skel/ -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/nr_180/skel      2.0G  156M  1.8G   9% /vservers/skel

[root@shinwey root]# lvcreate  -L10M --snapshot --name snaptest 
/dev/nr_180/skel
lvcreate -- rounding size up to physical extent boundary
lvcreate -- WARNING: the snapshot will be automatically disabled once it 
gets full
lvcreate -- INFO: using default snapshot chunk size of 64 KB for 
"/dev/nr_180/snaptest"
lvcreate -- doing automatic backup of "nr_180"
lvcreate -- logical volume "/dev/nr_180/snaptest" successfully created

[root@shinwey root]# mount /dev/nr_180/snaptest  /mnt/snaptest/
mount: block device /dev/nr_180/snaptest is write-protected, mounting 
read-only

[root@shinwey root]# df -h /mnt/snaptest/
Filesystem            Size  Used Avail Use% Mounted on
/dev/nr_180/snaptest  2.0G  156M  1.8G   9% /mnt/snaptest



 	Who can explain the usage of -L10M for my snapshot ?


Best Regards,


Olivier Kaloudoff

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-12-20 21:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-19 13:33 [linux-lvm] meaning of -L for snapshots ? Olivier Kaloudoff
2005-12-20  0:49 ` kelsey hudson
2005-12-20 21:43   ` Jonathan Brassow

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.