Thursday, 29 October 2020

Reformating my Hitachi Drives from 520b to 512b

 root@pve:~#  sg_readcap /dev/sg2

Read Capacity results:

   Last LBA=1125768575 (0x4319dd7f), Number of logical blocks=1125768576

   Logical block length=520 bytes

Hence:

   Device size: 585399659520 bytes, 558280.6 MiB, 585.40 GB




root@pve:~# sg_format --format --size=512 /dev/sg2
    HITACHI   HUC10606 CLAR600  C260   peripheral_type: disk [0x0]
      << supports protection information>>
      Unit serial number: PPG98NYB
      LU name: 5000cca01210dfa0
Mode Sense (block descriptor) data, prior to changes:
  Number of blocks=1125768576 [0x4319dd80]
  Block size=520 [0x208]

A FORMAT UNIT will commence in 15 seconds
    ALL data on /dev/sg2 will be DESTROYED
        Press control-C to abort

A FORMAT UNIT will commence in 10 seconds
    ALL data on /dev/sg2 will be DESTROYED
        Press control-C to abort

A FORMAT UNIT will commence in 5 seconds
    ALL data on /dev/sg2 will be DESTROYED
        Press control-C to abort

Format unit has started
Format in progress, 1.99% done
Format in progress, 3.99% done
^C
root@pve:~#  sg_readcap /dev/sg2
READ CAPACITY (10) failed: Device not ready
sg_readcap failed: Device not ready
root@pve:~#  sg_readcap /dev/sg2
READ CAPACITY (10) failed: Device not ready
sg_readcap failed: Device not ready
root@pve:~#  sg_readcap /dev/sg2
READ CAPACITY (10) failed: Device not ready
sg_readcap failed: Device not ready


I had to abort it just now because it was late and the VNX was too noisy, Hope I don't end up with a brick drive:
http://www.ndwiki.org/wiki/User:Tingo/sg3_utils

No comments:

Post a Comment