Operating System - HP-UX
1832891 Members
2620 Online
110048 Solutions
New Discussion

Check for a read-only disk

 
SOLVED
Go to solution
Sudhindra Prasad
Occasional Advisor

Check for a read-only disk

Hello folks,

Is there any way in HP-UX to check if a disk is read-only or read/write without modifying/affecting any data on the disk?

Is there any VXVM or LVM command to do so?

Thanks in advance.
11 REPLIES 11
IT_2007
Honored Contributor

Re: Check for a read-only disk

yes. If it is only part of volume group say vg10 then do vgdisplay -v vg10 and see if it is avtivated in read only mode.

vgdisplay -v vg10 |more
--- Volume groups ---
VG Name /dev/vg10
VG Write Access read/write
VG Status available
Max LV 255
Sudhindra Prasad
Occasional Advisor

Re: Check for a read-only disk

Hi Srini,

Thanks. But this disk is not configured as part of a LVM VG or a VxVM DG.
IT_2007
Honored Contributor

Re: Check for a read-only disk

so give me some more info. Is it raw device accessed by some application like Oracle?

Sudhindra Prasad
Occasional Advisor

Re: Check for a read-only disk

Yes. This disk's properties can be viewed and controlled using the storage s/w. But is there any other way to know whether this disk is writable? This is an EMC array.
IT_2007
Honored Contributor

Re: Check for a read-only disk

It make sense now. If disk is assigned to HP-UX then using "sympd list" command you can see that disk is read/write or read only.
Sudhindra Prasad
Occasional Advisor

Re: Check for a read-only disk

But this is again using EMC s/w to find out. Is there any other way to know this? Thanks.
IT_2007
Honored Contributor
Solution

Re: Check for a read-only disk

Nope. Without assigning to Volume group you won't be accesible it. sympd is a only command tells you that it is read only or read/write since disk is comming from EMC and once it is assigned, created for volume group then OS can control it.
Sudhindra Prasad
Occasional Advisor

Re: Check for a read-only disk

Ok, thanks so much for this information!
IT_2007
Honored Contributor

Re: Check for a read-only disk

If you feel your problem solved, please assign some points.
sathish kannan
Valued Contributor

Re: Check for a read-only disk

Hello Sudhindra,

If you solution enabler installed you can view the device properties using "symdev" and "symdev show LUNNUMBER -sid SYMMETRIXSERIALNUMBER"


Regards
Sathish
Don't Think too much
Sudhindra Prasad
Occasional Advisor

Re: Check for a read-only disk

hey thanks! so pretty much i will need to use the EMC host s/w commands to get this status.