Article 4WFQY When adding new drives to an existing MDADM array, do I count the spare?

When adding new drives to an existing MDADM array, do I count the spare?

by
road hazard
from LinuxQuestions.org on (#4WFQY)
So here's md0:

Code:/dev/md0:
Version : 1.2
Creation Time : Sat Dec 2 21:22:25 2017
Raid Level : raid6
Array Size : 39068871680 (37258.98 GiB 40006.52 GB)
Used Dev Size : 3906887168 (3725.90 GiB 4000.65 GB)
Raid Devices : 12
Total Devices : 13
Persistence : Superblock is persistent

Intent Bitmap : Internal

Update Time : Thu Dec 12 10:35:38 2019
State : clean
Active Devices : 12
Working Devices : 13
Failed Devices : 0
Spare Devices : 1

Layout : left-symmetric
Chunk Size : 512K

Consistency Policy : bitmap

Name : server-pc:0 (local to host server-pc)
UUID : 99c9ad61:911cb77d:7d7d831d:032e2eee
Events : 30524

Number Major Minor RaidDevice State
0 65 80 0 active sync /dev/sdv
1 8 96 1 active sync /dev/sdg
2 8 16 2 active sync /dev/sdb
3 8 112 3 active sync /dev/sdh
4 8 224 4 active sync /dev/sdo
5 8 32 5 active sync /dev/sdc
6 8 48 6 active sync /dev/sdd
7 8 128 7 active sync /dev/sdi
11 8 208 8 active sync /dev/sdn
10 8 80 9 active sync /dev/sdf
9 8 64 10 active sync /dev/sde
8 8 0 11 active sync /dev/sda

12 8 192 - spare /dev/sdm12 active devices and the 13th (/dev/sdm) is a hot spare.

I'm getting ready to add 2 more drives at once (done it before so I know it's OK to grow with multiple drives).

Code:mdadm --add /dev/md0 /dev/sdk /dev/sdl
mdadm -v --grow --raid-devices=?????? /dev/md0So that's my question.......... the part with --raid-devices=...... do I count the existing hot spare or not?

--raid-devices=14 (if I don't count the spare)

and

--raid-devices=15 (if I'm suppose to)latest?d=yIl2AUoC8zA latest?i=N5r0obaTVwk:gQQhAvJernM:F7zBnMy latest?i=N5r0obaTVwk:gQQhAvJernM:V_sGLiP latest?d=qj6IDK7rITs latest?i=N5r0obaTVwk:gQQhAvJernM:gIN9vFwN5r0obaTVwk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments