[Users] How to use CLI to create localfs storage domain?

David Li david_li at sbcglobal.net
Fri Mar 16 22:48:29 UTC 2012


Hi,

  I need to create a localfs to store VMiso images. That is my engine and 
storage 
    domain are both on the same machine. I tried the following but was in error. 
My 
    question is what "host-id" I need to use in this case? I used the 
ovirt-node's 
    host-id but apparently was wrong. 


    [oVirt shell (connected)]# create storagedomain --name "hs22-vm-iso" --type 
    "iso" --host-id "b8619d1c-6ecb-11e1-8004-000c29cfd59e" --storage-type 
"localfs" 
    --storage-address "10.10.2.185" --storage-path 
    "/home/lid2/workspace/ovirt/oVirt/storage-domains"


    unknown error: 
    status: 400
    reason: Bad Request
    detail: [Can not add local Storage Domain to non local storage Host]



    David



More information about the Users mailing list