Currently I have a file server running Centos 9 Stream. The operating system is on its own disk and own logical volume group and logical volumes. The are a further 3 disk attached to the motherboard which are used for the storage for the network shares. I don't have spare sata ports
# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 4.0M 0 4.0M 0% /dev
tmpfs 3.7G 0 3.7G 0% /dev/shm
tmpfs 1.5G 38M 1.5G 3% /run
/dev/mapper/cs-root 25G 5.9G 20G 24% /
/dev/mapper/cs-home 10G 104M 9.9G 2% /home
/dev/mapper/cs-var_log 14G 191M 14G 2% /var/log
/dev/sda1 974M 366M 541M 41% /boot
/dev/mapper/vg_storage-lv_database 98G 23G 71G 25% /storage/database
/dev/mapper/vg_storage-lv_data 1.7T 1.6T 39G 98% /storage/data
tmpfs 756M 0 756M 0% /run/user/0
# pvs -o pv_name,pv_size,pv_free -O pv_free
PV PSize PFree
/dev/sdb 931.51g 0
/dev/sdc 931.51g 0
/dev/sdd 931.51g 0
/dev/sda2 <54.60g 4.00m
# lvs -o lv_name,vg_name,lv_size,lv_layout
LV VG LSize Layout
home cs 10.00g linear
root cs 25.00g linear
swap cs 5.59g linear
var_log cs 14.00g linear
lv_data vg_storage 1.72t raid,raid5,raid5_ls
lv_database vg_storage 100.00g raid,raid5,raid5_ls
From the outputs above the logical volumes lv_data and lv_database in the vg_storage group are raid5.
I read the following Red Hat documentation about replacing disks in a RAID array. Currently the disks are 1TB which I would like to replace with 8TB disks. After reading the documentation I have the following questions:
- Can replace the disks in LVM disks with larger ones?
- The documentation talks about raid1. Is this also valid for raid5?
- How should I physically remove one of the disks from the array before adding the new disk?
- In the examples it shows just one logical volume. In my case I have 2 logical volumes. Is it question of repeating the operation?