diff --git a/xCAT-client/pods/man8/mysqlsetup.8.pod b/xCAT-client/pods/man8/mysqlsetup.8.pod index d2edb1c80..1f620db0e 100644 --- a/xCAT-client/pods/man8/mysqlsetup.8.pod +++ b/xCAT-client/pods/man8/mysqlsetup.8.pod @@ -40,7 +40,7 @@ Displays verbose messages. =item B<-i|--init> -The init option is used to setup an installed MySQL database so that xCAT can use the database. This involves creating the xcatdb database, the xcatadmin id, dllowing access to the xcatdb database by the Management Node. It customizes the my.cnf configuration file for xcat and starts the MySQL server. It also backs up the current xCAT database and restores it into the newly setup xcatdb MySQL database. It creates the /etc/xcat/cfgloc file to point the xcatd daemon to the MySQL database and restarts the xcatd daemon using the database. +The init option is used to setup an installed MySQL database so that xCAT can use the database. This involves creating the xcatdb database, the xcatadmin id, allowing access to the xcatdb database by the Management Node. It customizes the my.cnf configuration file for xcat and starts the MySQL server. It also backs up the current xCAT database and restores it into the newly setup xcatdb MySQL database. It creates the /etc/xcat/cfgloc file to point the xcatd daemon to the MySQL database and restarts the xcatd daemon using the database. On AIX, it additionally setup the mysql id and group and corrects the permissions in the MySQL install directories. For AIX, you should be using the MySQL rpms available from the xCAT website. For Linux, you should use the MySQL rpms shipped with the OS. You can chose the -f and/or the -o option, to run after the init. =item B<-u|--update> @@ -80,13 +80,13 @@ B - the password for the root id that will be assigned to the =item * -To setup MySQL for xCAT to run on the MySQL xcatd database : +To setup MySQL for xCAT to run on the MySQL xcatdb database : B I<-i> =item * -To add hosts from /tmp/xcat/hostlist that can access the xcatd database in MySQL: +To add hosts from /tmp/xcat/hostlist that can access the xcatdb database in MySQL: B I<-u> I<-f /tmp/xcat/hostlist> diff --git a/xCAT-client/pods/man8/pgsqlsetup.8.pod b/xCAT-client/pods/man8/pgsqlsetup.8.pod new file mode 100644 index 000000000..461c160b9 --- /dev/null +++ b/xCAT-client/pods/man8/pgsqlsetup.8.pod @@ -0,0 +1,69 @@ +=head1 NAME + +B - Sets up the PostgreSQL database for xCAT to use. + +=head1 SYNOPSIS + + +B {B<-h>|B<--help>} + +B {B<-v>|B<--version>} + +B {B<-i>|B<--init>} [-o|--setupODBC] [B<-V>|B<--verbose>] + +B {B<-o>|B<--setupODBC>} [-V|--verbose] + +=head1 DESCRIPTION + +B - Sets up the PostgreSQL database for xCAT to use. The pgsqlsetup script is run on the Management Node as root after the PostgreSQL code has been installed. Before running the init option, the PostgreSQL server should be stopped. The xcatd daemon will be stopped during migration. No xCAT commands should be run during the init process, because we will be migrating the xCAT database to PostgreSQL and restarting the xcatd daemon as well as the PostgreSQL daemon. For full information on all the steps that will be done reference +http://xcat.svn.sourceforge.net/viewvc/xcat/xcat-core/trunk/ +xCAT-client/share/doc/xCAT2SetupPostgresql.pdf. +One password must be supplied for the setup, a password for the xcatadm unix idand the same password for the xcatadm database id. The password will be prompted for interactively. + +=head1 OPTIONS + +=over 6 + +=item B<-h|--help> + +Displays the usage message. + +=item B<-v|--version> + +Displays the release version of the code. + +=item B<-V|--verbose> + +Displays verbose messages. + +=item B<-i|--init> + +The init option is used to setup an installed PostgreSQL database so that xCAT can use the database. This involves creating the xcatdb database, the xcatadm id, allowing access to the xcatdb database by the Management Node. It customizes the postgresql.conf configuration file for xcat and starts the PostgreSQL server. It also backs up the current xCAT database and restores it into the newly setup xcatdb PostgreSQL database. It creates the /etc/xcat/cfgloc file to point the xcatd daemon to the PostgreSQL database and restarts the xcatd daemon using the database. +On AIX, it additionally setup the xcatadm unix id and the postgres id and group. For AIX, you should be using the PostgreSQL rpms available from the xCAT website. For Linux, you should use the PostgreSQL rpms shipped with the OS. You can chose the -o option, to run after the init. +To add additional nodes to access the PostgreSQL server, setup on the Management Node, edit the pg_hba.conf file. + +=item B<-o|--setupODBC> + +This option sets up the ODBC /etc/../odbcinst.ini, /etc/../odbc.ini and the .odbc.ini file in roots home directory will be created and initialized to run off the xcatdb PostgreSQL database. + +=back + +=head1 ENVIRONMENT VARIABLES + +=head1 EXAMPLES + +=over 2 + +=item * + +To setup PostgreSQL for xCAT to run on the PostgreSQL xcatdb database : + +B I<-i> + +=item * + +To setup the ODBC for PostgreSQL xcatdb database access : + +B I<-o> + +=back