dd if=/dev/sda of=/dev/sdb bs=512 conv=noerror,sync
Monthly Archives: January 2015
bmon monitor network traffic
bmon is a monitoring and debugging tool to capture networking related statistics and prepare them visually in a human friendly way. It features various output methods including an interactive curses user interface and a programmable text output for scripting.
iftop vs jnettop
jnettop is more verbose than iftop, it shows active server process which is using connection, you can switch between packets per second or throughput speed.
sudo yum install jnettop
cPanel install installatron
wget http://data.installatron.com/installatron-plugin.sh
chmod +x installatron-plugin.sh
./installatron-plugin.sh -f
OpenManage on Fedora
vi /etc/yum.repos.d/dell-omsa-repository.repo
mirrorlist=http://linux.dell.com/repo/hardware/latest/mirrors.cgi?osname=el6&basearch=$basearch&native=1&sys_ven_id=$sys_ven_id
for CLI install srvadmin-omcommon and srvadmin-omacore
workaround for Fedora:
touch /opt/dell/srvadmin/lib64/openmanage/IGNORE_GENERATION
test:
/opt/dell/srvadmin/bin/omreport chassis info
openvz find ploop based VPS
ls -la /vz/private/*/root.hdd/DiskDescriptor.xml
fsck on a ploop container
vzctl stop 100
ploop mount /vz/private/100/root.hdd/DiskDescriptor.xml
fdisk -l /dev/ploop100p1
e2fsck /dev/ploop100p1
ploop umount -d /dev/ploo100p1
more verbose vzctl
vzctl –verbose –verbose –verbose start 100
faster rsync encryption
rsync -aHAXxv --numeric-ids --delete --progress -e "ssh -T -c arcfour -o Compression=no -x" [source_dir] [dest_host:/dest_dir]
a: archive mode – rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
H: preserves hard-links
A: preserves ACLs
X: preserves extended attributes
x: don’t cross file-system boundaries
v: increase verbosity
–numeric-ds: don’t map uid/gid values by user/group name
–delete: delete extraneous files from dest dirs (differential clean-up during sync)
–progress: show progress during transfer
centos install racadm
wget -q -O – http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
yum –disablerepo=”*” –enablerepo=”dell-omsa-indep” list available | less
fedora 21 PyYAML update failed
sudo cp -a /usr/lib64/python2.7/site-packages /usr/lib64/python2.7/site-packages___
sudo rm -rf /usr/lib64/python2.7/site-packages/PyYAML-3.11-py2.7.egg-info*
sudo yum update
test server network from different location
yum install python-pip
pip install speedtest-cli
speedtest-cli
[root@srv ~]# speedtest-cli
Retrieving speedtest.net configuration…
Retrieving speedtest.net server list…
Testing from Uab Duomenu Centras (5.199.164.77)…
Selecting best server based on latency…
Hosted by Siauliai University (Siauliai) [43.38 km]: 11.836 ms
Testing download speed………………………………….
Download: 360.77 Mbits/s
Testing upload speed…………………………………………..
Upload: 31.33 Mbits/s
speedtest-cli --list | grep -i Russian | less
speedtest-cli --server=2162
mount HFS partition Ubuntu
apt-get install hfsprogs
mount -t hfsplus -o remount,force,rw /dev/sda1 /mnt/hfs
for HFS+ use: mount -o remount,rw,force
mysql run shell command
mysql> \! cat /etc/hosts
munin Can’t locate RRDs.pm in @INC (@INC contains
yum reinstall rrdtool perl-rrdtool rrdtool-devel