On Mon, Jul 15, 2013 at 11:20 AM, harryxiyou <[email protected]> wrote:
> On Mon, Jul 15, 2013 at 4:05 PM, Helga Velroyen <[email protected]> wrote: > > 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. > > > > The path, "/etc/ganeti/file-storage-paths", is created by default. > And how to enable the path for file/shared-file storage? Is it > enabled during ./configure time? > The file /etc/ganeti/file-storage-paths is a text file that should contain a list of paths that you want to use for either, file or shared file storage. Currently (although that will change soon for file), you need to configure the file and shared file storage paths at configure time, but you have to write them into the /etc/ganeti/file-storage-paths _additionally_. Thus, you need to do something like that: ./configure ... --with-file-storage-dir=MYDIR1 --with-shared-file-storage-dir=MYDIR2 And edit/create the /etc/ganeti/file-storage-paths containing at least these two lines: MYDIR1 MYDIR2 You need to copy the /etc/ganeti/file-storage-paths file to all nodes, for example using gnt-cluster copyfile: gnt-cluster copyfile /etc/ganeti/file-storage-paths Note: I will soon push a commit on master, where you cannot use --with-file-storage-dir at configure anymore, but use --file-storage-dir on cluster init. Cheers, Helga
