Wipro IFHRMS

அனைத்து அரசு அலுவலகங்களிலும் IFHRMS என்ற செயலியின் மூலம் பணம் சார்ந்த பட்டியல்கள் தயாரிக்கப்படுகிறது. ஆனால் இம்மாதம் மார்ச் மாதத்தில் இருந்த...

10 UNIX Command Line Mistakes

userdel Command

The file /etc/deluser.conf was configured to remove the home directory (it was done by previous sys admin and it was my first day at work) and mail spool of the user to be removed. I just wanted to remove the user account and I end up deleting everything (note -r was activated via deluser.conf):
userdel foo

Rebooted Solaris Box

On Linux killall command kill processes by name (killall httpd). On Solaris it kill all active processes. As root I killed all process, this was our main Oracle db box:
killall process-name

Destroyed named.conf

I wanted to append a new zone to /var/named/chroot/etc/named.conf file., but end up running:
./mkzone example.com > /var/named/chroot/etc/named.conf

Destroyed Working Backups with Tar and Rsync (personal backups)

I had only one backup copy of my QT project and I just wanted to get a directory called functions. I end up deleting entire backup (note -c switch instead of -x):
cd /mnt/bacupusbharddisk
tar -zcvf project.tar.gz functions

I had no backup. Similarly I end up running rsync command and deleted all new files by overwriting files from backup set (now I’ve switched to rsnapshot)
rsync -av -delete /dest /src
Again, I had no backup.

Deleted Apache DocumentRoot

I had sym links for my web server docroot (/home/httpd/http was symlinked to /www). I forgot about symlink issue. To save disk space, I ran rm -rf on http directory. Luckily, I had full working backup set.

Accidentally Changed Hostname and Triggered False Alarm

Accidentally changed the current hostname (I wanted to see current hostname settings) for one of our cluster node. Within minutes I received an alert message on both mobile and email.
hostname foo.example.com

Public Network Interface Shutdown

I wanted to shutdown VPN interface eth0, but ended up shutting down eth1 while I was logged in via SSH:
ifconfig eth1 down

Firewall Lockdown

I made changes to sshd_config and changed the ssh port number from 22 to 1022, but failed to update firewall rules. After a quick kernel upgrade, I had rebooted the box. I had to call remote data center tech to reset firewall settings. (now I use firewall reset script to avoid lockdowns).

Typing UNIX Commands on Wrong Box

I wanted to shutdown my local Fedora desktop system, but I issued halt on remote server (I was logged into remote box via SSH):
halt
service httpd stop

Wrong CNAME DNS Entry

Created a wrong DNS CNAME entry in example.com zone file. The end result - a few visitors went to /dev/null:
echo 'foo 86400 IN CNAME lb0.example.com' >> example.com && rndc reload

Failed To Update Postfix RBL Configuration

In 2006 ORDB went out of operation. But, I failed to update my Postfix RBL settings. One day ORDB was re-activated and it was returning every IP address queried as being on its blacklist. The end result was a disaster.

Conclusion

All men make mistakes, but only wise men learn from their mistakes -- Winston Churchill.
From all those mistakes I’ve learnt that:
  1. Backup = ( Full + Removable tapes (or media) + Offline + Offsite + Tested )
  2. The clear choice for preserving all data of UNIX file systems is dump, which is only tool that guaranties recovery under all conditions. (see Torture-testing Backup and Archive Programs paper).
  3. Never use rsync with single backup directory. Create a snapshots using rsync or rsnapshots.
  4. Use CVS to store configuration files.
  5. Wait and read command line again before hitting the dam [Enter] key.
  6. Use your well tested perl / shell scripts and open source configuration management software such as puppet, Cfengine or Chef to configure all servers. This also applies to day today jobs such as creating the users and so on.
Mistakes are the inevitable, so did you made any mistakes that have caused some sort of downtime? Please add them into the comments below.

No comments:

Post a Comment

plz visit tv-actors.blogspot.com

Popular Posts

My Famous Blog List

  • Beware of Fake applications & Fake Whatsapp groups - *Caution Notice* *Attention to all Customers and the General Public* Dear Client, It has come to our notice that some unknown individuals have been fra...
  • top 10 female social media influencers in india - *Larissa D'Sa* *Travel Influencer* *7 lakh Instagram followers* *593K YouTube subscribers* [image: Larissa D'Sa] *IMAGE: Travel entrepreneur Larissa D'...
  • Old Games in Tamilnadu - *1.Kabaddi* [image: istockphoto-1790754800-612x612.jpg]Tamil Nadu is home to the popular team sport of Kabaddi. Kabaddi is the state sport of Tamil Na...
  • IFHRMS - *Danger:*Due to inactivity, your session has expired. Before you continue, make sure your entered data is saved locally.
  • Velliangiri herbals - வெள்ளியங்கிரி ஹெர்பல்ஸ் வழங்கும் இயற்கை முறையில் விளைந்த, வீட்டு முறையில் தயாரிக்கப்பட்ட புரத சத்து நிறைந்த ❤️முருங்கை இலை,கருவேப்பிலை,குறு ...
  • Plots for sale - 5 வருசத்துல 4 மடங்கு விலை ! இப்ப இடம் வாங்கலைன்னா..... எப்ப வாங்க போறீங்க? உங்க பட்ஜெட்டில் ஒரு கனவு வீடு சாத்தியமா ? சாத்தியம் இனி வாடகை வீட்டுக்கு By...
  • INTERNSHIPS - GOVERNMENT: https://www.niti.gov.in/internship https://internship.mea.gov.in/internship https://dpiit.gov.in/internship-scheme-0 https://www.shar.gov.in/...
  • shopping links - vikas nighties shopping links https://www.meesho.com/vikas-cotton-nighties/p/zev2g?srsltid=AfmBOopSIFB5et-WM3zDmotr8kmL-hy-QcAggELxCe9THJKZXrnblGRr http...
  • News - நாள்- 29-07-2024 வருகின்ற திங்கட்கிழமை நேரம் -காலை 11மணி இடம்..திருமங்கலம் தெற்குதெரு அகமுடையார் சங்க மஹால்..... தேவரின அரசாணை சம்பந்தமாக ஆலோசனை கூட்ட...
  • Site Map - - Contact Me (1) - Links (1) - Photo (1) - prize from KAT (1) - Profile (1) - videos (1) - we need lands (1)
  • Election 2024 - [image: ELECTION DATES] [image: SUN TV]
  • Contact Us - Sevajothi Trust 45, TEACHERS QUATERS MELUR - 625106 MADURAI DT TAMILNADU MOBILE: 7708661011, WHATSAPP: 7708661011, https://sevajothi.blogspot.co...
  • Exclusive market updates - Inbox Search for all messages with label Inbox Remove label Inbox from this conversation data collections Search for all messages with label data collect...
  • Free food - Free food by MJM Chairland at Sivagangai Velayithasamy koil function
  • Wedding Seervarisai Thattu decoration models - [image: sevajothi-plate-decorators] [image: sevajothi-plate-decorators] [image: sevajothi-plate-decorators] [image: sevajothi-plate-decorators] [imag...
  • Links - https://pmsreal-estate.blogspot.com/ http://designersiva.blogspot.com/ http://kottapathar.blogspot.com/ http://mjmchairland.blogspot.com/ http://sevaj...
  • links ad content - www.standardtips.com = links URL = www.standardtips.com Title = All tips and tricks for your complete life. Description = Get the complete tips fo...
  • IFHRMS Wipro Error - அனைத்து அரசு அலுவலகங்களிலும் IFHRMS என்ற செயலியின் மூலம் பணம் சார்ந்த பட்டியல்கள் தயாரிக்கப்படுகிறது. ஆனால் இம்மாதம் மார்ச் மாதத்தில் இருந்து IFHRMS செய...
  • IFHRMS Wipro Error - அனைத்து அரசு அலுவலகங்களிலும் IFHRMS என்ற செயலியின் மூலம் பணம் சார்ந்த பட்டியல்கள் தயாரிக்கப்படுகிறது. ஆனால் இம்மாதம் மார்ச் மாதத்தில் இருந்து IFHRMS செய...
  • Joint Venture (JV) Deal - What is a Joint Venture (JV) Deal? Off late demand for joint ventures in real estate has been increasing exponentially. In real estate, JV means that a ...
  • links - *Education**:* http://bedtti.blogspot.com/ http://indiansportsgames.blogspot.in/ http://interfacetrivandrum.blogspot.in/ http://deoceo.blogspot.com/ ...
  • First night decoration in madurai - மதுரையில் shanthi mukurtham decorations முதலிரவு அலங்காரம் .. மறக்க முடியாத அலங்காரம் செயற்கை மற்றும் இயற்கை பூ அலங்காரம் மலர் பாதையில் நடந்து கட்டில் போகல...
  • Marriage links - bride groom background verification online https://sevajothitechnologies.blogspot.com/ MJM Samiyana Chair Land Hiring Services - Decorators in Sivagang...
  • social links - https://gtechindia.org/member/softland-india-ltd https://www.tradeindia.com/softland-india-ltd-29664352/ https://in.linkedin.com/company/softland-india...
  • Contact VHM - Vivekananda Health Mission 136,B Kamarajar salai, Madurai-625009. Tamilnadu - Phone 8056917878 ,9344121976, 9842132288, 9842132283. - Email sol...
  • ads links - https://tnpsc-ssc-rrb-tet-trb-bsrb.blogspot.com/ https://trivandrumtomorrow.blogspot.com/ https://womens-trust.blogspot.com/ https://madurai-kamaraj-univer...
  • ELDERS HOME - ELDERS HOME IN MADURAI! Old age home in mela anuppanadi(near Thepakulam) *Individual *and double sharing rooms A/C,non A/C rooms 24 hrs staff support,cot,f...
  • திருக்குறள்: - 1. கற்க கசடறக் கற்பவை கற்றபின் நிற்க அதற்குத் தக. 2. அரியவற்று ளெல்லாம் அரிதே பெரியாரைப் பேணித் தமராக் கொளல். -திருவள்ளுவர் குறள் விளக்கம்: பெரியாரைப் போற்...
  • blog links - *Education*: http://bedtti.blogspot.com/ http://staff-teachers-students.blogspot.in/ http://indiansportsgames.blogspot.in/ http://svpitmcbe.blogspot.com/ ht...
  • Tags - Tags, lorry, truck, booking, LBS, parcel service, transport, logistics, van, container,
  • web blogs - best blog links http://tv-actors.blogspot.in/ http://bedtti.blogspot.com/ http://firstnightdecoration.blogspot.com/ http://itparkcareers.blogspot.com/ http:...
  • Hardware links - http://softlandindia.blogspot.in/ http://indianindustrycompanies.blogspot.in/2011/06/wireless-electronic-spot-billing-and.html http://designersiva.blogspot.i...
  • design blogs - https://graphicsbackgrounds.blogspot.in/ https://designersiva.blogspot.in/ http://myclientsmydesigns.blogspot.com/ http://beamconsultancy.blogspot.com/ http...
  • கீரைகளும்_அதன் முக்கிய_பயன்களும்: - 🌿அகத்திக்கீரை- ரத்தத்தை சுத்தமாக்கி பித்தத்தை தெளியவைக்கும். 🌿காசினிக்கீரை- சிறுநீரகத்தை நன்கு செயல்பட வைக்கும். உடல் வெப்பத்தை தணிக்கும். 🌿சிறுபசலைக்கீ...
  • Samiyana Pandhal - Contact For Chairs & Samiyana Pandhal Prop: S.Muthuraman *MJM Samiyana & Chair Land* 9-1, Madurai Main Road, 4th Street Sivagangai, Tamilnadu Cell: +91 90...
  • blogs - http://tv-actors.blogspot.in/ http://bedtti.blogspot.com/ http://firstnightdecoration.blogspot.com/ http://itparkcareers.blogspot.com/ http://kottapathar.blo...
  • FAQ - What is E.S.I Scheme? In addition to necessities of food, clothing, housing etc., man needs security in times of physical and economic distress conseq...
  • Tags - Lorry, Transport, luckage, godown, savani, goods, logistics, madurai, mumbai, booking office, trucks, oldest transport, india
  • links - *Web* *domains* kitchenordertaking.com Fieldpaymentcollection.com handheldposmachine.com parkingticketmachine.com smartcardticketing.com gprsticketingmachi...