
In data giovedì 19 gennaio 2023 23:56:35 CET, Carlos E. R. ha scritto:
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.
-- Cheers / Saludos,
Carlos E. R. (from 15.4 x86_64 at Telcontar)
I tried to set up the raid with both disks at 8 TB. I did this with mdadm --create /dev/md3 --level=1 --raid-devices=2 /dev/sdg1 /dev/sdh1 Will try to mount it and to simply copy cp -ax to the new disc the whole content. That should do I guess.