
--1552829269-799783345-1352562557=:85644 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Juan and all,=0A=0AI follow;=0ABuilding Engine Draft=0Ahttp://wiki.ovirt= .org/wiki/Building_Engine_Draft=0Ato install oVirt from source on Fedora 17= , 64bit=0A=0A=0A1)=0AFound following error;=0A$ unzip jboss-as-7.1.1.Final.= tar.gz=0A=0AIt should read;=0A$ unzip jboss-as-7.1.1.Final.zip=0A=0A=0A2)= =0AI was stuck here;=0A=0A# su - postgres -c 'pg_ctl initdb'=0AThe files be= longing to this database system will be owned by user "postgres".=0AThis us= er must also own the server process.=0A=0AThe database cluster will be init= ialized with locale en_US.UTF-8.=0AThe default database encoding has accord= ingly been set to UTF8.=0AThe default text search configuration will be set= to "english".=0A=0Ainitdb: directory "/var/lib/pgsql/data" exists but is n= ot empty=0AIf you want to create a new database system, either remove or em= pty=0Athe directory "/var/lib/pgsql/data" or run initdb=0Awith an argument = other than "/var/lib/pgsql/data".=0Apg_ctl: database system initialization = failed=0A=0A=0A=0AI'm not the owner of postgres=0A=0AWhat shall I do?=0A=0A= TIA=0A=0AB.R.=0AStephen L=0A --1552829269-799783345-1352562557=:85644 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"color:#000; background-color:#fff; font-family:ar= ial, helvetica, sans-serif;font-size:12pt"><div>Hi Juan and all,<br><br>I f= ollow;<br>Building Engine Draft<br>http://wiki.ovirt.org/wiki/Building_Engi= ne_Draft<br>to install oVirt from source on Fedora 17, 64bit<br><br><br>1)<= br>Found following error;<br>$ unzip jboss-as-7.1.1.Final.tar.gz<br><br>It = should read;<br>$ unzip jboss-as-7.1.1.Final.zip<br><br><br>2)<br>I was stu= ck here;<br><br># su - postgres -c 'pg_ctl initdb'<br>The files belonging t= o this database system will be owned by user "postgres".<br>This user must = also own the server process.<br><br>The database cluster will be initialize= d with locale en_US.UTF-8.<br>The default database encoding has accordingly= been set to UTF8.<br>The default text search configuration will be set to = "english".<br><br>initdb: directory "/var/lib/pgsql/data" exists but is not= empty<br>If you want to create a new database system, either remove or empty<br>the directory "/var/lib/pgsql/data" or run initdb<br>with an a= rgument other than "/var/lib/pgsql/data".<br>pg_ctl: database system initia= lization failed<br></div><div style=3D"color: rgb(0, 0, 0); font-size: 16px= ; font-family: arial,helvetica,sans-serif; background-color: transparent; f= ont-style: normal;"><br></div><div style=3D"color: rgb(0, 0, 0); font-size:= 16px; font-family: arial,helvetica,sans-serif; background-color: transpare= nt; font-style: normal;"><br>I'm not the owner of postgres<br><br>What shal= l I do?<br><br>TIA</div><div style=3D"color: rgb(0, 0, 0); font-size: 16px;= font-family: arial,helvetica,sans-serif; background-color: transparent; fo= nt-style: normal;"><br></div><div style=3D"color: rgb(0, 0, 0); font-size: = 16px; font-family: arial,helvetica,sans-serif; background-color: transparen= t; font-style: normal;">B.R.</div><div style=3D"color: rgb(0, 0, 0); font-s= ize: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">Stephen L</div></div></body></html> --1552829269-799783345-1352562557=:85644--

On 11/10/2012 04:49 PM, Stephen Liu wrote:
Hi Juan and all,
I follow; Building Engine Draft http://wiki.ovirt.org/wiki/Building_Engine_Draft to install oVirt from source on Fedora 17, 64bit
1) Found following error; $ unzip jboss-as-7.1.1.Final.tar.gz
It should read; $ unzip jboss-as-7.1.1.Final.zip
Thanks for pointing this out, I just fixed it.
2) I was stuck here;
# su - postgres -c 'pg_ctl initdb' The files belonging to this database system will be owned by user "postgres". This user must also own the server process.
The database cluster will be initialized with locale en_US.UTF-8. The default database encoding has accordingly been set to UTF8. The default text search configuration will be set to "english".
initdb: directory "/var/lib/pgsql/data" exists but is not empty If you want to create a new database system, either remove or empty the directory "/var/lib/pgsql/data" or run initdb with an argument other than "/var/lib/pgsql/data". pg_ctl: database system initialization failed
I'm not the owner of postgres
What shall I do?
Assuming that you don't have the data of any other application in that PostgreSQL instance I would remove it completely and then create it again running the following commands as root: systemctl stop postgresql.service rm -rf /var/lib/pgsql postgresql-setup initdb systemctl start postgresql.service That will give you a clean instance of PosrgreSQL that you can use for the ovirt-engine installation. Let us know if this helps. -- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.

----- Original Message -----
From: "Juan Hernandez" <jhernand@redhat.com> To: "Stephen Liu" <satimis@yahoo.com> Cc: users@ovirt.org Sent: Saturday, November 10, 2012 9:01:06 PM Subject: Re: [Users] About owner of postgres
On 11/10/2012 04:49 PM, Stephen Liu wrote:
Hi Juan and all,
I follow; Building Engine Draft http://wiki.ovirt.org/wiki/Building_Engine_Draft to install oVirt from source on Fedora 17, 64bit
1) Found following error; $ unzip jboss-as-7.1.1.Final.tar.gz
It should read; $ unzip jboss-as-7.1.1.Final.zip
Thanks for pointing this out, I just fixed it.
2) I was stuck here;
# su - postgres -c 'pg_ctl initdb' The files belonging to this database system will be owned by user "postgres". This user must also own the server process.
The database cluster will be initialized with locale en_US.UTF-8. The default database encoding has accordingly been set to UTF8. The default text search configuration will be set to "english".
initdb: directory "/var/lib/pgsql/data" exists but is not empty If you want to create a new database system, either remove or empty the directory "/var/lib/pgsql/data" or run initdb with an argument other than "/var/lib/pgsql/data". pg_ctl: database system initialization failed
I'm not the owner of postgres
What shall I do?
Assuming that you don't have the data of any other application in that PostgreSQL instance I would remove it completely and then create it again running the following commands as root:
systemctl stop postgresql.service rm -rf /var/lib/pgsql postgresql-setup initdb systemctl start postgresql.service
That will give you a clean instance of PosrgreSQL that you can use for the ovirt-engine installation.
Agree, should work Juan, should we add that to our DB wiki ???
Let us know if this helps.
-- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L. _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

From: Juan Hernandez <jhernand@redhat.com> To: Stephen Liu <satimis@yahoo.com> Cc: "users@ovirt.org" <users@ovirt.org> Sent: Sunday, November 11, 2012 3:01 AM Subject: Re: [Users] About owner of postgres
- snip -
Assuming that you don't have the data of any other application in that PostgreSQL instance I would remove it completely and then create it again running the following commands as root:
systemctl stop postgresql.service rm -rf /var/lib/pgsql postgresql-setup initdb systemctl start postgresql.service
That will give you a clean instance of PosrgreSQL that you can use for the ovirt-engine installation.
Let us know if this helps.
Your advice worked for me. Thanks. Steps performed as follows:- # systemctl stop postgresql.service # rm -rf /var/lib/pgsql # postgresql-setup initdb Initializing database ... OK # systemctl start postgresql.service # chkconfig postgresql on Note: Forwarding request to 'systemctl enable postgresql.service'. ln -s '/usr/lib/systemd/system/postgresql.service' '/etc/systemd/system/multi-user.target.wants/postgresql.service' A further question; I can change the owner of postgresql in following ways; 1) # chown satimis satimis /var/lib/pgsql/ OR 2) sudo su - postgres initdb -E UTF8 $ createuser -s -U postgres $ Enter name of role to add: {{ satimis }} Would there is any difference? If there is. After having finished the current test I can start a new test on another hard drive. Besides: on http://wiki.ovirt.org/wiki/Installing_PostgreSQL_DB Connecting to the database Run /etc/init.d/postgresql restart (it didn't work) to be replaced with: service postgresql restart

On 11/11/2012 10:07 AM, Stephen Liu wrote:
From: Juan Hernandez <jhernand@redhat.com> To: Stephen Liu <satimis@yahoo.com> Cc: "users@ovirt.org" <users@ovirt.org> Sent: Sunday, November 11, 2012 3:01 AM Subject: Re: [Users] About owner of postgres
- snip -
Assuming that you don't have the data of any other application in that PostgreSQL instance I would remove it completely and then create it again running the following commands as root:
systemctl stop postgresql.service rm -rf /var/lib/pgsql postgresql-setup initdb systemctl start postgresql.service
That will give you a clean instance of PosrgreSQL that you can use for the ovirt-engine installation.
Let us know if this helps.
Your advice worked for me. Thanks.
Steps performed as follows:- # systemctl stop postgresql.service
# rm -rf /var/lib/pgsql # postgresql-setup initdb Initializing database ... OK
# systemctl start postgresql.service
# chkconfig postgresql on Note: Forwarding request to 'systemctl enable postgresql.service'. ln -s '/usr/lib/systemd/system/postgresql.service' '/etc/systemd/system/multi-user.target.wants/postgresql.service'
A further question;
I can change the owner of postgresql in following ways;
1) # chown satimis satimis /var/lib/pgsql/
OR 2) sudo su - postgres initdb -E UTF8
$ createuser -s -U postgres $ Enter name of role to add: {{ satimis }}
Would there is any difference?
If there is. After having finished the current test I can start a new test on another hard drive.
Besides: on http://wiki.ovirt.org/wiki/Installing_PostgreSQL_DB Connecting to the database
Run /etc/init.d/postgresql restart (it didn't work)
to be replaced with: service postgresql restart _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
i may have missed this, but why are you trying to change the owner of postgres?

From: Itamar Heim <iheim@redhat.com> To: Stephen Liu <satimis@yahoo.com> Cc: Juan Hernandez <jhernand@redhat.com>; "users@ovirt.org" <users@ovirt.org> Sent: Sunday, November 11, 2012 6:57 PM Subject: Re: [Users] About owner of postgres
- snip -
A further question;
I can change the owner of postgresql in following ways;
1) # chown satimis satimis /var/lib/pgsql/
OR 2) sudo su - postgres initdb -E UTF8
$ createuser -s -U postgres $ Enter name of role to add: {{ satimis }}
Would there is any difference?
If there is. After having finished the current test I can start a new test on another hard drive.
Besides: on http://wiki.ovirt.org/wiki/Installing_PostgreSQL_DB Connecting to the database
Run /etc/init.d/postgresql restart (it didn't work)
to be replaced with: service postgresql restart _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
i may have missed this, but why are you trying to change the owner of postgres?
On my previous posting I was stuck there.
I was stuck here;
# su - postgres -c 'pg_ctl initdb' The files belonging to this database system will be owned by user "postgres". This user must also own the server process.
The database cluster will be initialized with locale en_US.UTF-8. The default database encoding has accordingly been set to UTF8. The default text search configuration will be set to "english".
initdb: directory "/var/lib/pgsql/data" exists but is not empty If you want to create a new database system, either remove or empty the directory "/var/lib/pgsql/data" or run initdb with an argument other than "/var/lib/pgsql/data". pg_ctl: database system initialization failed
pgsql was owned by postgres not by user nor root Stephen L

On 11/11/2012 01:23 PM, Stephen Liu wrote:
From: Itamar Heim <iheim@redhat.com> To: Stephen Liu <satimis@yahoo.com> Cc: Juan Hernandez <jhernand@redhat.com>; "users@ovirt.org" <users@ovirt.org> Sent: Sunday, November 11, 2012 6:57 PM Subject: Re: [Users] About owner of postgres
- snip -
A further question;
I can change the owner of postgresql in following ways;
1) # chown satimis satimis /var/lib/pgsql/
OR 2) sudo su - postgres initdb -E UTF8
$ createuser -s -U postgres $ Enter name of role to add: {{ satimis }}
Would there is any difference?
If there is. After having finished the current test I can start a new test on another hard drive.
Besides: on http://wiki.ovirt.org/wiki/Installing_PostgreSQL_DB Connecting to the database
Run /etc/init.d/postgresql restart (it didn't work)
to be replaced with: service postgresql restart _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
i may have missed this, but why are you trying to change the owner of postgres?
On my previous posting I was stuck there.
I was stuck here;
# su - postgres -c 'pg_ctl initdb' The files belonging to this database system will be owned by user "postgres". This user must also own the server process.
The database cluster will be initialized with locale en_US.UTF-8. The default database encoding has accordingly been set to UTF8. The default text search configuration will be set to "english".
initdb: directory "/var/lib/pgsql/data" exists but is not empty If you want to create a new database system, either remove or empty the directory "/var/lib/pgsql/data" or run initdb with an argument other than "/var/lib/pgsql/data". pg_ctl: database system initialization failed
pgsql was owned by postgres not by user nor root
just thinking - assuming that's the default, we should be able to work with it, or have changing it as part of our build notes.
participants (4)
-
Eli Mesika
-
Itamar Heim
-
Juan Hernandez
-
Stephen Liu