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

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

----- Original Message -----
From: "David Li" <david_li@sbcglobal.net> To: users@ovirt.org Sent: Friday, March 16, 2012 6:48:29 PM Subject: [Users] How to use CLI to create localfs storage domain?
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.
ISO storage domains can only be NFS today.
[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 _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (2)
-
Andrew Cathrow
-
David Li