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.