Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: suse, opensuse, debian, others for testing
Posts: 307
Rep:
lvm2 + snapshots + suse 9.3
hello there !
I'm trying to create a snapshot from a logical volume for backup purposes.
lvm itself works fine.
when creating a snapshot with 'lvcreate' it quite often fails depending on the size
of the snapshot. in general everything below 400MB works quite often, above 400MB mostly fails with something like "vg00/lvol0 already in use".
after the failed snapshot creation, an ordinary logical volume with the size of the wanted snapshot shows up with 'lvs'.
on my machine at home with suse 9.2 I usually can create snapshots of arbitrary size.
there are some issues as well, but it seems to be less bug-ridden.
I've learned that this problem has already made it to the redhat forum that deals with the developement of lvm2 - couldn't find any fix there though ;-(
Distribution: suse, opensuse, debian, others for testing
Posts: 307
Original Poster
Rep:
some more information:
in case the snapshot creation succeeds the output is as follows:
lvcreate --verbose --size 550m --snapshot /dev/vg00/data
Setting chunksize to 16 sectors.
Finding volume group "vg00"
Rounding up size to full physical extent 552.00 MB
Creating logical volume lvol0
Archiving volume group "vg00" metadata.
Creating volume group backup "/etc/lvm/backup/vg00"
Found volume group "vg00"
Loading vg00-lvol0
Zeroing start of logical volume "lvol0"
Found volume group "vg00"
Removing vg00-lvol0
Found volume group "vg00"
Found volume group "vg00"
Found volume group "vg00"
Loading vg00-data-real
Loading vg00-lvol0-cow
Loading vg00-lvol0
Loading vg00-data
Creating volume group backup "/etc/lvm/backup/vg00"
Logical volume "lvol0" created
lvs
LV VG Attr LSize Origin Snap% Move Copy%
data vg00 owi-a- 1.00G
lvol0 vg00 swi-a- 552.00M data 0.00
in case the snapshot creation fails the output is as follows:
lvcreate --verbose --size 550m --snapshot /dev/vg00/data
Setting chunksize to 16 sectors.
Finding volume group "vg00"
Rounding up size to full physical extent 552.00 MB
Creating logical volume lvol0
Archiving volume group "vg00" metadata.
Creating volume group backup "/etc/lvm/backup/vg00"
Found volume group "vg00"
Loading vg00-lvol0
Zeroing start of logical volume "lvol0"
Found volume group "vg00"
LV vg00/lvol0 in use: not removing
Couldn't deactivate new snapshot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.