- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: programatically find second disk, to mirror?
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
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
тАО08-13-2003 06:00 AM
тАО08-13-2003 06:00 AM
we have multiple models, and they all differ, this is understandable. however I am in the process of writting a post install script for our ignite server, that will find the second disk, regardless of model and mirror root vol to it.
I know the mirror process, I need to find out if anyone has a tool that will always display the second disk, regardless of model and it must be on a different controller.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2003 06:12 AM
тАО08-13-2003 06:12 AM
Re: programatically find second disk, to mirror?
lvlnboot -v
to find out the current root disk
ioscan -fNC disk
to find out the possible alternate disks
And if you have a candidate disk, you can use "pvdisplay" to see if it already is in use as a physical volume or check /etc/lvmtab to see if its already in use there.
From here its a matter of scripting it and there are several methods for that.
I dont have time right now to write one up, but might be able to come up with a script later today.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2003 06:51 AM
тАО08-13-2003 06:51 AM
Re: programatically find second disk, to mirror?
yes this is tricy, writing the script is the easy part. fidning which disk to use for which model turns out to be more difficult than expected.
yes I can use a lookup table, for each model and hard code the value of the hardware addy, however this is not the route I wish to go.
I will post the tool here once complete!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2003 06:58 AM
тАО08-13-2003 06:58 AM
Re: programatically find second disk, to mirror?
I suggest that you use 'diskinfo' (man 'diskinfo' for more information, obviously) to analyze the candidate disk pool such that you select a device that satisfies (at least) size and perhaps model.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2003 07:00 AM
тАО08-13-2003 07:00 AM
SolutionI hope Ed wouldn't mind having his script seen, but I suspect its found its way onto other servers worldwide.
It isn't entirely completely automatic, as it anticipates that whatever the mirror disk script is, it'll have been defined as the ALTERNATE_DISK. If the disk is suitable, and most importantly, is on an alternate controller, then it will perform the mirroring task.
I've used the script when setting-up an rp7410, and tested the alternate booting sequence without errors...
Bren
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2003 07:04 AM
тАО08-13-2003 07:04 AM