So you created the ZPOOL using the easy way and now your ZPOOL contains devices like “/dev/sdd/blah blah” Well it is super easy to fix. First export the ZPOOL: zpool export NAMEOFZPOOL Then import the ZPOOL by disk id: zpool import -d /dev/disk/by-id NAMEOFZPOOL Finally check the status of the ZPOOL and verify it was […]
Articles Tagged: 14.04
Mount LVM volume on Ubuntu Live
Mounting LVM Disk using Ubuntu livecd Mounting is an easy process to do, provided the filesystem type you are using is supported. What happen when you have an LVM formatted disk, and you need to mount it because the disk cannot be booted and a hell lot of valuable data kept inside?? Do not worry, […]
USB to Serial console device in linux
Start by seeing if the device is detected: $ lsusb Next find the full path of your usb to console cable. $ sudo dmesg | grep tty This will give you full device path. For example: /dev/ttySUSB Next install screen if you do not already have it on your system. $ sudo apt-get install screen […]
How to Setup a Cron Job
Put a shell script in one of these folders: /etc/cron.daily, /etc/cron.hourly, /etc/cron.monthly or /etc/cron.weekly. If these are not enough for you you can add more specific tasks eg. twice a month or every 5 minutes or… go to the terminal and type: $ crontab -e this will open your personal crontab (cron configuration file), the […]
Setup Network Monitoring
You can download the contents of the networkmon.sh script from the downloads section or copy and paste it from here: #Update the “HOSTS” line with as many domains or IP address you would #like this script to monitor, separate each with a space. HOSTS=”DOMAIN1 DOMAIN2 IPADDR3 IPADDR4″ # Modify “COUNT” to adjust the amount of […]
Email Notifications with sSMTP
Start by install ssmtp $ sudo apt-get install ssmtp Next modify /etc/ssmtp/ssmtp.conf file with the following: # Config file for sSMTP sendmail # # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. root=*YOUREMAIL*@gmail.com # The place where the mail goes. The actual machine name is required […]
Install and Configure ZFS
I will try to keep this short and sweet, this process can be pretty lengthy depending on the complexity of the ZFS you want to setup. I will be demonstrating how to setup a RAIDZ2 the equivalent of RAID6. Start by install in the PPA and installing ZFS: $ sudo apt-get install software-properties-common $ sudo […]
Installing VMware Tools
This use to be a very complicated process, this is no longer the case, simply run: sudo apt-get install open-vm-tools
Install fail2ban
This does not even need a “how to” on Ubuntu, the process is terribly simple. $ sudo apt-get install fail2ban That is all it takes to setup fail2ban monitoring on ssh. If you would like more jails/monitors, modification to the config is required.
Install Webmin
Installing Webmin on Ubuntu is extremely easy. Grab the latest version from sourceforge.net, at time of writing the latest is 1.791 $ cd ~ $ wget https://sourceforge.net/projects/webadmin/files/webmin/1.791/webmin_1.791_all.deb $ sudo dpkg -i webmin* $ sudo apt-get -f install Walla! Webmin is now installed and can be accessed at https://server-ip-address:10000