Manually recreate RAID1 with file backup of CENTOS
Boot new machine with CENTOS LiveCD. Creating swap, boot and root partition fdisk /dev/sda # create swap n p 1 enter +16G # create boot
Home » Blog
Boot new machine with CENTOS LiveCD. Creating swap, boot and root partition fdisk /dev/sda # create swap n p 1 enter +16G # create boot
# stop iptables /etc/init.d/iptables stop # remove all rules iptables -F iptables -X iptables -t nat -F iptables -t nat -X iptables -t mangle -F
# if you have EPEL in your yum repo: yum -y install systester-cli # else install from source: yum -y groupinstall ‘Development Tools’ yum -y
time dd if=/dev/zero of=/shopcvs/tmp/test.img bs=1M count=2k conv=fdatasync 2048+0 records in 2048+0 records out 2147483648 bytes (2.1 GB) copied, 2.71921 s, 790 MB/s real 0m2.840s user
You should try to change the IO scheduler to deadline or noop, and test for a couple of days. The default CFQ scheduler is performing
echo deadline > /sys/block/sda/queue/scheduler To activate it after booting: echo “echo deadline > /sys/block/sda/queue/scheduler” >> /etc/rc.local
dmidecode –type memory # dmidecode 2.11 SMBIOS 2.7 present. Handle 0x1000, DMI type 16, 23 bytes Physical Memory Array Location: System Board Or Motherboard Use:
vi /root/.bash_profile Add: alias cp=’cp -i’
cd /root && yum -y groupinstall “Development Tools” && wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/ioping/ioping-0.8.tar.gz && tar zxvf ioping-0.8.tar.gz && cd ioping-0.8 && make && make install Test on