Monday, December 15, 2014

Ubuntu server 14.04 - Auto mount network Drive Issue

Recently, due to maintanance upgrade I have to reboot my Server and notice that it stuck at boot screen waiting for external Network drive to mount. Previous article ubuntu-server-auto-mount-iscsi-storage The message is "the disk drive for /backupdata is not ready or not presented". 2 things I can do: Remount network drive with UUID instead of /dev/blah..blah in /etc/fstab #> blkid /dev/mapper/datavg-backupdata:...

Thursday, December 11, 2014

Backuppc add administrator account

Adding a CGI Administrator as root privilege open up /etc/backuppc/config.pl and go to line 2020 $Conf{CgiAdminUserGroup} = 'backuppc';$Conf{CgiAdminUsers} = 'backuppc, admin'; Reload Backuppc service service backuppc reload Adding Administrator to htpasswd for Apache basic authentication htpasswd /etc/backuppc/htpasswd admin Restart Apache service service apache2 restart http://wiki.zm...

Tuesday, December 9, 2014

Ubuntu server auto mount iSCSi storage

Install Open-iSCSI initiator apt-get install open-iscsi configuration file could be located at /etc/iscsi/iscsid.conf or ~/.iscsid.conf. node.startup = automaticnode.session.auth.username = MY-ISCSI-USERnode.session.auth.password = MY-ISCSI-PASSWORDdiscovery.sendtargets.auth.username = MY-ISCSI-USERdiscovery.sendtargets.auth.password = MY-ISCSI-PASSWORD Discover iSCSi Target iscsiadm -m...

Monday, December 8, 2014

Bonding Network Card Ubuntu 14.04

Make sure your Cisco Switch support 802.3ad, then group 2 interface ports together Router> enableRouter# configure terminalRouter(config)# interface port-channel 1Router(config-if)# interface g1/0/24Router(config-if)# channel-group 1 mode activeRouter(config-if)# exitRouter(config)# interface g1/0/23Router(config-if)# channel-group 1 mode activeRouter(config-if)# endRouter# copy run start Bonding...

Thursday, December 4, 2014

Ubuntu - 3 tricks to copy DVD into iso file

Built in command cat /dev/sr0 > /home/Documents/mydisk.isodd if=/dev/sr0 of=/home/Documents/mydisk.iso If both cat, and dd not work because of '/dev/sr0': Input/output error If I run dmesg, I recieve a lot of Buffer I/O error on device sr0 Try ddrescue in Ubuntu the package is gddrescue sudo apt-get install gddrescueddrescue --direct --block-size=2048 --no-split /dev/sr0 /home/Documents/mydisk.iso Now...

Tuesday, December 2, 2014

Linux find command for files or folders older than .....

Find files and folders in current working directory older than 60 days find ./* -maxdepth 0 -mtime +60 Find only folders in /mnt/media -> child folder -> grandchild exclude these folder notme, dtran, xXXx older than 3 years find /mnt/media -maxdepth 2 -mtime +1095 -type d -not \( -path "./notme*" -o -path "./dtran*" -o -path "./xXXx*" \) > ~/Folder2Backup.txt Remove all files that...

Apple flush DNS cache

Open Terminal and run this command dscacheutil -flushcache TTL and DNS cache Time to Live (TTL) is used to renew the DNS records on all the DNS servers around the world to the set TTL value.  The units used are seconds. The older common TTL value for DNS was 86400 seconds, which is 24 hours. A TTL value of 86400 would mean that, if a DNS record was changed on the authoritative name server,...