Separate from the OS on the SD card, my RPI4 file server uses both MD raid and LVM. There are two 4TB powered, USB3 external disks, sda and sdb. They are the mirrors in a RAID1 array. # parted -sm /dev/sda p BYT; /dev/sda:4001GB:scsi:512:4096:gpt:WD Elements 25A3:; 1:41.0kB:4001GB:4001GB::RAID2:raid; # cat /proc/mdstat Personalities : [raid1] md0 : active raid1 sda1[3] sdb1[2] 3906853808 blocks super 1.2 [2/2] [UU] bitmap: 3/30 pages [12KB], 65536KB chunk Then LVM is used to manage the space in /dev/md0. About 1TB of md0 is not allocated yet. The nice thing about LVM is that I can easily use that to extend any existing file system or make additional ones. My file systems are ext4. # lvs LV VG Attr LSize LV_Home VG_data -wi-ao---- <1.82t LV_WebCam VG_data -wi-ao---- 931.84g # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 3.7T 0 disk └─sda1 8:1 0 3.7T 0 part └─md0 9:0 0 3.7T 0 raid1 ├─VG_data-LV_WebCam 253:0 0 931.9G 0 lvm /WebCam └─VG_data-LV_Home 253:1 0 1.8T 0 lvm /home sdb 8:16 0 3.7T 0 disk └─sdb1 8:17 0 3.7T 0 part └─md0 9:0 0 3.7T 0 raid1 ├─VG_data-LV_WebCam 253:0 0 931.9G 0 lvm /WebCam └─VG_data-LV_Home 253:1 0 1.8T 0 lvm /home mmcblk0 179:0 0 29.7G 0 disk ├─mmcblk0p1 179:1 0 256M 0 part /boot └─mmcblk0p2 179:2 0 29.5G 0 part / No automatic setup here. -RE On 1/20/21 4:36 PM, Chuck Anderson via WLUG wrote:
How would YOU setup a simple mirror in whatever Linux you use? Why do you prefer your selection? MD RAID is set up by the installers I've used (Fedora, Red Hat, Centos). LVM is used on top of MD RAID to provide flexible
On Wed, Jan 20, 2021 at 03:34:25PM -0500, Michael Voorhis via WLUG wrote: partitioning. I've never used LVM RAID. _______________________________________________ WLUG mailing list -- wlug@lists.wlug.org To unsubscribe send an email to wlug-leave@lists.wlug.org Create Account: https://wlug.mailman3.com/accounts/signup/ Change Settings: https://wlug.mailman3.com/postorius/lists/wlug.lists.wlug.org/ Web Forum/Archive: https://wlug.mailman3.com/hyperkitty/list/wlug@lists.wlug.org/message/X2WG4W...