Tag Info

Hot answers tagged

15

I found the particular process via ps aux | grep postgres and ran kill -9 pid. NO! BAD! STEP AWAY FROM THE BACKEND! Seriously -- Don't kill Postgres backends like that -- TERRIBLE things can happen (even with all the stability enhancements that have been made since the 7.x days) which can trash your whole DB, and your developer is quite right to chew you ...


14

voretaq7's answer covers the key points, including the correct way to terminate backends but I'd like to add a little more explanation. kill -9 (ie SIGKILL) should never, ever, ever be your first-choice default. It should be your last resort when the process doesn't respond to its normal shutdown requests and a SIGTERM (kill -15) has had no effect. That's ...


14

As it happens I'm currently going the other direction, coming from a SLES-based office to an Ubuntu one. The difference is quite significant and they do not share much in the way of distro-level commands. The commands that differ: Service start/stop/management Runlevel editing Package management Config-file management (though the "just directly modify ...


13

You should not mount it directly using mount. You need first to run mdadm to assemble the raid array. A command like this should do it: $ mdadm --assemble --run /dev/md0 /dev/sdc1 If it refuses to run the array because it will be degraded, then you can use --force option. This is assuming you don't have /dev/md0 device. Otherwise, you need to change this ...


10

That's actually a SUSE Linux Enterprise Server (SLES) install, which is an Enterprise Linux that comes with a support contract, unlike CentOS. What you're paying extra for is the support. Why would you use it? If you want to run stuff in the cloud but need to run software only 'supported' on certain installs, SLES is usually one of them and EC2-SLES allows ...


9

Assign it an IP like you would any server on the network. Open port 22 (SSH) on any firewalls between the host and the networks that you'd like to access it from. Open port 22 on the SUSE firewall, which I assume is iptables. There's no trickery here. Just open the ports like you would for a physical server. If this doesn't work, then there are probably ...


8

Killing a PostgreSQL client process should be fine. Killing a PostgreSQL daemon process might get you scolded. Since SQL daemons have internal process controls as well, the preferred way is to try using that channel first. See Stop (long) running SQL query in PostgreSQL... from StackOverflow.


7

Why not download OpenSUSE and give that a try? It's the free community "development" edition of SUSE Enterprise, similar to how Fedora and RedHat work together.


7

Novell is still making money, but not for the reasons they were making it back around 2001. NetWare/Open Enterprise Server is a small piece of their "operating system" market, which otherwise contains their SLES and SLED products. GroupWise is still around and the community around it is vibrant. Zen for Desktops (now ZENWorks Configuration Management) is ...


6

Yes, you can use the pam_echo plugin: auth required pam_unix.so auth optional pam_echo.so file=/etc/ssh/password_banner.txt This should produce the pam_echo output after password login. See http://www.linux-pam.org/Linux-PAM-html/sag-pam_echo.html for docs. Edit: You'll also need to make sure you have UsePAM yes in your sshd_config. Replaced password ...


6

Ian Murdock posted a Linux Family tree on his blog a while back. http://ianmurdock.com/linuxfamilytree/ This should give some idea on the history of the major distributions. Generally the closer the relationship the more similar distributions will be.


6

The packages you've named are Kerberos library packages for Red Hat systems. While both distributions use the RPM package format, the similarities end there. Generally, the packages are not compatible between them. It's a particularly bad idea to substitute core system packages from the wrong distribution, as the inevitable problems which arise (such as, ...


5

Why can i use numeric non-existing user with chown, but not with names? Because a username must be resolved to a UID, so if the user does not exist no resolution can occur, whereas a UID is a terminating type (it describes itself without resolution). Technically all chown requests by the operating system must be done against a UID. The username is ...


5

The HP ProLiant DL380 G7 uses a Smart Array P410 RAID controller. That version of SuSE may load either the cciss driver or the newer hpsa driver. Either way, both drivers are well-established and available to the system. Did you create a RAID array/logical drive in the BIOS before booting the system? As the system goes through its initialization sequence, ...


5

OpenSuse is probably the closest to what you're looking for.


5

It sounds like you want to rewrite your logfiles in a specific format. The link has the details on how to tell syslog-ng to do that :)


5

Rebuilding an existing src.rpm is probably the easiest. I would definitely not go the way of configure, make, make install because (a) that doesn't scale, (b) doesn't provide for easy removal / upgrading of the package and (c) is not atomic. Building an RPM is not so hard. There used to be a pretty good beginners tutorial at Linux.com, before they destroyed ...


5

DISCLAIMER: Enabling root login for FTP is a Very Bad Idea for many, many reasons. Edit your vsftpd.conf file, and add the following line: userlist_deny=YES Edit user_list and ftpusers and comment out "root".


4

At my previous job we had a similar problem. We were doing production for planetariums and each frame was 64 MegaPixels. Lots of large images. These would be processed for each theater in a very aggressive read operation over a cluster of computers. The server in this case had a similar storage setup. Multiple external direct attached RAID arrays. Each ...


4

I would be so much more included to buy more disks and RAID 10 them. I've had horrendous problems with hundreds of 1TB FATA (fibre-attached SATA) disks we bought a while back, these are £1k each and I'm losing 5% per month! Basically they're just not designed for a 24x7 duty cycle and that you may have the same issues is why I'd recommend R10. RAID6 is a ...


4

just use userdel <username>. if you also want to remove the home directory and mail spool of the user use userdel -r <username>.


4

Zypper hides in /usr/bin. If pdftk is in one of the configured repositories: zypper in pdftk will install the package. If it isn't, then you have a couple of options. Option 1: Skip Zypper entirely Get an RPM of the package, and install it with rpm, not zypper. Option 2: Create a YUM repository The more robust method, as it would allow the same ...


4

http://en.opensuse.org/openSUSE:One_Click_Install You use a program called YAST to install software on OpenSUSE. It's really very easy to use. Questions this simple are best handled by googling first. I googled "Software manager suse" to determine what they call theirs. Ubuntu's synaptic frontend to apt-get is my favorite software manager, but I'm betting ...


4

All you need is the private part of your keypair. If you didn't set a password when creating the keypair, you don't need to enter one when connecting to your instance. You just need to use the private key when connecting via ssh. On the command-line: ssh -i privatekey.pem user@myserver.example.com If you're using a GUI like Putty, assign the keyfile ...


4

Yes, just mount /dirs parent directory somewhere else with mount --bind: # mkdir /mnt/tmp # mount --bind / /mnt/tmp # cd /mnt/tmp/dir Then inspect the state of the directory. When done: # umount /mnt/tmp # rmdir /mnt/tmp


4

An HP Proliant DL 380 has an on-board RAID controller that requires a specific driver module to use it, namely the HP/Compaq SmartArray cciss driver. You need to load that before the OS can see the drives; if you have access to an emergency console during installation, run the following: modprobe cciss dmesg | tail


4

You need to change your paths in: /etc/fstab /boot/grub/menu.lst


4

You can use openssl to generate pre encrypted password strings to use with the -p option to useradd echo "P4sSw0rD" | openssl passwd -1 -stdin $1$Jxmpx1Da$Y8MzBctIyDW8/7pFPbNWD1 The -1 says to generate a MD5 password hash. The salt is automatically generated. You can then use useradd -d /home/dummy -g idiots -m -p $(echo "P4sSw0rD" | openssl passwd -1 ...


4

I've recently seen this problem as well and it appears to be isolated to a change made in the 32-bit Oracle JVM between Java 6 and 7. On Linux, running the 32-bit Java 7 VM with strace shows the following system call when ServerSocket.accept() is invoked without having set SO_TIMEOUT: 32369 poll([{fd=5, events=POLLIN|POLLERR}], 1, 4294967295 <unfinished ...



Only top voted, non community-wiki answers of a minimum length are eligible