Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Error recovery of exsi mount ISCSI storage

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report