- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: List of common mistakes
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2010 03:56 AM
тАО10-26-2010 03:56 AM
Re: List of common mistakes
sometimes due the nature of your network a misconfigured /etc/nsswitch.conf can give you many timeouts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2010 06:58 AM
тАО10-26-2010 06:58 AM
Re: List of common mistakes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2010 09:48 AM
тАО10-26-2010 09:48 AM
Re: List of common mistakes
i'm using cfg2html once a month for all server, and archive the output.
So that i could see any changes.
best regards,
butti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2010 09:59 AM
тАО10-26-2010 09:59 AM
Re: List of common mistakes
If inexperienced read up on the subject. I regularly peruse through the forums and if I see something of use or interest I copy the information into a document or bookmark the page. I spent a lot of time just reading threads here and pdf documents provided by HP as well as using google.
Create a regular user with permission to su to root. Only su when doing tasks that require root access. With SAM and SMH you can give regular users special permissions to use those utilities. (For example look up restricted SAM)
On that note configure and tweak as necessary your sudoers file. Use visudo to edit. Create a root users group and groupadd your user profile to this group.
It's helpful to set your PS1 to know which server you are logged into. We have this set in /etc/profile:
PS1="$LOGNAME"@`hostname`:'$PWD'"> "
export PS1
Before doing any work create a maintenance log. I use excel to list out the tasks I am going to do in descending order with additional columns for start and end time. In other words have a plan of action.
Make sure you have some backup method in place before doing any major system work like patches, volume group work, etc.
Be very careful with the rm command. Be very careful with vgexport command as well.
Schedule your maintenance for off hours. Be aware you are creating additional IO with each patch install, lvextend, etc. If possible test the commands and actions on a non-prod server.
Read the patch requirements. Some patches require a system reboot, others do not. A lot of patches have dependencies.
As suggested above create a script so you can review work that was done. For example everytime I had to extend a lvol, add a disk, etc. I'd create a script in /tmp. (script /tmp/scriptname) It was especially helpful to review. Name your script something useful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2010 03:53 PM
тАО10-26-2010 03:53 PM
Re: List of common mistakes
Which one is dangerous and never be used and why ?
cd /home/sun/moon/mercury/
#/home/sun/moon/mercury/> rm -rf ../*
#/home/sun/moon/mercury/> rm -rf ../*.*
#/home/sun/moon/mercury/> rm -rf *
Thanks,
Manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2010 04:59 PM
тАО10-26-2010 04:59 PM
Re: List of common mistakes
#/home/sun/moon/mercury/> rm -rf ../*
Delete all the file and dirs under moon directory.
#/home/sun/moon/mercury/> rm -rf ../*.*
Delete the files and dirs which have a dot symbol and under moon directory.
#/home/sun/moon/mercury/> rm -rf *
Delete all the files and dirs under mercury directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2010 05:33 PM
тАО10-26-2010 05:33 PM
Re: List of common mistakes
1)Like RK mentioned in second part, same type of problem happens while copy paste the commands using mouse on PUTTY session.
The left button selected words get copied in buffer and at any time if you press the left button it pasted on the screen.So be alert while selecting the words/commands using mouse on PUTTY terminal.
2)Read the man page to avoid confusing options with commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2010 11:25 PM
тАО10-26-2010 11:25 PM
Re: List of common mistakes
Always keep a backup of the file u edit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2010 12:16 AM
тАО10-27-2010 12:16 AM
Re: List of common mistakes
> Delete the files and dirs which have a dot symbol and under moon directory.
This answer indicates you didn't understand the danger of this command.
Remember that every directory has two special sub-directory entries: "." and "..".
This command will delete /home/sun/moon/*.*, which includes:
/home/sun/moon/.. = /home/sun/
/home/sun/moon/../.. = /home
/home/sun/moon/../../.. = /
And when "rm -rf" deletes a directory, it will also delete all files and sub-directories in it...
In other words, this command will delete *EVERY FILE AND DIRECTORY ON THE SYSTEM*.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2010 01:49 AM
тАО10-27-2010 01:49 AM
Re: List of common mistakes
When changing the root password, kindly make sure the passwd is working/changed properly by taking a separate session before logging out the session.
This practice will be keep us tension free on root passwd issues.
Regards,
Nirmal G