Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] LVM for data drives but not the OS Dale <rdalek1967@×××××.com>