Re: how to replace a disk in a raid-1 array by a larger one?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)6 7892 5822
_______________________________________________
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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux