From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OATel-0006gi-0V for garchives@archives.gentoo.org; Fri, 07 May 2010 19:56:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 196F7E07D8; Fri, 7 May 2010 19:55:43 +0000 (UTC) Received: from wlym.com (wlym.com [66.135.63.43]) by pigeon.gentoo.org (Postfix) with ESMTP id E818CE07D8 for ; Fri, 7 May 2010 19:55:42 +0000 (UTC) Received: from ccs.covici.com (pool-96-247-205-104.clppva.fios.verizon.net [96.247.205.104]) (authenticated bits=128) by wlym.com (8.14.3/8.14.3/Debian-5) with ESMTP id o47Jr2Mx017974 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 7 May 2010 14:53:04 -0500 Received: from ccs.covici.com (localhost [127.0.0.1]) by ccs.covici.com (8.14.4/8.14.2) with ESMTP id o47Jtbm9021599 for ; Fri, 7 May 2010 15:55:40 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: snackup In-reply-to: <201005072135.14449.wonko@wonkology.org> References: <1272418910.30160.4057.camel@localhost> <201005072023.54772.wonko@wonkology.org> <21088.1273259302@ccs.covici.com> <201005072135.14449.wonko@wonkology.org> Comments: In-reply-to Alex Schuster message dated "Fri, 07 May 2010 21:35:13 +0200." X-Mailer: MH-E 8.2; nmh 1.3; GNU Emacs 23.1.1 Date: Fri, 07 May 2010 15:55:37 -0400 Message-ID: <21598.1273262137@ccs.covici.com> From: covici@ccs.covici.com Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Archives-Salt: f45c4d0b-7e9a-4082-83af-5d45e960532f X-Archives-Hash: e88adefa1eb2490151e95ccccc2c4cdb Alex Schuster wrote: > covici@ccs.covici.com writes: > > > I have a question -- where would lvm put a snapshot and how could I > > pass some list of excludes to rdiff-backup. I have an lvm which is > > taking all the PEs and a snapshot would take up lots of disk space -- > > or would it. Would I need some free pes to put the snapshot? > > An LVM snapshot has to be in the same volume group as the LVM. If all your > physical extends are full, this will not work I'm afraid. > But you can reduce the size of one LVM with lvreduce. Of course you have > to resize the file system inside first. This is a little more complicated > than extending the size, because you have to specify the size when > reducing the file system and the LVM. And the file system has to be > unmounted :( > > Let's say you want to reduce your data partition of 15G to 10G: > > umount /dev/myvg/data > fsck -f /dev/myvg/data > resize2fs /dev/myvg/data 9G > lvresize -L 10G /dev/myvg/data > resize2fs /dev/myvg/data > mount /dev/myvg/data > > The 2nd resize2fs maximizes the size of the fs inside the LVM. I do not > know (does anyone else?) if you could skip this and reduce it to 10G in > the first resize2fs step. Just to be on the safe side I reduce it a little > more, and let it adapt do the reduced LVM size afterwards. > > The snapshot itself takes nearly no space at all - it only keeps the > changes that occur in the LVM while the snapshot is in place. So it grows > when you modify the LVM you snapshotted. When you do not much > modifications, 15-20% is enough according to the lvcreate man page. And I > think I had it much lower without problems. I would expect that it can be > really small when you do not change the original LVm much. snackup uses 2G > as default, change this with option -s. Of course, when you do large > modifications, like creating larger files, this may be too small. > > Excludes can be given with the -x option (multiple times). And have a look > at the config template that snackup -T gives you. Near the bottom, the > variable oXclude is defined. It is an array, just change it to your needs. > it already excludes things like ccache, kdecache-* directories, > */tmp/portage, and the dreaded nepomuk directory fo KDE4 because this > sometimes gets really REALLY large here. > > snackup -x dip -x dap would exclude the stuff already pre-defined and dip > and dap. If you want to exclude dip and dap only, call snackup -x "" -x > dip -x dap. But I find it easier to adapt the oXclude array. Thanks, very interesting and I will have a look. -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com