鍍金池/ 問答/Linux/ Rex ray 無法開啟

Rex ray 無法開啟

我在virtualbox上安裝了一個rex ray,配置使用官網(wǎng)生成的,然而在啟動時它一直報同樣的錯誤:

error: service startup failed: libstorage: error logging in

啟動命令:rexray start
附上配置,使用這個網(wǎng)址:http://rexrayconfig.codedelle...

libstorage:
  service: virtualbox
virtualbox:
  endpoint: http://192.168.56.100:18083
  volumePath: /usrdata/Volumes
  controllerName: SATA

谷歌了半天,好像沒有人像我這樣直接死在開啟服務(wù)上,附上debug信息

INFO[0000] configured default CSI module                 CSI_ENDPOINT=/run/docker/plugins/rexray.sock time=1514969505608
INFO[0000] DockerLegacyMode                              enabled=false time=1514969505608
DEBU[0000] trapped signals                               time=1514969505609
DEBU[0000] loading config                                buildType=client+agent+controller configFileName=rexray globalConfigFileExists=false globalConfigFilePath=/etc/rexray/rexray.yml ignoreExists=false time=1514969505609 userConfigFileExists=false userConfigFilePath=/root/.rexray/rexray.yml
DEBU[0000] cannot find global or user file               buildType=client+agent+controller configFileName=rexray globalConfigFileExists=false globalConfigFilePath=/etc/rexray/rexray.yml ignoreExists=false time=1514969505609 userConfigFileExists=false userConfigFilePath=/root/.rexray/rexray.yml
DEBU[0000] loading config                                buildType=client+agent+controller configFileName=config globalConfigFileExists=true globalConfigFilePath=/etc/rexray/config.yml ignoreExists=true time=1514969505609 userConfigFileExists=false userConfigFilePath=/root/.rexray/config.yml
DEBU[0000] disabled config file exist check              buildType=client+agent+controller configFileName=config globalConfigFileExists=true globalConfigFilePath=/etc/rexray/config.yml ignoreExists=true time=1514969505609 userConfigFileExists=false userConfigFilePath=/root/.rexray/config.yml
DEBU[0000] validating global config                      buildType=client+agent+controller configFileName=config globalConfigFileExists=true globalConfigFilePath=/etc/rexray/config.yml ignoreExists=true time=1514969505609 userConfigFileExists=false userConfigFilePath=/root/.rexray/config.yml
DEBU[0000] created new config                            buildType=client+agent+controller configFileName=config globalConfigFileExists=true globalConfigFilePath=/etc/rexray/config.yml ignoreExists=true time=1514969505610 userConfigFileExists=false userConfigFilePath=/root/.rexray/config.yml
DEBU[0000] initializing configuration                   
DEBU[0000] loading yaml for Global                      
DEBU[0000] loading yaml for CSI                         
DEBU[0000] loading global config file                    path=/etc/rexray/config.yml
DEBU[0000] usage template path                           path=/root/.rexray/usage.template time=1514969505613
DEBU[0000] loaded usage template                         source=UsageTemplate time=1514969505613
DEBU[0000] updating log level                            level=debug time=1514969505615
INFO[0000] updated log level                             logLevel=debug
DEBU[0000] os.args                                       time=1514969505620 val=[rexray -l debug start]
INFO[0000] created pid file                              path=/var/run/rexray/rexray.pid pid=3303 time=1514969505621
DEBU[0000] host is empty; initiliazing default services  time=1514969505634
INFO[0000] libStorage auto service mode enabled          driver=virtualbox time=1514969505639
DEBU[0000] starting embedded libStorage server           time=1514969505639
DEBU[0000] created scoped scope                          new=libstorage.server parentScopes=rexray,
INFO[0000] configured logging                            libstorage.logging.httpRequests=false libstorage.logging.httpResponses=false libstorage.logging.level=debug server=white-friend-mu time=1514969505692
DEBU[0000] parsed server auth property                   libstorage.server.auth.disabled=false server=white-friend-mu time=1514969505710
DEBU[0000] parsed server auth property                   libstorage.server.auth.key= server=white-friend-mu time=1514969505721
DEBU[0000] parsed server auth property                   libstorage.server.auth.alg=HS256 server=white-friend-mu time=1514969505728
DEBU[0000] parsed server auth property                   libstorage.server.auth.allow=[] server=white-friend-mu time=1514969505739
DEBU[0000] parsed server auth property                   libstorage.server.auth.deny=[] server=white-friend-mu time=1514969505748
INFO[0000] configured global auth                        libstorage.server.auth.alg=HS256 libstorage.server.auth.allow=[] libstorage.server.auth.deny=[] libstorage.server.auth.disabled=false libstorage.server.auth.key= server=white-friend-mu time=1514969505751
INFO[0000] initializing server                           server=white-friend-mu time=1514969505751
INFO[0000] initializing server services                  server=white-friend-mu time=1514969505751
DEBU[0000] configured result schema validation           enabled=false server=white-friend-mu time=1514969505755
DEBU[0000] got services map                              count=1 server=white-friend-mu time=1514969505758
DEBU[0000] processing service config                     server=white-friend-mu service=virtualbox time=1514969505758
DEBU[0000] getting scoped config for service             scope=libstorage.server.services.virtualbox server=white-friend-mu service=virtualbox time=1514969505758
DEBU[0000] created scoped scope                          new=libstorage.server.services.virtualbox parentScopes=libstorage.server,rexray,
DEBU[0000] got driver name                               driverName=virtualbox server=white-friend-mu service=virtualbox time=1514969505764
INFO[0000] initializing driver: map[moduleName:virtualbox userName: controllerName:SATA provider:virtualbox endpoint:http://192.168.56.100:18083 tls:false volumePath:/usrdata/Volumes machineNameOrId:]  server=white-friend-mu service=virtualbox storageDriver=virtualbox time=1514969505808
INFO[0000] service shutdown complete                     time=1514969505846
INFO[0000] removed pid file                              path=/var/run/rexray/rexray.pid time=1514969505847
error: service startup failed: libstorage: error logging in

另外,我在官網(wǎng)上注意到這段話:

...order to leverage the virtualbox driver, the libStorage client or must be located on each VM that you wish to be able to consume external volumes. The driver leverages the vboxwebserv HTTP SOAP API which is a process that must be started from the VirtualBox host (ie OS X) using vboxwebsrv -H 0.0.0.0 -v or additionally with -b for running in the background. This allows the VMs running libStorage to remotely make calls to the underlying VirtualBox application.

似乎就是要用vboxwebserv這個命令開啟SOAP API,然而我還是沒有找到相應的命令,最貼近的那個是個鏡像……用在phpVirtualBox上(感覺不應該跟我有關(guān)系?。?/p>

求各路大哥幫個忙解決下,謝謝。

回答
編輯回答
檸檬藍

樓主,都快過去半年了,這個問題你解決了嗎?

2018年1月29日 20:55