Tester un disque en ecriture avec DD

dd bs=1M count=2048 if=/dev/zero of=test conv=fdatasync

Install kernel from rpm on debian – OpenVZ Wiki

install apt-get install alien fakeroot fakeroot alien -k kernel-2.6.27-chistyakov.1.x86_64.rpm sudo dpkg -i kernel_2.6.27-chistyakov.1_amd64.deb sudo update-initramfs -c -k 2.6.27-chistyakov.1 sudo update-grub uninstall sudo dpkg -r kernel sudo rm -fr /lib/modules/2.6.27-chistyakov.1 sudo update-initramfs -d -k 2.6.27-chistyakov.1 sudo update-grub viaInstall kernel from rpm on debian – OpenVZ Wiki.

yum update spawns error messages

A-ha… you’re a little lucky here……. all these three types of error can be resolved by any of the two commands: Code: joseph@xen:$ sudo yum clean all joseph@xen:$ sudo yum clean metadata It’s possible that it’s the error reported fixed here in RHEL already. viayum update spawns error messages.

monter dossier d’un hote openvz sur un ve

Sous openvz l’on a besoin par moment de monter un dossier de l’hote sur les vps pour par exemple un dossier de sauvegarde ou de template pour des applications . Dans mon cas avec des ve debian voici la syntaxe que j’ai utilisé, creation d’un fichier /etc/vz/conf/vps.mount  #!/bin/bash source /etc/vz/vz.conf source ${VE_CONFFILE} mount –bind -n […]

Protection asterisk avec fail2ban « Admin6

Protection asterisk avec fail2ban Dans un précédent article j’ai présenté comment protéger son serveur des attaques bruteforce avec l’aide de fail2ban. Comme décrit dans cet article de nos jours, il est très important de se protéger de ce type d’attaque et c’est pourquoi dans ce billet je vais vous montrer comment protéger un serveur asterisk […]

Mdadm – How can i destroy or delete an array : Memory, Storage, Backup and Filesystems

So, you created an array and you messed up something? Now you would like to delete it? Please note: all data will be lost with this operation! 1. Stop the array Code: Select all # mdadm -S /dev/md0 2. Remove the disks from the array (in my example md0 is a raid5 array with 3 […]

APC + petit PC

<span class="html">Want to avoid segmentation with  apc.shm_segments?If your linux server limits the shared memory block  size and you're forced to use apc.shm_segments instead, change the  setting by using (here is 512M but change it as you like): # sysctl -w kernel.shmmax=536870912 (but if you want the change to be permanent after a restart you would have to add […]