Jack
Jack
发布于 2022-09-26 / 61 阅读 / 0 评论 / 0 点赞

EXSI的nfs挂掉了

EXSI的nfs不知道怎么起不来了,容量已用等都是0
浏览显示“错误请重试”
解决办法,进ssh控制台

[root@localhost:/tmp] esxcfg-nas -a -o 192.168.0.32 -s /shares/Public /vmfs/volumes/WD
Error performing operation: Unable to create new NAS volume: 192.168.0.32:/shares/Public is already exported by a volume with the name WD

重新添加显示已有,看esxcfg-nas命令help

esxcfg-nas <options> [<label>]
-a|--add                Add a new NAS filesystem to /vmfs volumes.  
                        Requires --host and --share options.
                        Use --readonly option only for readonly access.
-o|--host <host>        Set the host name or ip address for a NAS mount.
                        For version 4.1, can be a comma-separated list.
-s|--share <share>      Set the name of the NAS share on the remote system.
-y|--readonly           Add the new NAS filesystem with readonly access.
-d|--delete             Unmount and delete a filesystem.
-l|--list               List the currently mounted NAS file systems.
-v|--version <version>  Specify NFS version (3 or 4.1)
                        Required for add; optional for list.
-U|--user <user>        Set per host NFS user and password
                        Requires --version 4.1 option
-C|--user-clear         Clear per host NFS user and password
                        Requires --version 4.1 option
-L|--user-list          List per host NFS user and number of passwords
                        Requires --version 4.1 option
-r|--restore            Restore all NFS version 3 mounts from the configuration file.
                        (FOR INTERNAL USE ONLY).
-h|--help               Show this message.

于是

[root@localhost:/tmp] esxcfg-nas -l
WD is /shares/Public from 192.168.0.32 unmounted unavailable
[root@localhost:/tmp] esxcfg-nas -r
[root@localhost:/tmp] esxcfg-nas -l
WD is /shares/Public from 192.168.0.32 mounted available
[root@localhost:/tmp] 

问题解决


评论