I am managing a linux cluster which has been build on Platform Cluster Manager PCM 1.2.1) from IBM Platform Computing. Unfortunately somebody deteled data files of postgresql from /var/lib directory. I somehow managed to start the postmaster service again, but all the administrative commands of cluster are not not working. like addhost
I dont want to rebuild cluster as it will lead to the loss of much effort which I did on installing certain applications and running them on the cluster.
Please help me !
Last edited by Scott; 02-12-2013 at 06:21 AM..
Reason: Code tags
Help!
SCO Unix 5.05.
A relatievely new system went down on me today. I got the dreaded error:
Out of Space on Device (1/42).
I was able to clear up some space in the /tmp directory, however, when I try to boot, the system prompts me to go into single user mode and I get the... (2 Replies)
Hi guys,
For some reason a client has given us a Sun Netra T1 with Solaris 8 to administer for them. That's always good business. However, the other day we rebooted the machine and to our amazement, after doing the preliminary hardware tests, we got an error messgae saying that /etc/inittab was... (3 Replies)
Hmm, how to ask this without sounding too malicious...
How might one go about causing a disk corruption in OS X specifically or via the command line in UNIX in general?
Doesnt matter the severity of the problem, I just want to scare the person a little, then fix the problem for them.
Any... (1 Reply)
I have been fine adding/removing printers up until this week. Now when I go to add a new remote printer I get "corrupted member file". I go to /etc/lp/member and the byte count on the new printer name is 0. I VI the file and put /dev/null in to make it the correct size and it all looks fine and... (2 Replies)
Hi All,
Has anyone of you connected to a remote PostgreSQL database through a shell/perl script. Can you please let me know the steps involed?
Thanks.
Rahul. (0 Replies)
Hallo Friends,
I have application X running on hpux 11.11 and oracle 9i release 2. I recently had a hardware failure on disk /dev/dsk/c2t0d0
Below is the systemlog file :
root@a7dmc:/var/adm/syslog > /opt/resmon/bin/resdata -R 155713541 -r /storage/events/enclosures/gazemon/0_1_1_0.0.0... (11 Replies)
Hi
I have a small bash script which I want to run on an Amazon EC2 Ubuntu instance for setting up a postgreSQL database:
#!/bin/bash
USERNAME='postgres'
start=$SECONDS
TMP_DIR=/local/test/4g4d
PORT=23456
rm -rf $TMP_DIR/db
mkdir -p $TMP_DIR/
echo "creating database..."... (3 Replies)
Discussion started by: Helveticus
3 Replies
LEARN ABOUT DEBIAN
pg_ctlcluster
PG_CTLCLUSTER(8) Debian PostgreSQL infrastructure PG_CTLCLUSTER(8)NAME
pg_ctlcluster - start/stop/restart/reload a PostgreSQL cluster
SYNOPSIS
pg_ctlcluster [options] cluster-version cluster-name action -- [pg_ctl options]
where action = start|stop|restart|reload|promote
DESCRIPTION
This program controls the postmaster server for a particular cluster. It essentially wraps the pg_ctl(1) command. It determines the cluster
version and data path and calls the right version of pg_ctl with appropriate configuration parameters and paths.
You have to start this program as the user who owns the database cluster or as root.
ACTIONS
start
A log file for this specific cluster is created if it does not exist yet (by default, /var/log/postgresql/postgresql-cluster-
version-cluster-name.log), and a PostreSQL server process (postmaster(1)) is started on it. Exits with 0 on success, with 2 if the
server is already running, and with 1 on other failure conditions.
stop
Stops the postmaster(1) server of the given cluster. By default, "smart" mode is used, which waits until all clients disconnected.
With the --force option the "fast" mode is used which rolls back all active transactions, disconnects clients immediately and thus
shuts down cleanly. If that does not work, shutdown is attempted again in "immediate" mode, which can leave the cluster in an
inconsistent state and thus will lead to a recovery run at the next start. If this still does not help, the postmaster process is
killed. Exits with 0 on success, with 2 if the server is not running, and with 1 on other failure conditions. This mode should only be
used when the machine is about to be shut down.
restart
Stops the server if it is running and starts it (again).
reload
Causes the configuration files to be re-read without a full shutdown of the server.
promote
Commands a running standby server to exit recovery and begin read-write operations.
OPTIONS -o option
Pass given option as command line option to the postmaster process. It is possible to specify -o multiple times. See postmaster(1) for
a description of valid options.
pg_ctl options
Pass given pg_ctl options as command line options to pg_ctl. See pg_ctl(1) for a description of valid options.
FILES
/etc/postgresql/cluster-version/cluster-name/pg_ctl.conf
This configuration file contains cluster specific options to be passed to pg_ctl(1).
SEE ALSO pg_ctl(1), pg_wrapper(1), pg_lsclusters(1), postmaster(1)AUTHOR
Martin Pitt <mpitt@debian.org>
Debian 2012-10-08 PG_CTLCLUSTER(8)