I have observed that:
If md array is created with partitioned disk, the state change with array 
degrade is working as expected.
Verified with kernel 4.2.0-23-generic

1. Create md array with partitioned disk
# mdadm --detail /dev/md500
/dev/md500:
Version : 1.2
Creation Time : Mon Feb 15 16:17:59 2016
Raid Level : raid1
Array Size : 11709312 (11.17 GiB 11.99 GB)
Used Dev Size : 11709312 (11.17 GiB 11.99 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent

Update Time : Mon Feb 15 16:19:55 2016
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

Name : blrfsserv149:500 (local to host blrfsserv149)
UUID : d76dbca0:5ff06b36:8057cfde:96d9475b
Events : 17

Number Major Minor RaidDevice State
0 8 81 0 active sync /dev/sdf1
1 8 97 1 active sync /dev/sdg1

2. Offline the scsi device using scsi command
# lsscsi | grep sdf
[0:2:5:0] disk DELL PERC H730 Mini 4.25 /dev/sdf

# echo 1 > /sys/bus/scsi/devices/0:2:5:0/delete
# lsscsi | grep sdf

3. Check the details of md array, the state is changed from clean to 
clean,degraded
# mdadm --detail /dev/md500
/dev/md500:
Version : 1.2
Creation Time : Mon Feb 15 16:17:59 2016
Raid Level : raid1
Array Size : 11709312 (11.17 GiB 11.99 GB)
Used Dev Size : 11709312 (11.17 GiB 11.99 GB)
Raid Devices : 2
Total Devices : 1
Persistence : Superblock is persistent

Update Time : Mon Feb 15 16:21:02 2016
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0

Name : blrfsserv149:500 (local to host blrfsserv149)
UUID : d76dbca0:5ff06b36:8057cfde:96d9475b
Events : 20

Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 97 1 active sync /dev/sdg1

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1543003

Title:
  Mdadm –detail command is not displaying the state of a degraded md
  array as degraded

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/1543003/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to