Disclaimer: this is my first time using lvm.

Upon RTFM, it appears that LVM snapshots are automatically stored in the same directory as the original logical volume. In my case, that would mean the /dev directory. This isn't very nice, because there's not enough disk space in there for me to store a large snapshot.

So when I run a command like lvcreate --size 1G --snapshot --name snapshot /dev/lvmData/usr, I need an additional 1G of space free in /dev?

Is there any way to specify a different directory in which to store my snapshot?

link|improve this question

feedback

1 Answer

up vote 0 down vote accepted

The files in /dev are not ordinary files - they are devices represented as files. The LVM-snapshot is a block device, and takes up space from LVM.

The 1G you specified with lvcreate is taken from the Free column on the lvmData line after you've run the vgs-command.

link|improve this answer
I see. That - is awesome. – bottles Nov 7 '11 at 6:30
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.