Skip to content

Commit

Permalink
cleanup of example LVM on software RAID
Browse files Browse the repository at this point in the history
It's tested and works with FAI 6.2.1. A bug in FAI 6.2 prevented it from working
  • Loading branch information
Mrfai committed Feb 17, 2024
1 parent 89e26ff commit 7c0fb65
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions man/setup-storage.8
Original file line number Diff line number Diff line change
Expand Up @@ -286,23 +286,21 @@ LVM on software RAID
.sp
.nf
.ta 12n +6n +8n +8n +8n
disk_config disk1
disk_config disk1 disklabel:msdos fstabkey:uuid
primary - 350 - -
primary swap 2G swap sw,pri=1
primary - 0- - -

disk_config disk2 sameas:disk1

disk_config raid fstabkey:uuid
raid1 /boot disk1.1,disk2.1 ext4 rw,noatime,errors=remount-ro
raid1 - disk1.3,disk2.3 - -
raid1 /boot disk1.1,disk2.1 ext4 rw,noatime,errors=remount-ro
raid1 - disk1.3,disk2.3 - -

disk_config lvm fstabkey:uuid
vg vg_system md1
vg_system-root / 8G ext4 rw,noatime
vg_system-var /var 20G ext4 rw,noatime
vg_system-home /home 10G ext4 rw,noatime,nosuid,nodev
vg_system-tmp /tmp 30G ext4 rw,noatime,nosuid,nodev
vg vg_system md1
vg_system-root / 4G-50G ext4 rw,noatime
vg_system-home /home 1G- ext4 rw,noatime,nosuid,nodev
.sp
.fi
.PP
Expand All @@ -312,11 +310,11 @@ Configure the first and second disk identical with three partitions each.
The first partitions of each device are bundled into a RAID 1 (/dev/md0), which
will be mounted at /boot.
.IP \(bu
The third partitions of each device are combined as another RAID 1, but not
The third partition of each device are combined as another RAID 1, but not
mounted. Instead, the resulting device /dev/md1 is used to host the LVM volume
group vg_system.

Do not forget to install the packages mdadm and lvm2 into a system
ATTENTION! Do not forget to install the packages mdadm and lvm2 into a system
using this partition scheme. Also set rd.auto when using dracut as
initrd generator.
.TP
Expand Down

0 comments on commit 7c0fb65

Please sign in to comment.