- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Quickest way to re-initialize a server
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
Forums
Discussions
Discussions
Discussions
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
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
06-26-2001 06:30 AM
06-26-2001 06:30 AM
Quickest way to re-initialize a server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 06:38 AM
06-26-2001 06:38 AM
Re: Quickest way to re-initialize a server
If you can stand doing it [ because it seems like you *never* would want to miskey it! ;-) ], then as root, do:
# cd
# rm -fR *
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 07:38 AM
06-26-2001 07:38 AM
Re: Quickest way to re-initialize a server
# cd
# rm -fR *
would you not want to
# cd /
# rm -fR *
The first cd changes to the home directory of root which may not be the root directory, it may only be /root.
Confusing, huh?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 07:49 AM
06-26-2001 07:49 AM
Re: Quickest way to re-initialize a server
You can do a fresh install in order to replace your current vg00.
Regards,
Patrice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 07:51 AM
06-26-2001 07:51 AM
Re: Quickest way to re-initialize a server
Cheers,
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2001 12:15 AM
06-27-2001 12:15 AM
Re: Quickest way to re-initialize a server
If your machine has removeable/hot swap disks, (eg a J7K with SCA disks) and your boot disk is one of them you can init all disks including the root without having to install extra disks or re-install an OS.
The following procedure has been fully verified under HPs-UX 11.00, but I see no reason it shouldn't work under 10.20. Sorry, I've only outlined the steps required, not the actual commands.
The steps are:
1 Disable any swap that is not on the root disk (may require several reboot depending upon how many swap areas you have.)
2 Shutdown to single user mode
3 Unmount all disks. You may need to run fuser to find & kill processes on some filesystems before you may unmount them.
4 Init all non-root disks.
5 Hot swap the root disk with another (now clean) disk.
6 Mediainit the "other" disk again & say bye bye root!
7 Then for fun, try running shutdown or anything else you fancy...
bfn,
SS :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2001 08:19 AM
07-02-2001 08:19 AM
Re: Quickest way to re-initialize a server
If you are feeling adventurous then the might want to try booting a kernel from a recovery CD and then issuing a pvcreate -f
Alturnatively, you could use the dd command and copy a blank disk to any disk you wish to blow away, e.g.
dd if=
Hope this helps,
Mike.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2001 08:47 AM
07-02-2001 08:47 AM
Re: Quickest way to re-initialize a server
a simple 'rm -rf' would be the easiest way to remove file (hmmm MARK as removed, actually), but it would be possible to undelete the files on disk.
If you want to be very sure every byte is removed from your disk you would need 'dd' as mentioned.
There are other threads for this question:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x99f9a12d6d27d5118fef0090279cd0f9,00.html
Remember to keep your system disk for last, or you'll be out of the game before you start playing ;-)
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2001 07:32 AM
07-03-2001 07:32 AM
Re: Quickest way to re-initialize a server
I agree with the :
cd /
rm -fR
but not 100 %.
I mean, you have to :
1. All users have to logoff.
2. Stop all the applications process.
3. Stop all database listeners.
4. Stop all Database instances.
5. Stop all RDBMS.
6. Stop swagentd.
7. Stop telnetd.
8. Stop lpsched.
9. Stop dce daemons, rpcd, inetd
And then ,
cd /
rm -fR