If you have 4 disks, it means are in raid 10 mode.
Monthly Archives: November 2014
linux find bit version from binary
file /sbin/init
if systemd:
file /usr/bin/systemctl
sshd error: could not load host key
rm -rf /etc/ssh/ssh*key
systemctl restart sshd
for Debian OS:
rm -rf /etc/ssh/ssh*key
dpkg-reconfigure openssh-server
find exotic vps provider by country
https://www.exoticvps.com/
rpmdb: PANIC: fatal region error detected
rm -f /var/lib/rpm/__db*
db_verify /var/lib/rpm/Packages
rpm –rebuilddb
yum clean all
yum update
OPENNEBULA
Powerful and Innovative: Most advanced and innovative enterprise-class functionality for the management of virtualized data centers to build private and hybrid clouds.
linux date format add day
date -d “+10 days”
bash blink text
echo -e “Normal \e[5mBlink \e[25mNormal”
bash colors cheat
Black 0;30 Dark Gray 1;30
Blue 0;34 Light Blue 1;34
Green 0;32 Light Green 1;32
Cyan 0;36 Light Cyan 1;36
Red 0;31 Light Red 1;31
Purple 0;35 Light Purple 1;35
Brown/Orange 0;33 Yellow 1;33
Light Gray 0;37 White 1;37
echo -e “\e[;31mI love \e[;1;32mcolors\e[0m \e[;0;34m so \e[;1;30m much. \e[0m”
\e[0m -> No Color
You can also use tput:
echo “$(tput setaf 1)Red text $(tput setab 7)and white background$(tput sgr 0)”
Foreground & background color commands:
tput setab [1-7] # Set the background colour using ANSI escape
tput setaf [1-7] # Set the foreground colour using ANSI escape
Colors are as follows:
Num Colour #define R G B
0 black COLOR_BLACK 0,0,0
1 red COLOR_RED 1,0,0
2 green COLOR_GREEN 0,1,0
3 yellow COLOR_YELLOW 1,1,0
4 blue COLOR_BLUE 0,0,1
5 magenta COLOR_MAGENTA 1,0,1
6 cyan COLOR_CYAN 0,1,1
7 white COLOR_WHITE 1,1,1
unable assign IPs to nameserver cpanel
cat /var/cpanel/nameserverips.yaml
/usr/local/cpanel/scripts/nameserverup
cat /etc/nameserverips
cpanel updating DNS zones TTL
sed -i -e ‘s/14400/300/g’ -e ‘s/86400/300/g’ -e “s/[0-9]\{10\}/`date +%Y%m%d%H`/g”
/etc/init.d/named restart
increasing size XFS file system
xfs_growfs /mount/point -D size
linux change /tmp location
Its easy. Set new env variable, like this:
export TEMPDIR=/new/temp/dir
rsync: mkstemp “/your/path” failed: No space left on device (28) on XFS
XFS can’t create inodes in newly added space after xfs_growfs which could have a z-stream request if needed, you should remount XFS partition
retry timeout exceeded exim
exim_dumpdb /var/spool/exim retry | grep some@mail
R:some@mail:
exim_fixdb /var/spool/exim retry
R:some@mail:
D
q