Hi Harry, you have to enable paths for file storage in Ganeti for security reasons (otherwise Ganeti would be able to write anywhere on the nodes. It is described in doc/admin.rst:
file The instance will use plain files as backend for its disks. No redundancy is provided, and this is somewhat more difficult to configure for high performance. Note that for security reasons the file storage directory must be listed under ``/etc/ganeti/file-storage-paths``, and that file is not copied automatically to all nodes by Ganeti. Hope that helps, Helga On Sat, Jul 13, 2013 at 2:51 PM, harryxiyou <[email protected]> wrote: > Hi all, > > When I add instance with file or sharedfile disk template, I happen > to errors as follows. > > root@node1:~# gnt-instance add -n node1.harrycluster.com -o > debootstrap+default -t sharedfile -s 5G instance1.harrycluster.com > Sat Jul 13 08:47:22 2013 * disk 0, size 5.0G > Sat Jul 13 08:47:22 2013 * creating instance disks... > Sat Jul 13 08:47:22 2013 - WARNING: Device creation failed > Failure: command execution error: > Failed to create directory > '/srv/ganeti/shared-file-storage/instance1.harrycluster.com' on node > node1.harrycluster.com: Error while executing backend function: Path > '/srv/ganeti/shared-file-storage/instance1.harrycluster.com' is not > acceptable for file storage > > > root@node1:~# gnt-instance add -n node1.harrycluster.com -o > debootstrap+default -t file -s 5G instance1.harrycluster.com > Sat Jul 13 08:38:51 2013 * disk 0, size 5.0G > Sat Jul 13 08:38:51 2013 * creating instance disks... > Sat Jul 13 08:38:51 2013 - WARNING: Device creation failed > Failure: command execution error: > Failed to create directory > '/srv/ganeti/file-storage/instance1.harrycluster.com' on node > node1.harrycluster.com: Error while executing backend function: Path > '/srv/ganeti/file-storage/instance1.harrycluster.com' is not > acceptable for file storage > > > Would anyone please give me some suggestions? Thanks very much ;-) > > -- > Thanks > Weiwei Jia (Harry Wei) >
