Operating System - HP-UX
1828235 Members
2204 Online
109975 Solutions
New Discussion

Check Disk Status READ or READ WRITE

 

Check Disk Status READ or READ WRITE

Hello,

I have a very specific scenario.

I would like to know if the disk is READ only or READ WRITE Enbaled, the disk is part of VxVM DiskGroup and it is HP-UX Box.

I more specifically looking for some command thats there as part of the OS or some command from VxVM that helps us get this info.
5 REPLIES 5
RAC_1
Honored Contributor

Re: Check Disk Status READ or READ WRITE

I do not know if disk can be set as READ or READ Write in VxVM or not. ON LVM it can not. But in both cases (LVM and VxVM), you can mount file system as ready or read-write.

You can check that with mount command.
mount -p
mount -v
Will give you all options with which a file system is mounted.
There is no substitute to HARDWORK
Prashanth.D.S
Honored Contributor

Re: Check Disk Status READ or READ WRITE

Hi Srinivas,

#vxdg list

Should let u know the disk's policy..

Best Regards,
Prashanth

Re: Check Disk Status READ or READ WRITE

vxdg list "diskgroup" will work only if you have the diskgroup imported, but i would like to know the status of the diskgroup before importing.
spex
Honored Contributor

Re: Check Disk Status READ or READ WRITE

siva baskaran
Regular Advisor

Re: Check Disk Status READ or READ WRITE

hi,
anyway either LVM or VxVM it would be created devices file ?

then issu the simple command

ll -l /dev/dsk/cXXtXXdXX

thanks
siva