wtorek, 28 kwietnia 2015

Panorama filtrów Linux

http://mediologia.pl/filtry-w-linuksie/4-2-panorama-filtrow-linux

piątek, 10 kwietnia 2015

Mount /var/log without restart server


Here is the thing I thought :
$mkdir /home/log
$rsync -a /var/log /home/log
$mount --bind /home/log /var/log
$/etc/init.d/rsyslof/restart
BUT : I know that some services use file descriptors, so they'll continue to use /var/log or inodes. Thanks
ALE: Wiem, że niektóre usługi użyciu deskryptorów plików, więc będą nadal korzystać z katalogu / var / log i-węzłów. Dzięki Ci

Debian add disk without reboot

Rescan the SCSI Bus to Add a SCSI Device Without rebooting the VM

A rescan can be issued by typing the following command:
echo "- - -" > /sys/class/scsi_host/host#/scan
fdisk -l
tail -f /var/log/message

How Do I Delete a Single Device Called /dev/sdc?

In addition to re-scanning the entire bus, a specific device can be added or existing device deleted using the following command:
# echo 1 > /sys/block/devName/device/delete
# echo 1 > /sys/block/sdc/device/delete

Create a Mount Point And Update /etc/fstab

# mkdir /disk3
Open /etc/fstab file, enter:
# vi /etc/fstab
Append as follows:
/dev/sdc3               /disk3           ext3    defaults        1 2
Save and close the file.

Optional Task: Label the partition

You can label the partition using e2label. For example, if you want to label the new partition /backupDisk, enter
# e2label /dev/sdc1 /backupDisk