Depends on when you want to check it... After it's activated, look at /proc/dasd/devices 0.0.0200(ECKD) at ( 94: 0) is dasda : active at blocksize: 4096, 600840 blocks, 2347 MB 0.0.0190(ECKD) at ( 94: 24) is dasdg (ro): active at blocksize: 4096, 19260 blocks, 75 MB
Note 190 (/dev/dasdg) above is flagged (ro) since it's a read only device. (This is SLES9). Lee Eric Gaulin wrote:
Hi, On z/VM side i have a DASD volume linked read only. But on linux side i need to find a way for detecting if that DASD device is in a read only state. with the following mount command: mount /mnt/data -o remount,rw I don't get any errors from de the mount command, and if i check the status of the mounted device with 'mount' alone, the filesystem looks like being mounted rw Of course i get a lots kernel errors! I have to build some scripts and it will be useful for me to validate this read-only state within my scripts. Any suggestions ? Thanks in advance! -- Eric Gaulin ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
-- Lee Stewart, Senior SE Sirius Enterprise Systems Group Phone: (303) 798-2954 Fax: (720) 228-2321 [EMAIL PROTECTED] www.siriuscom.com ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
