release notes | Book: 1.9.5, 1.9.12 (opt, FHS), 2.11 (FHS), 2.12 (FHS), 2.13 (FHS), 2.14 (FHS), | Wiki | Q&A black_bg
Web: Multi-page, Single page | PDF: A4-size, Letter-size | eBook: epub black_bg

Updating the pnfs Software

Move the pnfs databases to a secure backup directory <backupDir>:

[root] # mv /opt/pnfsdb/pnfs/databases  <backupDir>/databases

It is also a good idea to backup the central configuration file /usr/etc/pnfsSetup:

[root] # cp /usr/etc/pnfsSetup <backupDir>/pnfsSetup

Remove the old version of the pnfs software:

[root] # rpm -e pnfs

Now create the empty files with the names of the original database files. Only the names of these files will be used by the new pnfs server. The conversion preformed below will create a new database in the PostgreSQL server for each of the original database files. If admin, data1, ... , dataN are the original database file names, then do

[root] # mkdir /opt/pnfsdb/pnfs/databases
[root] # cd /opt/pnfsdb/pnfs/databases
[root] # touch admin data1 data2 ... dataN

Adjust the central configuration file /usr/etc/pnfsSetup: Change the location of the pnfs software in the line

pnfs=/opt/pnfs.3.1.10/pnfs

to

pnfs=/opt/pnfs

and add a line reading

export dbConnectString="user=pnfsserver"

and change the PostgreSQL username if you did not use our suggestion pnfsserver. If you have set a password when creating the user above, use

export dbConnectString="user=pnfsserver password=<yourPassword>"

Note

Starting with the PostgreSQL version of pnfs the software directory will not depend on the version anymore since RPM makes sure that only one version of pnfs is installed.

Install the PostgreSQL version of pnfs with something like

[root] # rpm -ivh pnfs-postgresql-3.1.10-1.i386.rpm

it contains everything necessary for the conversion as described in the next section