Expand an EXT4, on a SCSI device
If you have vmware ESXi or Microsoft Hyper-v, you can expand a disk, from the hypervisor console, very simple. But afterwards the partition the servers is not expand.It is always a good idea to...
Kenneth Qvistgaard Dalbjerg, IT Konsulent i århus
If you have vmware ESXi or Microsoft Hyper-v, you can expand a disk, from the hypervisor console, very simple. But afterwards the partition the servers is not expand.It is always a good idea to...
If you have a host with multiple IP address on it, and you need to change witch IP address it present it with on the Internet, you can change the Default IP address, by...
Rescan for new disk with this command echo “- – -” > /sys/class/scsi_host/host#/scan
Errors like this: /opt/CA/ABuagent/uagentsetup: 74: [: -e: unexpected operator /opt/CA/ABcmagt/caagent: 60: cd: can’t cd to /nls /opt/CA/ABcmagt/caagent: 60: cd: can’t cd to /nls /opt/CA/ABcmagt/caagent: 60: cd: can’t cd to /nls /opt/CA/ABcmagt/aglang_setup: 60: [: -e:...
To show the queue of postfix, just run postqueue -p But if you will like to show the total number of mails in the postfix queue, you can run this streng.
1 |
postqueue -p | tail -n 1 | cut -d' ' -f5 |
Here is a guide to compile a kernel 3.6.X kernel for hyper-v the debian way.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
sudo apt-get install git-core kernel-package fakeroot build-essential ncurses-dev #Download the latest kernel cd /usr/src sudo wget --continue http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.6.6.tar.bz2 sudo tar jxvf linux-3.6.6.tar.bz2 cd linux-3.6.6 #Copy kernel config to the new source sudo cp /boot/config-`uname -r` ./.config #Choice what you want #Hyper-V is locate at: Device Drivers, Microsoft Hyper-V guest support sudo make menuconfig #Compile the kernel sudo make-kpkg clean sudo fakeroot make-kpkg --initrd --append-to-version=-hyperv01 kernel_image kernel_headers cd .. sudo dpkg -i linux-image-3.6.* sudo init 6 |
If you want to find any hidden files (Files with a dot first), you can use this command:
1 |
find ./ -name '.*' |
You can change ./ to be /var/www to find any hidden files in /var/www
If you have a shellscript thats run okay from shell, but not will running from cron, run this command (This is what it looks like when cron run it)
1 |
/bin/sh -c "(export PATH=/usr/bin:/bin; /usr/local/bin/shellscript.sh)" |
This command will kill all instance from
1 |
ps aux | grep samba |
1 |
kill $(ps aux | grep 'samba' | awk '{print $2}') |
Sidste kommentar