Failed to prepare archive media for use

ISSUE

Failed to prepare device 'Recovery Archive' for use: Failed to create archive filesystem
Failed to prepare archive media for use

RESOLUTION






dmesg | grep I/O

end_request: I/O error, dev sdg, sector 493720592
end_request: I/O error, dev sdg, sector 3907019792
end_request: I/O error, dev sdg, sector 3907018768

This is indicating there is an issue with sdg

Some additional torubleshooting
Attempt to prepare the storage from the command line.

mdadm --detail /dev/md99

/dev/md99:
        Version : 1.2
  Creation Time : Tue Oct 10 15:32:37 2017
     Raid Level : raid0
     Array Size : 15628070912 (14904.09 GiB 16003.14 GB)
   Raid Devices : 4
  Total Devices : 4
    Persistence : Superblock is persistent

    Update Time : Tue Oct 10 15:32:37 2017
          State : clean
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0

     Chunk Size : 1024K

           Name : SJCRecovery:99  (local to host SJCRecovery)
           UUID : 9ad95abd:f78031b5:4075a7e8:57c6eb73
         Events : 0

    Number   Major   Minor   RaidDevice State
       0       8       48        0      active sync   /dev/sdd
       1       8       64        1      active sync   /dev/sde
       2       8       80        2      active sync   /dev/sdf
       3       8       96        3      active sync   /dev/sdg


mdadm --examine /dev/md99
mdadm: No md superblock detected on /dev/md99. (This is bad)


mkfs.xfs -f /dev/md99

Error:
mkfs.xfs: pwrite64 failed: Input/output error (This is also bad)

Next you can attempt to write a filesystem to the other device to verify if they need to be replaced.


First stop md99

mdadm --stop /dev/md99

Next try to write a filesystem to each device

(CAUTION: Incorrect naming of /dev/sdx can direct to a storage drive instead of archive device. This should only be handled by those comfortable with linux bash shell, if unsure or concerned contact Support for process.)

Make sure to only run against drives listed in above mdadm --detail /dev/md99 command

mkfs.xfs -f /dev/sdx

mkfs.xfs -f /dev/sdg
meta-data=/dev/sdg               isize=256    agcount=4, agsize=244188662 blks
         =                       sectsz=512   attr=2, projid32bit=0
data     =                       bsize=4096   blocks=976754646, imaxpct=5
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal log           bsize=4096   blocks=476930, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
mkfs.xfs: pwrite64 failed: Input/output error


Replace the drive or drives that you can not write a filesystem to.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Contact us