1 |
On Sunday, May 04, 2014 03:07:28 PM Stefan G. Weichinger wrote: |
2 |
> Am 04.05.2014 12:49, schrieb J. Roeleveld: |
3 |
> > I wouldn't use the stripe/mirror support in LVM as I don't think it is |
4 |
> > used |
5 |
> > often and I feel that functionality doesn't belong in LVM. |
6 |
> > If you want to move it all into a single layer, I would suggest ZFS |
7 |
> > instead. |
8 |
> Oh, yes, I like ZFS and its features and used it in some cases already. |
9 |
> But I didn't yet take the step to set up ZFS-root on my work machines. |
10 |
|
11 |
I haven't yet, but it's on the list of items to look into at some point. |
12 |
I'd like to know if, with ZFS, it is possible to create block-devices like LVs |
13 |
which I can then attach to VMs. Or if I have to use files instead. |
14 |
|
15 |
> >> And then you get into issues with block sizes and stuff, where I always |
16 |
> >> wonder why *I* have to type all these parameters ... why doesn't modern |
17 |
> >> software just come with this knowledge inside? |
18 |
> >> |
19 |
> >> .... you know |
20 |
> >> |
21 |
> >> *sigh* ;-) |
22 |
> > |
23 |
> > I agree, and I feel that has actually improved over time with modern tools |
24 |
> > defaulting to 4k sectors. |
25 |
> |
26 |
> Yes, but it always feels like "I missed something" when you look at the |
27 |
> various layers: partitioning at correct sectors, RAIDs with their |
28 |
> parameters, creating PVs with PEs aligned ... and then the filesystems. |
29 |
> I never get the feeling that I really did it right from the base to the |
30 |
> top. |
31 |
|
32 |
True, but if all the tools are working correctly, it all should cascade down |
33 |
when getting the "sector" sizes from the previous layer. |
34 |
Not sure if this actually works. |
35 |
|
36 |
I think it does as I get the following on my server: |
37 |
*** |
38 |
# gdisk -l /dev/sda |
39 |
GPT fdisk (gdisk) version 0.8.8 |
40 |
|
41 |
Partition table scan: |
42 |
MBR: protective |
43 |
BSD: not present |
44 |
APM: not present |
45 |
GPT: present |
46 |
|
47 |
Found valid GPT with protective MBR; using GPT. |
48 |
Disk /dev/sda: 11718749184 sectors, 5.5 TiB |
49 |
Logical sector size: 512 bytes |
50 |
Disk identifier (GUID): 936FDBE4-A736-41CF-B9A5-51069940D3DB |
51 |
Partition table holds up to 128 entries |
52 |
First usable sector is 34, last usable sector is 11718749150 |
53 |
Partitions will be aligned on 2048-sector boundaries |
54 |
Total free space is 2014 sectors (1007.0 KiB) |
55 |
|
56 |
Number Start (sector) End (sector) Size Code Name |
57 |
1 2048 411647 200.0 MiB EF00 EFI System |
58 |
2 411648 2101247 825.0 MiB 8300 Linux filesystem |
59 |
3 2101248 11718749150 5.5 TiB 8E00 Linux LVM |
60 |
|
61 |
*** |
62 |
|
63 |
That's a hardware raid device with 4 * 3TB disks with raid-6. |
64 |
I don't like the fact that a 2nd disk-failure can kill a raid-10 when both |
65 |
disks are in the same mirror-set. |
66 |
|
67 |
gdisk automatically aligns on 2048 sector boundaries, that is more then enough |
68 |
for the 4k-sectors and the block/stripe sizes employed by the raid-controller. |
69 |
|
70 |
> > Then it should work, provided you have all the required drivers inside |
71 |
> > your |
72 |
> > kernel and not as modules. |
73 |
> > I also believe an initramfs is needed when using LABELs for the root-fs. |
74 |
> |
75 |
> Interesting. I don't really care if I have an initramfs or not, as long |
76 |
> as things work ... The feature with LABELs is nice for preparing |
77 |
> installations in VMs and then move it to physical hardware (eg. |
78 |
> /dev/vda1 then becomes /dev/sda1 or /dev/md0 and booting fails). |
79 |
|
80 |
UUIDs, I believe, do work natively. And those are stored inside the partition |
81 |
itself. Which means they should also work. But are not as easy to locate. (eg. |
82 |
you don't specify them yourself) |
83 |
|
84 |
> > At the moment, I don't see, from a simple user perspective, any real |
85 |
> > difference between booting using UEFI and BIOS/MBR. |
86 |
> |
87 |
> UEFI is one thing, GPT partitioning another. Being able to have more |
88 |
> than the 4 primary partitions of MBR looks good to me ... |
89 |
> |
90 |
> I will see where my motivation leads to ;-) |
91 |
|
92 |
See the partitioning on my server above. |
93 |
It boots using BIOS as I haven't been able to boot Xen using UEFI yet. |
94 |
|
95 |
Support should be there now, but not been able to test that yet. |
96 |
GPT is supported by grub-1 (and grub2) and with the MBR-support inside GPT, |
97 |
booting works from BIOS/MBR. |
98 |
|
99 |
-- |
100 |
Joost |