- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ASM and HP-UX
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
тАО04-24-2011 11:37 PM
тАО04-24-2011 11:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2011 02:22 AM
- Tags:
- diskowner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2011 04:01 AM
тАО04-25-2011 04:01 AM
Re: ASM and HP-UX
What about earlier versions of HP-UX ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2011 11:25 PM
тАО04-25-2011 11:25 PM
Re: ASM and HP-UX
This basically tells you that an ASM disk will have the ASCII string "ORCLDISK" written into bytes 32 to 39 of a disk if it is being or has been used for ASM. In order to identify if a disk is still being used for ASM look at byte 71 and see if it has a "004" in it.
So I don't have an ASM disk to hand to try this on, but I suspect something like this should work (you may have to play with the offsets a little - I'm terrible at making fencepost errors!)
So to identify if its an ASM disk:
od -v -Ad -t c -j 32 -N 8 /dev/rdsk/cXtYdZ
And to see if its still in use:
od -v -Ad -t c -j 71 -N 1 /dev/rdsk/cXtYdZ
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2011 12:29 AM
тАО04-27-2011 12:29 AM
Re: ASM and HP-UX
As I didn't have access to a system with ASM on it, I'm interested to know whether the commands I provided actually worked?
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 11:11 PM
тАО05-18-2011 11:11 PM
Re: ASM and HP-UX
Sorry for late reply...
I have tesetd your answers in an AIX test box (I dont have a HPUX box to test ASM).
See the output below..
#od -v -Ad -t c -j 32 -N 8 /dev/hdisk4
0000000 O R C L D I S K
0000008
#od -v -Ad -t c -j 71 -N 1 /dev/hdisk4
0000000 003
0000001
#
It is showing the ascii string perfect.. But at 71 it is 003.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 11:33 PM
тАО05-18-2011 11:33 PM
Re: ASM and HP-UX
> 0000000 003
> 0000001
OK, so are you completely sure in this case that /dev/hdisk4 is in use by ASM _right now_ (as I said it's only set to 004 if ASM is still using it. If ASM has stopped using the disk it will still have ORCLDISK written into it, but not 004)
Alternatively, it could be a fencepost error on my part - would be interesting to look at a few other bytes around that position... try:
od -v -Ad -t c -j 70 -N 3 /dev/hdisk4
That should show is the byte before/after the one we looked at previously as well...
(as a third alternative, the Oracle support article could be wrong/out of date - I've come across plenty that are, but I have no way to confirm that!)
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 11:56 PM
тАО05-18-2011 11:56 PM
Re: ASM and HP-UX
SQL> select PATH from v$asm_disk;
PATH
---------------
/dev/rhdisk4
SQL>
See the requested output..
#od -v -Ad -t c -j 70 -N 3 /dev/hdisk4
0000000 001 003 D
0000003
#od -v -Ad -t c -j 65 -N 10 /dev/hdisk4
0000000 020 \0 \0 \0 \0 001 003 D I S
0000010
#
However this is a very good point you have given.. Thanks Duncan..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2011 12:28 AM
тАО05-19-2011 12:28 AM
Re: ASM and HP-UX
if (buf[71] != 4) {
printf("This disk %s still used by ASM\n",argv[1]);
return (0);
}
else
printf("This disk %s has been used by ASM\n",argv[1]);
So what this is saying is that if byte 71 _doesn't_ contain 4 (004 from the od output) then it is still in use by ASM, and if it does contain 4, it _was_ in use by ASM - I guess the only way you could check this would be to stop using the disk (I don't know ASM that well but maybe "alter diskgroup XXXX drop disk 'diskname';")
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2011 01:48 AM
тАО05-19-2011 01:48 AM
Re: ASM and HP-UX
SQL> drop diskgroup DISK_GROUP_1 including contents;
Diskgroup dropped.
SQL>
#od -v -Ad -t c -j 71 -N 1 /dev/hdisk4
0000000 004
0000001
#
I am closing this thread..
Thanks,
SEN