Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | Letzte ÜberarbeitungBeide Seiten der Revision | ||
content:serverbasics [2024/04/20 10:26] – [Raided EFI-BOOT] Daniel | content:serverbasics [2024/04/20 11:33] – [Raided EFI-BOOT] Daniel | ||
---|---|---|---|
Zeile 16: | Zeile 16: | ||
Always use LVM, as this has many benefits. On OpenSuSE btrfs is the best Filesystem if you disable Quotas on datapartitions. | Always use LVM, as this has many benefits. On OpenSuSE btrfs is the best Filesystem if you disable Quotas on datapartitions. | ||
+ | |||
+ | ==== Example-Setup ==== | ||
+ | |||
+ | My small Homeoffice-Server described here, will have 5 Disks: | ||
+ | |||
+ | * 2x SSD with 2 TB each | ||
+ | * 3x HDD with 4 TB each | ||
+ | |||
+ | My Setup will look like this: | ||
+ | |||
+ | The SSDs will bothe have the same Layout: | ||
+ | |||
+ | * 1x 1GB Raid1 FAT32 EFIBOOT | ||
+ | * 1x 100%FREE LVM2 PV in Volumegroup vgssd | ||
+ | * 100GB Raid1 lvroot btrfs, | ||
+ | * 50GB Raid1 lvmariadb xfs for docker service mariadb | ||
+ | * Space left blank for other high performance- services or growth | ||
+ | |||
+ | The HDDs will have: | ||
+ | |||
+ | * 1x 100%Free LVM2 PV Volumegroup vgdata | ||
+ | * 1x 100GB Raid5 xfs, home and docker-service | ||
+ | * 1x 4,4TB Raid5 lvbackup btrfs, | ||
==== Raided EFI-BOOT ==== | ==== Raided EFI-BOOT ==== | ||
Zeile 23: | Zeile 46: | ||
Unfortunatelly, | Unfortunatelly, | ||
- | Fortunatelly the designers of OSS software- raid were smarter: They found a way to work around that: They made a special Version of MD Metadata | + | Fortunatelly the designers of OSS software- raid were smarter: They found a way to work around that: They made a special Version of MD Metadata |
+ | |||
+ | But still - LVM will not work in this case. MD Partitions and Raid1 need to be outside of the LVM-Partition. | ||
- | So I would suggest to use two disks both partioned with GPT and same sized efi-partitions (make them about 500 Megabytes in Size to store Bios or UCODE updates for Firmware Updater) and before creating the FAT32 filesystem do software raid on it. E.g.: | + | So I would suggest to use two disks both partioned with GPT and same sized efi-partitions (as said, at least 500 Megabytes in Size to store Bios or UCODE updates for Firmware Updater) and before creating the FAT32 filesystem do software raid on it. E.g.: |
< | < | ||
Zeile 39: | Zeile 64: | ||
==== LVM ==== | ==== LVM ==== | ||
- | LVM is a powerful partition-management-layer and should always be used, when there is some none low-end hardware present. If you can use the **KDE Partitioning- Tool** (which means having Plasma=KDE Desktop compatible support), the support is very inuitive and opens a lot of flexibility whne handling partitions, like adding more disk space or moving partitions, but also on console this offers good functionality. OpenSuSE offer to create LVM- Styled system setup in installation optionally (not by default). If you can: use it. | + | LVM is a powerful partition-management-layer and should always be used, when there is some none low-end hardware present. If you can use the **KDE Partitioning- Tool** |
=== Mirror- Raided LVM- Volumes (RAID1) === | === Mirror- Raided LVM- Volumes (RAID1) === | ||
Zeile 78: | Zeile 104: | ||
where i equals the number of devices with Data (not including parity- storage) | where i equals the number of devices with Data (not including parity- storage) | ||
- | |||
=== Useful Commands === | === Useful Commands === | ||
Zeile 133: | Zeile 158: | ||
</ | </ | ||
- | |||
== Resizing logical Volumes with mounted Filesystem == | == Resizing logical Volumes with mounted Filesystem == | ||
Zeile 156: | Zeile 180: | ||
While autodefrag should not be necessary on ssd- harddiscs. | While autodefrag should not be necessary on ssd- harddiscs. | ||
- | For **Databases** or files that need speed and __**are well backed up otherwise**__ | + | For **Databases** |
=== Sources: === | === Sources: === | ||