Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] LVM for data drives but not the OS
Date: Fri, 08 Apr 2011 21:03:08
Message-Id: 4D9F779B.2040801@gmail.com
In Reply to: Re: [gentoo-user] LVM for data drives but not the OS by Dale
1 Dale wrote:
2 >
3 >
4 > root@fireball / # pvcreate /dev/sdb
5 > Physical volume "/dev/sdb" successfully created
6 > root@fireball / #
7 >
8 > Step one done. It didn't puke on my keyboard. lol
9 >
10 > Now to see what else I can get into. Not going to put anything
11 > important on it tho. Just a temporary thing right now. Just getting
12 > my feet wet.
13 >
14 > Dale
15 >
16 > :-) :-)
17 >
18
19 More progress.
20
21 root@fireball / # ls -al /dev/mapper/
22 total 0
23 drwxr-xr-x 2 root root 80 Apr 8 15:56 .
24 drwxr-xr-x 16 root root 4400 Apr 8 15:56 ..
25 crw-rw---- 1 root root 10, 236 Apr 8 04:39 control
26 lrwxrwxrwx 1 root root 7 Apr 8 15:56 sdb--vg-test -> ../dm-0
27 root@fireball / # pvdisplay
28 --- Physical volume ---
29 PV Name /dev/sdb
30 VG Name sdb-vg
31 PV Size 232.83 GiB / not usable 2.58 MiB
32 Allocatable yes
33 PE Size 4.00 MiB
34 Total PE 59604
35 Free PE 46804
36 Allocated PE 12800
37 PV UUID kopUKm-lXy1-7tiq-FuQ2-Xhs5-tGqN-Ls4R1v
38
39 root@fireball / # vgdisplay
40 --- Volume group ---
41 VG Name sdb-vg
42 System ID
43 Format lvm2
44 Metadata Areas 1
45 Metadata Sequence No 2
46 VG Access read/write
47 VG Status resizable
48 MAX LV 0
49 Cur LV 1
50 Open LV 0
51 Max PV 0
52 Cur PV 1
53 Act PV 1
54 VG Size 232.83 GiB
55 PE Size 4.00 MiB
56 Total PE 59604
57 Alloc PE / Size 12800 / 50.00 GiB
58 Free PE / Size 46804 / 182.83 GiB
59 VG UUID 5OSiWZ-rWza-uKJ2-rVMO-f38G-NBHx-dmAE1K
60
61 root@fireball / # lvdisplay
62 --- Logical volume ---
63 LV Name /dev/sdb-vg/test
64 VG Name sdb-vg
65 LV UUID mixhOb-La6D-BwG4-Uz3l-P0ci-oGg5-YI3mN8
66 LV Write Access read/write
67 LV Status available
68 # open 0
69 LV Size 50.00 GiB
70 Current LE 12800
71 Segments 1
72 Allocation inherit
73 Read ahead sectors auto
74 - currently set to 256
75 Block device 254:0
76
77 root@fireball / #
78
79 I'm still trying to figure out how the naming part works tho. Now to
80 mount it and put something on it. See if it works.
81
82 Let me know if something doesn't look right. Otherwise, I'll keep
83 playing around with it.
84
85 Dale
86
87 :-) :-)

Replies

Subject Author
Re: [gentoo-user] LVM for data drives but not the OS "J. Roeleveld" <joost@××××××××.org>
Re: [gentoo-user] LVM for data drives but not the OS Alan McKinnon <alan.mckinnon@×××××.com>