Osolemio

Q: Remove Missing Disk From Apple Raid

Screenshot 2016-08-29 11.28.42.jpg

Anyone know how i can remove this missing disk (hardware was removed)? Trying to do it via terminal says I need ownership and sudo isn't doing the trick.

Posted on Aug 29, 2016 8:34 AM

Close

Q: Remove Missing Disk From Apple Raid

  • All replies
  • Helpful answers

  • by Grant Bennet-Alder,

    Grant Bennet-Alder Grant Bennet-Alder Aug 29, 2016 9:26 AM in response to Osolemio
    Level 9 (60,627 points)
    Desktops
    Aug 29, 2016 9:26 AM in response to Osolemio

    Don't dwell on that issue. Just provide a replacement drive, add it to the RAID, and get it started on the rebuild.

  • by Osolemio,

    Osolemio Osolemio Aug 29, 2016 9:49 AM in response to Grant Bennet-Alder
    Level 1 (15 points)
    Desktops
    Aug 29, 2016 9:49 AM in response to Grant Bennet-Alder

    The second/replacement drive is there and it was rebuilt yet still shows as degraded. It's a mirror

  • by Loner T,

    Loner T Loner T Aug 29, 2016 9:55 AM in response to Osolemio
    Level 7 (23,543 points)
    Safari
    Aug 29, 2016 9:55 AM in response to Osolemio

    Have you tried

     

    diskutil ar remove

    Usage:  diskutil appleRAID remove MemberDeviceName|MemberUUID

            RAIDSetVolumePath|RAIDSetDeviceName|RAIDSetUUID

    Remove a member or spare from an existing RAID set.

    Ownership of the affected disks is required.

    Example: diskutil AppleRAID remove disk2s4 /Volumes/RAID

             diskutil AppleRAID remove 11111111-2222-3333-4444-555555555555 disk5

  • by Osolemio,

    Osolemio Osolemio Aug 29, 2016 10:01 AM in response to Loner T
    Level 1 (15 points)
    Desktops
    Aug 29, 2016 10:01 AM in response to Loner T

    The issue is that it states I don't have ownership or exactly: Ownership of the affected disks is required.

  • by Loner T,

    Loner T Loner T Aug 29, 2016 10:14 AM in response to Osolemio
    Level 7 (23,543 points)
    Safari
    Aug 29, 2016 10:14 AM in response to Osolemio

    Was repairMirror used to replace the original failed drive? If you use the add command, it is a different issue.

     

    Usage:  diskutil appleRAID repairMirror

            RAIDSetDeviceName|RAIDSetUUID MountPoint|DiskIdentifier|DeviceNode

    Repair a degraded mirror.  The new member disk will replace the failed member.

    Ownership of the affected disk is required.

  • by Osolemio,

    Osolemio Osolemio Aug 29, 2016 10:34 AM in response to Loner T
    Level 1 (15 points)
    Desktops
    Aug 29, 2016 10:34 AM in response to Loner T

    That may be the issue, I used Add. I saw it rebuilding when checking status but have no idea what i'm left with at this juncture.

  • by Loner T,

    Loner T Loner T Aug 29, 2016 10:49 AM in response to Osolemio
    Level 7 (23,543 points)
    Safari
    Aug 29, 2016 10:49 AM in response to Osolemio

    'Add' added a new member, but the failed drive is still in a failed state. After the current rebuild is complete, remove one of the drives using 'remove'. Re-add the disk you pulled out back using repairMirror as a replacement. Unfortunately, it will do a full rebuild again during repair.

  • by Osolemio,

    Osolemio Osolemio Aug 29, 2016 10:56 AM in response to Loner T
    Level 1 (15 points)
    Desktops
    Aug 29, 2016 10:56 AM in response to Loner T

    Let me make sure I understand (rebuild is done):

     

    1) Remove one of the good drives from the RAID

    2) Choose Repair as opposed to Add and (hopefully) choose the drive I removed

    3) Let it rebuild again (and the drive that isn't in the box physically but still shows will dissapear)

  • by Osolemio,

    Osolemio Osolemio Aug 29, 2016 11:01 AM in response to Loner T
    Level 1 (15 points)
    Desktops
    Aug 29, 2016 11:01 AM in response to Loner T

    I was able to remove it but got an error. Now two drives are missing/damaged. One is actually still in the machine. When I try to choose repair...it fails. I did this with Disk Utility and it's com.appl.StorageKit.error 118 I see two of the same volume mounted on my machine now...both called DATA

  • by Loner T,

    Loner T Loner T Aug 29, 2016 11:18 AM in response to Osolemio
    Level 7 (23,543 points)
    Safari
    Aug 29, 2016 11:18 AM in response to Osolemio

    If you removed a disk from the RAID set but have not initialized it, you now have two standalone disks, which have the same data.

     

    What is the output of

     

    diskutil ar list

     

    Backup one of the good disks using Time Machine, before we go further.

  • by Osolemio,

    Osolemio Osolemio Aug 29, 2016 11:26 AM in response to Loner T
    Level 1 (15 points)
    Desktops
    Aug 29, 2016 11:26 AM in response to Loner T

    in the Terminal i did diskutil appleRAID repairMirror /Volumes/Data /dev/disk3  and it seems to be rebuilding.