Moving images to another disk
-
I tried move my existing images to another disk (actually iSCSI storage connected to fog server) but failed. I copied images to new location, changed ownership and permission (later to 777) and changed path to images in fog storage node settings. But when I tried upload new image, process failed with “unable to mount nfs” message. Later when I tried download image, I got not have privileges/permission or similar message. Dont get it, the whole path to particular image have 777. I tried restarting the system, I tried just linking (soft link) to original path - nothing is working. Can anynobody help me with this? Thanks.
-
Hi, can you post you export ?
cat /etc/exports
-
/images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insec ure,fsid=0)
/images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1I looked to this, when I read some tutorial about this problem, but when I tried linking new path (/iscsi/lun0/fog-images) to default path (/images) and it didnt work I didnt consider this a problem. Not sure this is configured, when I change the path in storage node, or if nfs server is reloaded either.
-
@mrzo said:
/images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insec ure,fsid=0)
/images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1I looked to this, when I read some tutorial about this problem, but when I tried linking new path (/iscsi/lun0/fog-images) to default path (/images) and it didnt work I didnt consider this a problem. Not sure this is configured, when I change the path in storage node, or if nfs server is reloaded either.
If your new path is /iscsi/lun0/fog-images you have to have in your exports that :
/iscsi/lun0/fog-images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insec ure,fsid=0) /iscsi/lun0/fog-images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1
-
Even if I make soft link /images to /iscsi/lun0/fog-images ?
And thanks, I try it. Hope it will be just that. -
@mrzo said:
Even if I make soft link /images to /iscsi/lun0/fog-images ?
And thanks, I try it. Hope it will be just that.No sure if it work with soft link :s
-
Editing /etc/exports helped, not sure if reloading exports was needed, or restart, but I did both after editing to be sure. Thanks.
-
@ch3i said:
@mrzo said:
Even if I make soft link /images to /iscsi/lun0/fog-images ?
And thanks, I try it. Hope it will be just that.No sure if it work with soft link :s
It will work with a soft link - permissions still need set and the .mntcheck files and such still need made, the dev folder still needs made, etc. And the exports file needs to point to the correct sym-link. But yea - soft links will work.
I can’t speak for the PERFORMANCE of such a setup, but it will work just fine.
-
@Wayne-Workman didnt testet it thoroughly, but as I described it, it didnt work, (I made sym link /image - so no change in exports was needed?) , permissions and files created were ok - after changed exports to new location, everything startet to work.