It is currently Sat Dec 21, 2024 1:49 pm

News News of Lik`s forum

Site map of Lik`s forum » Forum : Lik`s forum

cPanel/WHM/OpenVZ/Xen/Linux/IPMI Lik`s forum

SED $HOME page

Read more : SED $HOME page | Views : 2231 | Replies : 0 | Forum : Interesting links


Xen dom0 not enough free loop devices starting a new domU

Xen dom0 not enough free loop devices when trying to start a new domU or when trying to "mount -o loop" from the cmdline

Linux "loop" module has max 8 loop devices (/dev/loop*) as a default. Every Xen "file:" backed domU disk uses one loop device in dom0, and if you do "mount -o loop disk.img /mnt" in dom0 that uses a loop device aswell.

You can check all the loop devices in use by ...
Read more : Xen dom0 not enough free loop devices starting a new domU | Views : 4034 | Replies : 0 | Forum : Xen related


How to install XEN of higher version than 3.3.0 on CentOS5.x

How to install XEN of higher version than 3.3.0 on CentOS5.x

In my case basic OS CentOS 5.4 x86_64 was used.
Browse to http://www.gitco.de/repo/ and grab the needed repo file for your arch and put it into /etc/yum.repos.d. (in this case x86_64).

In case a repo file you need doesn't exist but the folder with this version exists on this repository, then you may simply download any of repo files and change its entry.
Suppose ...
Read more : How to install XEN of higher version than 3.3.0 on CentOS5.x | Views : 4077 | Replies : 0 | Forum : Xen related


Supermicro IPMIview utility

Good alternative to the native built-in GUI (if any) and CLI interfaces is SuperMicro IPMIview utility, which you can download from the official SuperMicro site:
Linux: IPMIView_V2.10.2_bundleJRE_Linux_x64_20150203
IPMIview user`s guide:
IPMIView20.pdf version 2.9
Read more : Supermicro IPMIview utility | Views : 4869 | Replies : 0 | Forum : Intelligent Platform Management Interface (IPMI)


IPMI notes (very RAW edition)

IPMI on linux-based server

Running IPMI on Linux
What is IPMI?

IPMI is standard which allows remote server management, primarily developed by Intel. IPMI cards, known as Baseboard Management Cards (BMCs) are primitive computers in their own right and are operational all the time, so long as the server has a power source. The server itself does not need to be powered on, or the operating system operational for the BMC to work, it just ...
Read more : IPMI notes (very RAW edition) | Views : 7701 | Replies : 0 | Forum : Intelligent Platform Management Interface (IPMI)


How to re-install OpenSSH on FreeBSD with CP from the ports

In case you need to perform re-installation of OpenSSH on the server with OS FreeBSD and cPanel you may do it by installing it from the ports. Just do the following:
Code: Select all
ln -s /etc/rc.d/ /usr/etc/rc.d
cd /usr/ports/security/openssh-portable
make PREFIX=/usr ETCSSH=/etc/ssh install


To trace the work of the SSH daemon you may run in console of the server:

Code: Select all
/usr/sbin/sshd -ddd -p 65535

After that you will need to connect to the server using port ...
Read more : How to re-install OpenSSH on FreeBSD with CP from the ports | Views : 4067 | Replies : 0 | Forum : FreeBSD specific


Download RPM package using yum without installing it

You need to install plugin called yum-downloadonly. This plugin adds a --downloadonly flag to yum so that yum will only download the packages and not install/update them. Following options supported by this plugin:
--downloadonly : don't update, just download a rpm file
--downloaddir=/path/to/dir : specifies an alternate directory to store packages such as /tmp

Code: Select all
yum install yum-downloadonly

Code: Select all
yum update -y --downloadonly


Method # 2: yum-utils.noarch Package

yum-utils is a collection of utilities and examples for ...
Read more : Download RPM package using yum without installing it | Views : 4259 | Replies : 0 | Forum : Linux specific


Create/Add swap file

Use dd command to create swapfile. Next you need to use mkswap command to set up a Linux swap area on a device or in a file.

1. Use 'fallocate' to create swapfile of desired size:
Code: Select all
fallocate -l 2G /swapfile

Or use 'dd' create 2048MB swap file (1024 * 2048MB = 2097152 block size):
Code: Select all
dd if=/dev/zero of=/swapfile bs=1024 count=2097152

2. Adjust permissions
Code: Select all
chmod 600 /swapfile

3. Set up a Linux swap area:
Code: Select all
mkswap /swapfile

4. ...
Read more : Create/Add swap file | Views : 2846 | Replies : 0 | Forum : Linux specific


Reset root password (linux case)

The first thing to try is to boot into single user mode. This may not work, because your system might be configured to still ask for a root password to get to single user mode.
If that's the case, use another trick that replaces init with /bin/bash.

First, try single user. If you don't see either a LILO or GRUB boot screen, try hitting CTRL-X to get one (also ESC key can be used).

If ...
Read more : Reset root password (linux case) | Views : 6996 | Replies : 1 | Forum : Linux specific


BigDump php script

Staggered MySQL Dump Importer

Staggered import of large and very large MySQL Dumps (like phpMyAdmin 2.x Dumps) even through the web servers with hard runtime limit and those in safe mode. The script executes only a small part of the huge dump and restarts itself. The next session starts where the last was stopped.

Download BigDump script
Read more : BigDump php script | Views : 7661 | Replies : 1 | Forum : Server Side Actions


 

Login


Statistics

Total posts 505 • Total topics 442 • Total members 22

cron