* Access to ejected CD-disk dumps kernel @ 1994-02-28 16:27 Ulf Kronman 1994-03-07 10:00 ` Anthony Baxter 0 siblings, 1 reply; 5+ messages in thread From: Ulf Kronman @ 1994-02-28 16:27 UTC (permalink / raw) I have mounted a SCSI-conncted ISO 9660 CR-ROM and exported it with NFS. The idea is that locally networked PCs and Macintoshes with NFS client software may mount the CD over the network. Things work fine, but if I eject the CD without first doing umount and then tries to access the CD, or a client PC tries to access it, the kernel dumps core and the system reboots. Maybe this is a stupid and clumsy way to handle a filesystem, but I think the result is a bit _too_ drastic. I wonder if there is any way to tell OSF that the CD is a _removable_ disk and make it ask the operator to load the disk if someone tries to access the filesystem while the disk is ejected? (Sorry if the question is on a basic level, but I'm new to unix.) Thanks for any help, Ulf _____________________________________________________________________ Ulf Kronman Systems Engineer KIBIC Voice: +46 8 7286846 Box 200 Fax: +46 8 301739 S-171 77 Stockholm, SWEDEN Internet: Ulf.Kronman@kib.ki.se _____________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Access to ejected CD-disk dumps kernel 1994-02-28 16:27 Access to ejected CD-disk dumps kernel Ulf Kronman @ 1994-03-07 10:00 ` Anthony Baxter 1994-03-09 20:49 ` Hamish Marson 0 siblings, 1 reply; 5+ messages in thread From: Anthony Baxter @ 1994-03-07 10:00 UTC (permalink / raw) Ulf@argo.kib.ki.se (Ulf Kronman) writes: >Things work fine, but if I eject the CD without first doing umount and then >tries to access the CD, or a client PC tries to access it, the kernel dumps >core and the system reboots. Maybe this is a stupid and clumsy way to >handle a filesystem, but I think the result is a bit _too_ drastic. You didnt say what version of OSF/1 you had - I saw similar problems in 1.2, that went away when I upgraded to 1.3. Anthony -- anthony baxter @ /\/\|| |= Sarah McLachlan mailing =| australian artificial email: anthony@aaii.oz.au |= list: mail fte-request@ =| intelligence institute phone: +613 663 7922 |= yoyo.cc.monash.edu.au. =| 1 grattan st, carlton Practice random kindness and senseless acts of sarcasm. australia 3053. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Access to ejected CD-disk dumps kernel 1994-03-07 10:00 ` Anthony Baxter @ 1994-03-09 20:49 ` Hamish Marson 1994-03-10 8:07 ` SUMMARY: " Ulf Kronman 1994-03-10 16:26 ` Darcy Semeniuk 0 siblings, 2 replies; 5+ messages in thread From: Hamish Marson @ 1994-03-09 20:49 UTC (permalink / raw) Anthony Baxter (anthony@aaii.oz.au) wrote: > Ulf@argo.kib.ki.se (Ulf Kronman) writes: > >Things work fine, but if I eject the CD without first doing umount and then > >tries to access the CD, or a client PC tries to access it, the kernel dumps > >core and the system reboots. Maybe this is a stupid and clumsy way to > >handle a filesystem, but I think the result is a bit _too_ drastic. > You didnt say what version of OSF/1 you had - I saw similar problems in > 1.2, that went away when I upgraded to 1.3. Yeah. Now if you eject a mounted cdrom, and then re-insert it, and then try to unmount if, mountd hangs. kill -9 won't even ressurect it. Makes it a real pain for machines used as NFS servers primarily. Why couldn't they simply lock a mounted CDROM in the drive like other OS's? I've done it twice now (At least, this is the only reason I can think of this happenein since it locked when I typed umount /cdrom (The umount can't be killed either BTW)). Eagerly awaiting 2.0 to see if it fixes all our problems... Including mountd hanging inaccurate or missing man pages. skimpy documentation (DOes it document anywhere how to reduce the NFS packet size negotiated for server side reads?) The ability to search online docs (Apparently in 2.0) The ability to print online docs (What use are online docs when you can't get your system booted?) An LVM that is integrated into the kernel better (ie can we boot from an LVM fs yet? How bout swap space?) A filesystem cache that doesn't have to be explicitly sized when building the kernel Plus many more I've purged from short term nightmares... -- ====================================================================== | Hamish Marson | | Systems Programmer | | | Computer Services | INTERNET h.marson@waikato.ac.nz | | University of Waikato | PHONE +64 7 8562889 xt 8181 | | New Zealand | FAX +64 7 8384066 | ===========Disclaimer :- Remember. You heard it here first.=========== ^ permalink raw reply [flat|nested] 5+ messages in thread
* SUMMARY: Access to ejected CD-disk dumps kernel 1994-03-09 20:49 ` Hamish Marson @ 1994-03-10 8:07 ` Ulf Kronman 1994-03-10 16:26 ` Darcy Semeniuk 1 sibling, 0 replies; 5+ messages in thread From: Ulf Kronman @ 1994-03-10 8:07 UTC (permalink / raw) Here are the answers I got to the same posting to the osf-managers mailing list: QUESTION: I have mounted a SCSI-conncted ISO 9660 CR-ROM and exported it with NFS. If I eject the CD without first doing umount and then tries to access the CD, or a client PC tries to access it, the kernel dumps core and the system reboots. I wonder if there is any way to tell OSF that the CD is a _removable_ disk and make it ask the operator to load the disk if someone tries to access the filesystem while the disk is ejected? ANSWERS: 1. Wait for OSF1 v2.0 or get a patch --------------------------------- Bill Broadley <broadley@neurocog.lrdc.pitt.edu> This is one of the hairy parts of osf 1.3. Should be fixed in OSF 2.0 "Dr. Tom Blinn, 603-881-0646" <tpb@zk3.dec.com> The problem you are describing is a known problem. It is fixed in DEC OSF/1 V2.0 which will be available next month. In the meantime, I believe it is one of the problems that can be fixed by the available patches to V1.3/a/b which you should be able to obtain from your Digital customer support center. I believe the net effect of the patch is to disable the ejection of a mounted CD, so you have to umount it to eject it; but I could be mistaken, and you will get a good description of the fix with the patch. cahill@atm.ox.ac.uk When we ran OSF/1 v. 1.2, it wouldn't *let* us remove the CD without unmounting it. Then we updated to v. 1.3, and suddenly it did let us, except that if we tried to unmount it after removing it, *any* attempt to access it (e.g. ls -l / ) locked up as an "uninterruptable sleeping process" until we rebooted (manually). 2. Lock the disk in the drive -------------------------- das@mda.ca (Darcy Semeniuk) The way that I got around it was to change 1 parameter in one of the system .c files so that the CD couldn't be ejected unles it was unmounted already. (I think that I changed NO_OPT_CMDS to SZ_PREV_ALLOW on line 3038 (RRD42 entry) of /usr/sys/data/cam_data.c) adley@mprgate.mpr.ca (Robert Adley) You need to change the file /sys/data/cam_data.c to prevent the CD from being ejected while it is mounted. In section : /* RRD42 */ {"DEC RRD42", 13, DEV_RRD42, (ALL_DTYPE_RODIRECT << DTYPE_SHFT) , (struct pt_info *)ccmn_rrd40_sizes, 512, DEC_MAX_REC, NO_DENS_TAB, NO_MODE_TAB, (SZ_NOSYNC | SZ_REORDER), NO_OPT_CMDS, SZ_READY_DEF, SZ_NO_QUE, DD_REQSNS_VAL | DD_INQ_VAL, 36, 64 }, change the line : NO_OPT_CMDS, SZ_READY_DEF, SZ_NO_QUE, DD_REQSNS_VAL | DD_INQ_VAL, to : SZ_PREV_ALLOW, SZ_READY_DEF, SZ_NO_QUE, DD_REQSNS_VAL | DD_INQ_VAL, Thanks to all who responded - But my question about the possibility to get an operator message to load the requested disk still stands unanswered. Is this not at all a feature in unix? (In VMS it comes automatically: "Please load...") _____________________________________________________________________ Ulf Kronman Systems Engineer KIBIC Voice: +46 8 7286846 Box 200 Fax: +46 8 301739 S-171 77 Stockholm, SWEDEN Internet: Ulf.Kronman@kib.ki.se _____________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Access to ejected CD-disk dumps kernel 1994-03-09 20:49 ` Hamish Marson 1994-03-10 8:07 ` SUMMARY: " Ulf Kronman @ 1994-03-10 16:26 ` Darcy Semeniuk 1 sibling, 0 replies; 5+ messages in thread From: Darcy Semeniuk @ 1994-03-10 16:26 UTC (permalink / raw) Hamish Marson (hamish@thebes.cc.waikato.ac.nz) wrote: : Anthony Baxter (anthony@aaii.oz.au) wrote: : > Ulf@argo.kib.ki.se (Ulf Kronman) writes: : > >Things work fine, but if I eject the CD without first doing umount and then : > >tries to access the CD, or a client PC tries to access it, the kernel dumps : > >core and the system reboots. Maybe this is a stupid and clumsy way to : > >handle a filesystem, but I think the result is a bit _too_ drastic. : > You didnt say what version of OSF/1 you had - I saw similar problems in : > 1.2, that went away when I upgraded to 1.3. : Yeah. Now if you eject a mounted cdrom, and then re-insert it, and then : try to unmount if, mountd hangs. kill -9 won't even ressurect it. Makes : it a real pain for machines used as NFS servers primarily. Why couldn't : they simply lock a mounted CDROM in the drive like other OS's? There is a way to fix this so it won't eject when mounted - you have to change a parameter in cam_data.c email me if you want the info. Darcy ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1994-03-10 16:26 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 1994-02-28 16:27 Access to ejected CD-disk dumps kernel Ulf Kronman 1994-03-07 10:00 ` Anthony Baxter 1994-03-09 20:49 ` Hamish Marson 1994-03-10 8:07 ` SUMMARY: " Ulf Kronman 1994-03-10 16:26 ` Darcy Semeniuk
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox