- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- General
- >
- Re: List of common mistakes
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP