Get the App
SLTechnology News&Howtos  ›  Servers  › 

Error recovery of exsi mount ISCSI storage

Shulou Source: shulou.com Published: 2022-06-02 21:40:14 09月22日 Update

Check the status of the volume:

# esxcli storage filesystem list

The storage status seen in esxi after an iscsi error is as follows:

Mount Point Volume Name UUID Mounted Type Size Free------------------------------------------------- ----------- ----------------------------------- ------- ------ -------------- --------------/vmfs/volumes/5d4bc70c-70355d08-734b-d09466821f5e iscsi-storage 5d4bc70c-70355d08-734b-d09466821f5e true VMFS-6 0

The recovery steps are as follows:

1. To view the unique identifier of the LUN on which you want to remove the datastore, run the following command:

# esxcfg-scsidevs -m

2. Unload the volume

# esxcli storage filesystem unmount [-u UUID | -l label | -p path ]

For example, unmount the LUN01 datastore using one of the following commands:

# esxcli storage filesystem unmount -l LUN01# esxcli storage filesystem unmount -u 4e414917-a8d75514-6bae-0019b9f1ecf4# esxcli storage filesystem unmount -p /vmfs/volumes/4e414917-a8d75514-6bae-0019b9f1ecf4

Note: If the VMFS filesystem you are attempting to unmount has active I/O or has not met the prerequisites for unmounting a VMFS datastore, the following error appears in the VMkernel log:

WARNING:VC:637: unmounting opened volume ('4e414917-a8d75514-6bae-0019b9f1ecf4' 'LUN01') is not allowed.VC:802: Unmount VMFS volume f530 28 2 4e414917a8d7551419006bae f4ecf19b 4 1 0 0 0 0 0 :Busy

To see what processes are in use for this volume, use the following command:

# vsish -e ls /storage/scsifw/devices/naa.6842b2b00066caec000084bb4f7e9e4e/worlds/ |sed 's:/::' |while read i;do ps |grep $i;done

End the process that is using the volume and use the command above to reinstall the volume

Rescan the ISCSI storage volume using the following command:

# esxcli storage core adapter rescan --all

Review all volume status:

# esxcli storage filesystem list

All volumes are healthy

Reference link: esxi unload storage, cannot unload storage

Tags: Storage command status data in progress process error not yet location file log condition identity identifier step system link reference attempt activity Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS vpn Redmi MySQL Apple