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 1Ll5iI-000719-PC for garchives@archives.gentoo.org; Sat, 21 Mar 2009 18:14:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EDA69E0402; Sat, 21 Mar 2009 18:14:28 +0000 (UTC) Received: from mail-ew0-f163.google.com (mail-ew0-f163.google.com [209.85.219.163]) by pigeon.gentoo.org (Postfix) with ESMTP id 99C56E0402 for ; Sat, 21 Mar 2009 18:14:28 +0000 (UTC) Received: by ewy7 with SMTP id 7so897831ewy.34 for ; Sat, 21 Mar 2009 11:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=5I5qkcurDytXmgeGacQK6GMguoPvJmokaaJl2e8vjEU=; b=aRnqNJ+aHYM1FVj01YvWSzIn4/9ZA5QvZjaHcc1FSqLPTgiYphRw3J6rTqY9p10Fud WqDXBkcGcZHbC0kZyfwbFQ9Ex7zDDtw+yp5NEu3vC1LLoKgqrYt+WWe3KXQa66u3OZ3p s3A5xvGuAeNYE1PVny8ZxKcLvkCts5hgfduRk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=JkuaQWDomdSTf8/BSM8b4SwtUZ4U6l8wL4AqHjZO3Oud9NKIBA5jxaaLoEhB+z1KfO 3YWOX31Qkxtl73e+sj/TZ0FNO1GOzsthQKMpTqexy1j2FgT+zm4xN+OcyW7yKkwkUMS4 TPjHAW2yhbb8rft9CbQ/30cK0nHRCPxPs6MJU= Received: by 10.210.22.16 with SMTP id 16mr416474ebv.62.1237659268080; Sat, 21 Mar 2009 11:14:28 -0700 (PDT) Received: from nazgul.localnet (196-210-153-139-rrdg-esr-2.dynamic.isadsl.co.za [196.210.153.139]) by mx.google.com with ESMTPS id 7sm3674926eyg.7.2009.03.21.11.14.26 (version=SSLv3 cipher=RC4-MD5); Sat, 21 Mar 2009 11:14:27 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] extending /usr partition... Date: Sat, 21 Mar 2009 20:12:56 +0200 User-Agent: KMail/1.11.1 (Linux/2.6.28-gentoo-r3; KDE/4.2.1; x86_64; ; ) References: <49C52C76.4030609@gmail.com> In-Reply-To: <49C52C76.4030609@gmail.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 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903212012.57099.alan.mckinnon@gmail.com> X-Archives-Salt: e5d6d1c2-8b21-40c3-9971-ea9888c92f1b X-Archives-Hash: 9a2fb95d47560bb2c1c95466b47500cd On Saturday 21 March 2009 20:05:42 Jarry wrote: > Hi, > > I found out my /usr is getting full pretty fast, so I want > to increase it before it happens a real problem. I have: > > /dev/md4 (sda5+sdb5), ~5GB size, used for /var, nearly empty > /dev/md5 (sda6+sdb6), ~5GB size, used for /usr, nearly full (90%) > And I have /backup on separate partition (hda1), big enough > > What I think of is this procedure: First I copy /var and /usr: > cp -a /var /backup > cp -a /usr /backup Yes > Then I intend to reboot with install-cd, repartition sda/sdb > (make sda5/sdb5 smaller and sda6/sdb6 bigger), create new > /dev/md4 and /dev/md5, mount them, and copy the content back. Yes > cp -a /mnt/gentoo/backup/var /mnt/gentoo/var > cp -a /mnt/gentoo/backup/usr /mnt/gentoo/usr Um, no. This gives you new usr and var directories like so: /usr/usr/ /var/var You want: cp -a /mnt/gentoo/backup/var /mnt/gentoo/ cp -a /mnt/gentoo/backup/usr /mnt/gentoo/ > Is it a correct procedure? All partitions are ext3 type, no lvm2, > moreover on /dev/md so I can not extend/shrink them while using... It's correct, and it also highlights just what a PITA it is to manipulate traditional disk partitions. With lvm, this becomes a breeze. With ZFS (we might see it one day) this becomes invisible. -- alan dot mckinnon at gmail dot com