On 2023-01-19 18:25, Stakanov wrote:
In data venerdì 20 gennaio 2023 00:52:05 CET, Darryl Gregorash ha scritto:
On 2023-01-19 16:56, Carlos E. R. wrote:
On 2023-01-19 21:13, Stakanov wrote:
I have a mdam md0 with two hdd 4 TB. They are in use as /home I now have two HDD with 8TB.
I normally work with mdam in CLI. I did up to now a planed degrading of the secondary disk of the md0. Then a hot remove. Then I added the first 8TB.
with other words: silversurfer:~ # mdadm --manage --set-faulty /dev/md0 /dev/sde1 mdadm: set /dev/sde1 faulty in /dev/md0 silversurfer:~ # mdadm --manage /dev/md0 -r /dev/sde1 mdadm: hot removed /dev/sde1 from /dev/md0 You have new mail in /var/mail/root silversurfer:~ # mdadm --manage /dev/md0 -a /dev/sdg1 mdadm: added /dev/sdg1
I don't know much about this, but, assuming sdg1 is on the new 8TB disk, when you partition it you make it already take the whole disk, ie, the 8TB. Thus the raid will know that one of the members has 8TB. It is then the filesystem which you have to expand, not the raid.
You're right, you don't know much about this. If he doesn't grow the array to 8TB, all he will have is 4TB on an array of 2x8TB HDDs.
Let your fingers do the walking in the man pages.
One other method (but that is somewhat tedious) is, to create the initial RAID with "one missing". Then to do the add once you copied over the content. Normally I would have chosen this, if I would not have the capacity to do the RAID with both 8TB. But as the story goes, I degraded intentionally two RAID so I have the two 8TB free and once the /home is on them, I reconstitute the other RAID so at the end I can have 8TB for /home on RAID 1 (md3) and 4TB on md126 for my KVM machines. That's probably the easiest way to do it with a 2-drive RAID1.
currently it syncs the m3 created RAID1 (10 hours!!!) I will sleep over this to see how it ends.
I used to have a 5x3TB RAID5 array. Now I have a 6x6TB RAID5 array. That certainly did not all happen in one day! :D