[one-users] Changing /var/lib/one location

Javier Fontan jfontan at opennebula.org
Tue Jun 17 12:37:58 PDT 2014


I believe that the problem is selinux. It does not let create and
maybe use ssh keys outside /home directory. Try disabling selinux
before installing the package.

# setenforce 0

On Tue, Jun 17, 2014 at 8:51 PM, kerryhall . <kerryhall at gmail.com> wrote:
> This seems to have _mostly_ worked. I created a logical volume and mounted
> it at /var/lib/one, installed the opennebula packages, and then changed the
> ownership to the "oneadmin" user.
>
> However, I have noticed two issues.
> 1. .ssh was not created. (but all other files appear to have been created
> normally afaik)
> 2. The "system" data store does not report capacity. (but the "files" and
> "default" datastores do)
>
> My guess is that when the opennebula packages are installed, there is an "if
> statement" being run by the installer that checks to see if the /var/lib/one
> directory already exists, and if so, does not do certain things. (like set
> up .ssh, perhaps)
>
> Any suggestions would be appreciated!
> Kerry
>
>
> On Tue, Jun 17, 2014 at 11:09 AM, kerryhall . <kerryhall at gmail.com> wrote:
>>
>> That's a good idea. Let me give that a try.
>>
>> Thank you!
>> Kerry
>>
>>
>> On Tue, Jun 17, 2014 at 10:21 AM, Alberto Zuin - Liste
>> <liste at albertozuin.eu> wrote:
>>>
>>> Hi,
>>> you can mount your partition directly on /var/lib/one or you can bind
>>> your mount to /var/lib/one (for ex. mount -o bind /mnt/newpart /var/lib/one)
>>> My 2 cents,
>>> Alberto
>>>
>>> Il 17/06/14 18:18, kerryhall . ha scritto:
>>>
>>> Hi folks,
>>>
>>> I was wondering how to change the location of /var/lib/one. I have tried
>>> making a symlink from /var/lib/one to a new location before installing the
>>> ONE packages, but for some reason generating the ssh key (and possibly other
>>> installation steps) failed. My reason for doing so is that I am working with
>>> systems that have /var as a separate 10 gig partition, and it is not
>>> something I can change.
>>>
>>> Thanks!
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Javier Fontán Muiños
Developer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | @OpenNebula | github.com/jfontan


More information about the Users mailing list