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 1Q8J1E-0000vP-H2 for garchives@archives.gentoo.org; Fri, 08 Apr 2011 21:15:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4F7031C010; Fri, 8 Apr 2011 21:13:41 +0000 (UTC) Received: from smtpq4.gn.mail.iss.as9143.net (smtpq4.gn.mail.iss.as9143.net [212.54.34.167]) by pigeon.gentoo.org (Postfix) with ESMTP id 17B551C010 for ; Fri, 8 Apr 2011 21:13:40 +0000 (UTC) Received: from [212.54.34.134] (helo=smtp3.gn.mail.iss.as9143.net) by smtpq4.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1Q8Izs-0006TO-GD for gentoo-user@lists.gentoo.org; Fri, 08 Apr 2011 23:13:40 +0200 Received: from 5ed02730.cm-7-1a.dynamic.ziggo.nl ([94.208.39.48] helo=data.antarean.org) by smtp3.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1Q8Izr-0004OK-Be for gentoo-user@lists.gentoo.org; Fri, 08 Apr 2011 23:13:39 +0200 Received: from localhost (localhost [127.0.0.1]) by data.antarean.org (Postfix) with ESMTP id 0FB5F3B20 for ; Fri, 8 Apr 2011 23:13:43 +0200 (CEST) X-Virus-Scanned: amavisd-new at antarean.org Received: from data.antarean.org ([127.0.0.1]) by localhost (data.antarean.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8+ll8CsFsRNM for ; Fri, 8 Apr 2011 23:13:42 +0200 (CEST) Received: from www.antarean.org (net.antarean.org [10.10.11.5]) by data.antarean.org (Postfix) with ESMTP id D39011F99 for ; Fri, 8 Apr 2011 23:13:41 +0200 (CEST) Received: from 10.10.11.1 (SquirrelMail authenticated user joost) by www.antarean.org with HTTP; Fri, 8 Apr 2011 23:13:41 +0200 Message-ID: In-Reply-To: <4D9F779B.2040801@gmail.com> References: <4D9D9071.2050504@gmail.com> <201104081846.47629.alan.mckinnon@gmail.com> <4D9F485D.2010300@gmail.com> <201104082038.21497.alan.mckinnon@gmail.com> <4D9F5C5F.7030700@gmail.com> <4D9F779B.2040801@gmail.com> Date: Fri, 8 Apr 2011 23:13:41 +0200 Subject: Re: [gentoo-user] LVM for data drives but not the OS From: "J. Roeleveld" To: gentoo-user@lists.gentoo.org User-Agent: SquirrelMail/1.4.21 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=iso-8859-1 X-Priority: 3 (Normal) Importance: Normal Content-Transfer-Encoding: quoted-printable X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1Q8Izr-0004OK-Be X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: geen spam, SpamAssassin (niet cached, score=-0.389, vereist 5, BAYES_00 -1.90, RDNS_DYNAMIC 0.98, TW_LR 0.08, TW_LV 0.08, TW_PV 0.08, TW_RW 0.08, TW_VG 0.08, TW_WX 0.08, TW_XR 0.08, T_RP_MATCHES_RCVD -0.01) X-ZiggoSMTP-MailScanner-From: joost@antarean.org X-Spam-Status: No X-Archives-Salt: X-Archives-Hash: 7731ab8207adc4b39e8dcb041d22d91d On Fri, April 8, 2011 11:01 pm, Dale wrote: > Dale wrote: >> >> >> root@fireball / # pvcreate /dev/sdb >> Physical volume "/dev/sdb" successfully created >> root@fireball / # >> >> Step one done. It didn't puke on my keyboard. lol >> >> Now to see what else I can get into. Not going to put anything >> important on it tho. Just a temporary thing right now. Just getting >> my feet wet. >> >> Dale >> >> :-) :-) >> > > More progress. > > root@fireball / # ls -al /dev/mapper/ > total 0 > drwxr-xr-x 2 root root 80 Apr 8 15:56 . > drwxr-xr-x 16 root root 4400 Apr 8 15:56 .. > crw-rw---- 1 root root 10, 236 Apr 8 04:39 control > lrwxrwxrwx 1 root root 7 Apr 8 15:56 sdb--vg-test -> ../dm-0 Looks good :) > root@fireball / # pvdisplay > --- Physical volume --- > PV Name /dev/sdb > VG Name sdb-vg > PV Size 232.83 GiB / not usable 2.58 MiB > Allocatable yes > PE Size 4.00 MiB > Total PE 59604 > Free PE 46804 > Allocated PE 12800 > PV UUID kopUKm-lXy1-7tiq-FuQ2-Xhs5-tGqN-Ls4R1v Looks fine > root@fireball / # vgdisplay > --- Volume group --- > VG Name sdb-vg > System ID > Format lvm2 > Metadata Areas 1 > Metadata Sequence No 2 > VG Access read/write > VG Status resizable > MAX LV 0 > Cur LV 1 > Open LV 0 > Max PV 0 > Cur PV 1 > Act PV 1 > VG Size 232.83 GiB > PE Size 4.00 MiB > Total PE 59604 > Alloc PE / Size 12800 / 50.00 GiB > Free PE / Size 46804 / 182.83 GiB > VG UUID 5OSiWZ-rWza-uKJ2-rVMO-f38G-NBHx-dmAE1K Looks ok, 50GB of 232.83 assigned > root@fireball / # lvdisplay > --- Logical volume --- > LV Name /dev/sdb-vg/test > VG Name sdb-vg > LV UUID mixhOb-La6D-BwG4-Uz3l-P0ci-oGg5-YI3mN8 > LV Write Access read/write > LV Status available > # open 0 > LV Size 50.00 GiB > Current LE 12800 > Segments 1 > Allocation inherit > Read ahead sectors auto > - currently set to 256 > Block device 254:0 Here is the 50GB... > root@fireball / # > > I'm still trying to figure out how the naming part works tho. Now to > mount it and put something on it. See if it works. Naming part, there are 2 ways of finding it. 1: /dev// 2: /dev/mapper/- You included a "-" in your VG-name, this is replaced with "--" under /dev/mapper/ > Let me know if something doesn't look right. Otherwise, I'll keep > playing around with it. Looks fine so far, don't forget to put a filesystem on "/dev/sdb-vg/test" to be able to mount it somewhere :) -- Joost