On Mon, Jul 15, 2013 at 5:25 PM, Helga Velroyen <[email protected]> wrote: [...] > 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. >
Cannot do as what you said above, did I ignore anything? See details as follows. root@node1:/srv/ganeti/file-storage# mkdir mysubdir root@node1:~/ganeti# gnt-cluster init --enabled-disk-templates file --file-storage-dir /srv/ganeti/file-storage/mysubdir cluster1 root@node1:~/ganeti# gnt-cluster verify Submitted jobs 3, 4 Waiting for job 3 ... Mon Jul 15 05:35:38 2013 * Verifying cluster config Mon Jul 15 05:35:38 2013 * Verifying cluster certificate files Mon Jul 15 05:35:39 2013 * Verifying hypervisor parameters Mon Jul 15 05:35:39 2013 * Verifying all nodes belong to an existing group Waiting for job 4 ... Mon Jul 15 05:35:39 2013 * Verifying group 'default' Mon Jul 15 05:35:39 2013 * Gathering data (1 nodes) Mon Jul 15 05:35:40 2013 * Gathering disk information (1 nodes) Mon Jul 15 05:35:40 2013 * Verifying configuration file consistency Mon Jul 15 05:35:40 2013 * Verifying node status Mon Jul 15 05:35:40 2013 * Verifying instance status Mon Jul 15 05:35:40 2013 * Verifying orphan volumes Mon Jul 15 05:35:40 2013 * Verifying N+1 Memory redundancy Mon Jul 15 05:35:40 2013 * Other Notes Mon Jul 15 05:35:41 2013 * Hooks Results root@node1:~/ganeti# gnt-instance add -n node1.harrycluster.com -o debootstrap+default -t file -s 5G instance2.harrycluster.com Mon Jul 15 05:35:53 2013 * disk 0, size 5.0G Mon Jul 15 05:35:53 2013 * creating instance disks... Mon Jul 15 05:35:53 2013 - WARNING: Device creation failed Failure: command execution error: Failed to create directory '/srv/ganeti/file-storage/mysubdir/instance2.harrycluster.com' on node node1.harrycluster.com: Error while executing backend function: Path '/srv/ganeti/file-storage/mysubdir/instance2.harrycluster.com' is not acceptable for file storage -- Thanks Weiwei Jia (Harry Wei)
