Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was using a raid array of 4 drives (3 TB) and tried to add 2 more drives (3 TB).
I partitioned the disks:
Disk /dev/sde: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): F5574F3B-19B1-420F-AAD5-F559F518C3F1
Partition table holds up to 128 entries
First usable sector is 2048, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 911 sectors (455.5 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 4095 1024.0 KiB EF02
2 4096 8450047 4.0 GiB 0700 Microsoft basic data
3 8450048 29415423 10.0 GiB EF00 EFI System
4 29415424 50380799 10.0 GiB FD00 Linux RAID
5 50380800 71360511 10.0 GiB FD00 Linux RAID
6 71360512 5860532223 2.7 TiB FD00 Linux RAID
and
Disk /dev/sdf: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): A12B3C9A-162F-4973-B078-5DF0C97148F7
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2925 sectors (1.4 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 4095 1024.0 KiB EF02 primary
2 4096 8450047 4.0 GiB 0700 primary
3 8450048 29415423 10.0 GiB EF00 EFI System
4 29415424 50380799 10.0 GiB FD00 Linux RAID
5 50380800 71360511 10.0 GiB FD00 Linux RAID
6 71360512 5860532223 2.7 TiB FD00 Linux RAID
Then I added them to raid array:
mdadm /dev/md127 -a /dev/sde6 /dev/sde6
mdadm /dev/md127 -a /dev/sde6 /dev/sdf6
I got two spare divices. So I tried to grow the array:
mdadm --grow --raid-devices=6 /dev/md127
That is the result:
mdadm -D /dev/md127
/dev/md127:
Version : 1.0
Creation Time : Sat Jan 10 19:49:58 2015
Raid Level : raid6
Array Size : 5789171200 (5520.98 GiB 5928.11 GB)
Used Dev Size : 2894585600 (2760.49 GiB 2964.06 GB)
Raid Devices : 6
Total Devices : 6
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Sun Sep 27 21:13:40 2015
State : clean, reshaping
Active Devices : 6
Working Devices : 6
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 128K
Reshape Status : 0% complete
Delta Devices : 2, (4->6)
Name : any:lvm
UUID : b1b8b834:53750cf0:63e16d72:f4e5c91f
Events : 18400
Number Major Minor RaidDevice State
0 8 6 0 active sync /dev/sda6
1 8 22 1 active sync /dev/sdb6
2 8 38 2 active sync /dev/sdc6
3 8 54 3 active sync /dev/sdd6
5 8 86 4 active sync /dev/sdf6
4 8 70 5 active sync /dev/sde6
According to the RAID wiki "check to see if you are using a write-intent bitmap. If you are you must remove the bitmap first, grow the array, then re-add the bitmap."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.