El 12/8/21 a las 14:18, François Patte escribió:
Le 2021-08-05 12:50, José María Terry Jiménez a écrit :
El 5/8/21 a las 12:35, François Patte escribió:
Bonjour,
I have a raid-1 array of 2 disks (1 Tb) and I want to replace these
disks by 2 2Tb disks.
Here is the result of lsblk for these disks:
sde 8:64 0 931,5G 0 disk
├─sde1 8:65 0 40G 0 part
│ └─md4 9:4 0 40G 0 raid1
│ ├─systeme-swap 253:1 0 4G 0 lvm [SWAP]
│ ├─systeme-var 253:2 0 15G 0 lvm /var
│ └─systeme-chiffre 253:3 0 15G 0 lvm
└─sde2 8:66 0 891,5G 0 part
└─md5 9:5 0 891,4G 0 raid1
└─data-home 253:5 0 891G 0 lvm /home
sdf 8:80 0 931,5G 0 disk
├─sdf1 8:81 0 40G 0 part
│ └─md4 9:4 0 40G 0 raid1
│ ├─systeme-swap 253:1 0 4G 0 lvm [SWAP]
│ ├─systeme-var 253:2 0 15G 0 lvm /var
│ └─systeme-chiffre 253:3 0 15G 0 lvm
└─sdf2 8:82 0 891,5G 0 part
└─md5 9:5 0 891,4G 0 raid1
└─data-home 253:5 0 891G 0 lvm /home
My idea is to stop the array, remove one disk and have this array in
degraded mode with the other disk. Then plug a new disk (2Tb) on
which I build a new array in degraded mode with all partitions and
lvm needed. Then I transfer all the data from the remaining 1Tb disk
to the new array, replace the 1Tb disk by a new 2Tb disk and then
synchronize the new array.
Is it the good way to proceed? Or is there another better way?
Thank you for all advices.
Search for mdadm --grow
See for example:
https://www.claudiokuenzler.com/blog/865/replace-drive-with-bigger-one-grow-expand-software-mdadm-raid
or
https://www.tjansson.dk/2015/12/growing-a-mdadm-raid-by-replacing-disks/
Thank you for these addresses, I found this one too:
https://www.claudiokuenzler.com/blog/865/replace-drive-with-bigger-one-grow-expand-software-mdadm-raid
You're welcome, hope it helps you
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure