Target size is Zero (-32)

Target size is Zero (-32)

Created date

Updated date

Affected version

Fixed version

Created date

Updated date

Affected version

Fixed version

09/15/2023

04 Oct 2023 

Lun Eraser for UNIX

N/A

Problem

Failed to erase a drive on a Solaris 10 SPARC system due to "Erasing Target {drive path} Failed: Target Size is Zero (-32)".

Cause

This error is related to having the target drive with the wrong label.

Resolution

Before suggesting any change, you need to check the drive information using the command below.

# prtvtoc drivepath

The information should look like the pictures below and you can see on each case they have a different Label. For this case, you need to make sure the drive has the SMI/VTOC label instead of the EFI.

More details available on Oracle's documentation: Displaying Disk Label Information - Managing Devices in Oracle® Solaris 11.2

Then using the "format" command, you will need to label the drive:

# format format > label

More details available on Oracle's documentation: Creating Disk Labels - Managing Devices in Oracle® Solaris 11.2

Once assigning a label proceed to erase the target using the LUN Eraser.