home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / vmsnet / misc / 780 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  20.8 KB

  1. Xref: sparky vmsnet.misc:780 comp.os.vms:14394 news.answers:2697
  2. Path: sparky!uunet!dmc.com!munroe
  3. Newsgroups: vmsnet.misc,comp.os.vms,news.answers
  4. Subject: Info-VAX: "Advanced" Common Questions
  5. Message-ID: <info-vax-3.19920901.092831@dmc.com>
  6. From: munroe@dmc.com
  7. Date: 1 Sep 92 09:29:53 EDT
  8. Followup-To: vmsnet.misc
  9. Expires: 13 Oct 92 00:00:00 GMT
  10. References: <info-vax-1.19920901.092831@dmc.com>
  11. Organization: Doyle, Munroe Consultants, Inc., Hudson, Ma. 01749, USA
  12. Approved: munroe@dmc.com
  13. Supersedes: <info-vax-3.19920901.092654@dmc.com>
  14. Lines: 435
  15.  
  16. Archive-name:   info-vax/part03
  17. Last-modified:  1992/08/02
  18.  
  19. [Changes since last posting: Change the title of the FAQs.  Add a pointer to
  20. part 4.  Add the answer to why is my directory so slow.  Add a description of
  21. booting into SYSBOOT after a disk fills up.]
  22.  
  23.            The Info-VAX Monthly Posting
  24.            ----------------------------
  25.            PART 3 -- Advanced "Common Questions".
  26.            (Coordinated by Dick Munroe, written by many others)
  27.  
  28. (Part 1 is an introduction to Info-VAX.  Part 2 is Beginner Common Questions.
  29. Part 4 is about how to find software.)
  30.  
  31. Save this message for future reference!
  32.  
  33. Table of Contents:
  34.  
  35. ,BAC   -- Advice on how NOT to backup your VAX            updated 1989-08-03
  36.           LEICHTER@VENUS.YCC.YALE.EDU (Jerry Leichter)
  37. ,BOOT  -- Booting a system whose disk is full.                  1992-08-12
  38.       rankin@eql.caltech.edu (Pat Rankin)
  39. ,DIR   -- Why is my directory so slow                  1992-08-09
  40.       Various people from vmsnet.internals
  41. ,SIG   -- How to set up automatic signatures, etc.          added 1989-09-29
  42.           CADS_COLE@GALLUA.BITNET (Kevin Cole)
  43. ,FLA   -- No question is stupid...                          added 1989-10-02
  44.           [A reminder to "us gurus" -TAL]
  45.           FASTEDDY@DFTNIC.GSFC.NASA.GOV (John McMahon)
  46. ,MCR   -- About MCR (Bruce Wright)                          added 1989-10-02
  47.           rti!bcw@MCNC.ORG
  48.  
  49. (the ",BAC", ",SIG", etc are keywords.  If you search for that text
  50. (including the ",") you will be brought to the beginning of that article.)
  51.  
  52. ---------------------------------------------------------------------
  53. ,BAC
  54. Subject: VMS Backup tips
  55. >From LEICHTER@VENUS.YCC.YALE.EDU ("Jerry Leichter") Tue Aug  1 10:01:00 1989
  56. Lines: 74
  57.  
  58. >[Various messages concerning long BACKUP times on a MicroVAX II, along with a
  59. >recommendation of the command line:
  60. >   $ back/log/ver *.*/ignore=inter mua0:backup.bck/sav/buf=5/blo=17408-
  61. >        /nocrc/group=0
  62. >]
  63. >
  64. > I think that Bob's response addresses part of the major problem with
  65. > BACKUPs on uVAX-IIs:  that of CRC.  On uVAX-IIs, the CRC instruction is
  66. > emulated in software as opposed to being in hardware as it is in its
  67. > bigger brothers.  As you might imagine, doing CRCs takes forever on a II.
  68. > /NOCRC is a MUST in your BACKUP command line.
  69.  
  70. In general, both of these pieces of advice - ESPECIALLY the first one!  -
  71. are EXTREMELY BAD.  They are the equivalent of "Locksmiths are SO expensive,
  72. I won't bother to install locks on my front door".  Such advice might make
  73. sense in some parts of the country, but try it in New York City....
  74.  
  75. Before considering this advice, decide for yourself just WHY you are doing
  76. backups.  Is it because you've heard that it's a good idea, or because it
  77. appears on your job description, but you don't REALLY expect ever to USE all
  78. those tapes you are writing?  Or is it because you want a safe copy of your
  79. data in case something goes wrong with your disk, or in case you just
  80. acciden- tally delete something important?
  81.  
  82. If it's the former, I'll suggest that you can actually make BACKUP run even
  83. faster; just add /CREATED/SINCE:TOMORROW.  Try it - you should see amazing
  84. results.  In fact, the results will be so good that you should be able to
  85. save all the typing for those other tacky qualifiers.
  86.  
  87. It it's the latter, consider what chances you are taking:
  88.  
  89.  - If you use /NOCRC, you are relying on the error detection capabilitites
  90. of the tape hardware.  This varies in ability to detect problems, depending
  91. on the kind of tape and the density.  Even at its best, it provides no
  92. protection against problems with the tape interface, with the bus, with
  93. memory, and so on.  ALL of these are known potential failure points.
  94.  
  95. - If you add /GROUP=0, you are disabling BACKUP's ability to recover from
  96. errors that develop on the tape while it is in storage, among other things.
  97. What you are getting in return is about 10% more data on the tape.  Sounds
  98. like a very poor tradeoff to me.
  99.  
  100.  - I don't know how the block size of 17408 was selected.  The default value
  101. (2048) was chosen by people with some data about tape failure statistics.
  102. It's a tradeoff:  The larger the block size, the more data you can fit on
  103. the tape - but the larger the probability of two blocks in a redundancy
  104. group suffering simultaneous errors, so that the data is irretrievably lost.
  105.  
  106. Of course, since redundancy groups have been disabled (by /GROUP=0) this
  107. makes little difference anyway.
  108.  
  109.  - Also about /BLOCK:  The combination of a large blocksize with a large
  110. buffer count can cause a reel-to-reel tape to run off the end of the reel.
  111. (Tapes have reflective "end of tape" markers well in from the end of the
  112. tape, but if enough data is already "in the pipe" it can be impossible to
  113. stop the drive in time.  Ever try threading a tape backwards?)
  114.  
  115. I can think of almost no reason to play with the redundancy group size,
  116. except for things like BACKUP savesets used to transfer stuff across a
  117. network where errors are unlikely and you can get another copy of the
  118. damaged stuff if you need it.
  119.  
  120. I can think of few reasons to play around with the block size.
  121.  
  122. I personally can't imagine a serious backup policy based on use of /NOCRC,
  123. at least as a universal policy.  (I suppose you MIGHT do weekly backups
  124. /CRC, and nightly incrementals /NOCRC, figuring that the cost of having to
  125. go back, at the very worst, to the weekly backup is small enough to justify
  126. the additional risk.)
  127.  
  128. There are significant tradeoffs to be made here.  "Speed of backup" is only
  129. one factor.  You have to decide for your own site how to balance this factor
  130. against the others.  But do it in an informed way!  Also, be ready to
  131. re-examine your conclusions as the data change:  BACKUP in VMS V5.2 should
  132. be much faster.  In particular, the CRC algorithms have been SIGNIFICANTLY
  133. sped up.
  134.  
  135.        -- Jerry
  136.  
  137. ---------------------------------------------------------------------
  138. ,BOOT
  139.  
  140. >Subject: Re: How to boot VMS from a failed AUDIT writing
  141. >From: rankin@eql.caltech.edu (Pat Rankin)
  142. >
  143. >In newsgroup vmsnet.misc, article <1992Aug10.142728.4397@mic.ucla.edu>,\
  144. > shinn@agsm.ucla.edu (Shinn-Tzong Wu) writes...
  145. >> Hi, we just encounteded one of our worst nightmare, the VAXStation 3100
  146. >> (running VMS 5.3) died probably because it ran out of disk space for  
  147. >> the AUDIT process.  Since the AUDIT process tried to write into the
  148. >> full disk in the process of rebooting, there seemed to be no way that we
  149. >> can bring the system up.  We tried to boot it from a stand alone tape but
  150. >> it won't access to any of the disks.  Can anyone suggest any help?  Thanks...
  151. >
  152. >     Use a conversational boot to bring up a minimum system.  For a 3100,
  153. >use B/1 at the `>>>' console prompt.  (If you have a console password
  154. >enabled, you'll have to enter it in order to use any variant of the boot
  155. >command other than just "B".)  From B/1, you'll get a `SYSBOOT>' prompt
  156. >where you can modify SYSGEN parameters; do the following
  157. >SYSBOOT> SET STARTUP_P1 "MIN"
  158. >SYSBOOT> CONTINUE
  159. >from there the system will boot normally, except that under a minimum
  160. >system many things are suppressed, including the audit server.  (Also
  161. >systartup_v5, the site-specific startup procedure, is suppressed, as are
  162. >sylogin and login.com once the system is up.)
  163. >
  164. >     Log in immediately as SYSTEM, use SET LOGIN/INTERACTIVE=1 to keep
  165. >ordinary users out, and then purge, delete, or move files to recover
  166. >sufficient disk space for normal operation.  Lastly, reset the system
  167. >parameters
  168. >$ run sys$system:sysgen
  169. >SYSGEN> USE CURRENT
  170. >SYSGEN> SET STARTUP_P1 ""
  171. >SYSGEN> WRITE CURRENT
  172. >SYSGEN> EXIT
  173. >and then reboot.
  174. >
  175. >     This kind of stuff should be covered in the "emergency procedures"
  176. >section of the system manager's manual(s).  Followups redirected to
  177. >vmsnet.sysmgt.
  178. >
  179. >        Pat Rankin, rankin@eql.caltech.edu
  180. >
  181. [Ed. note: The instructions to perform a minimum boot vary from
  182. processor to processor.  The instructions here are specific to a VAX
  183. 3100 (although most of the 3xxx product line seems to follow this
  184. "standard") NOT to all VAXen.  Check the Installation Supplement manual
  185. for your specific processor for the conversational boot procedure.]
  186. ---------------------------------------------------------------------
  187. ,DIR
  188.  
  189. >Subject: Why does emptying a dir take so long?
  190. >From: qb7g6@fel.tno.nl (Maarten Landzaat)
  191. >
  192. >I'm sorry if this is a FAQ. I don't often read VMS newsgroups.
  193. >A friend of mine using VAXstations 3100 and 4000(?) running
  194. >5.4 and 5.5 told me this striking story:
  195. >
  196. >He has a few directories containing a few hundred files. Sometimes, these
  197. >dirs need to be emptied. He then issues a simple delete *.*;* or whatever.
  198. >then VMS takes an INCREDIBLE time of 2 hours (5.4) or 45 minutes (5.5)
  199. >to delete the files.
  200. >
  201. >Now I've been working with VMS and unix, and didn't find that many
  202. >performance differences. But this is a VERY big difference. I've seen
  203. >lots of unix directories with hundreds of files, and delete time
  204. >seems linear. Deleting a few files on VMS does not take a long time,
  205. >at least IMO. Is VMS file deletion then not linear?
  206. >
  207. >Does anybody know why VMS takes such a long time?
  208. >Is it fundamental to the VMS filesystem structure?
  209.  
  210. #From: ewilts@galaxy.gov.bc.ca (Ed Wilts)
  211. #
  212. #I would hazard a guess that the size of the directory file exceeds 127 blocks.
  213. #The size of this file is proportional to the number of files in the directory
  214. #and the length of each file name.  I am surprised that you're seeing it with
  215. #only a few hundred files.
  216. #
  217. #Once you hit this magical limit [127 blocks], all hell breaks loose and you
  218. #wait forever to get any work done.  Spread your files over multiple
  219. #sub-directories if possible.
  220.  
  221. #From: granoff@ranger.enet.dec.com (Mark H. Granoff)
  222. #
  223. #Try deleting the files in reverse alphabetical order.  It'll take a little more
  224. #code (DCL, for example) than a simple DELE *.*.* command, but it'll improve the
  225. #performance of that logical operation.
  226. #
  227. #Directory files are maintained in alphabetical order.  If you delete the first
  228. #file in a directory, the directory file must be compressed and/or shuffled to
  229. #remove that first entry.  In a directory containing many files, this will take
  230. #some time.
  231.  
  232. #From: dfilip@colornet.UUCP
  233. #
  234. #If all access to the directory becomes VERY SLOW (including DIR's) then
  235. #I would suggest looking at the SYSGEN parameter ACP_DIRCACHE. This is the
  236. #number of blocks of a directory file that are kept in cache. Although a few
  237. #hundred files should NOT create an extremely large directory, if there were
  238. #ever a lot more (i.e., thousands) then this could be your problem since
  239. #directory files are not automatically compressed when files are deleted.
  240. #
  241. #ACP_DIRCACHE should be slightly larger than your largest directory file.
  242. #The parameter is dynamic, so you can change it without rebooting and see
  243. #if it fixes your problem.
  244. ---------------------------------------------------------------------
  245. ,SIG
  246. >From: "Kevin Cole at Gallaudet U. Washington DC" <CADS_COLE@GALLUA.BITNET>
  247. Subject: Automatic Signatures, Emblems and ">" a la EDT
  248.  
  249. Several people have asked me about automatic emblems.  I'm not saying this is
  250. the best way to do things...  I'm just saying it's the way I do things.  Seems
  251. to work OK for me.  Well, here's how I do it:
  252.      
  253.         1) Create a file with your particular emblem or signature in it.
  254.            (I called mine SIGNATURE.TXT.)
  255.      
  256.         2) Add the following lines in your LOGIN.COM:
  257.             $ DEFINE/NOLOG MAIL$EDIT    SYS$LOGIN:MAILEDIT.COM
  258.             $ MAIL      :== MAIL/EDIT=(SEND,REPLY=EXTRACT,FORWARD)
  259.      
  260.         3) Cut out the following two files (MAILEDIT.COM and MAILEDT.INI)
  261.      
  262. <Cut here>-------------------- MAILEDIT.COM -------------------------<Cut here>
  263. $ SET TERM/NOBROADCAST
  264. $ DEFINE /USER SYS$INPUT 'F$TRNLNM("SYS$OUTPUT")'
  265. $ IF P1 .EQS. "" THEN GOTO NOINPUT
  266. $ EDIT /COMMAND=SYS$LOGIN:MAILEDT.INI/OUTPUT='P2' 'P1'
  267. $ SET TERM/BROADCAST
  268. $ EXIT
  269. $NOINPUT:
  270. $ EDIT /COMMAND=SYS$LOGIN:MAILEDT.INI 'P2'
  271. $ SET TERM/BROADCAST
  272. $ EXIT
  273. <Cut here>-----------------------------------------------------------<Cut here>
  274.      
  275.      
  276. <Cut here>-------------------- MAILEDT.INI --------------------------<Cut here>
  277. SET CURSOR 0:20
  278. SET SCREEN 80
  279. SET WRAP 79
  280. SET SEARCH BEGIN
  281. SET ENTITY WORD '^H^I^J^K^L^M !"#$%&''()*+,-./:;<=>?@[\]^_`{|}~'
  282. SET WORD NODELIMITER
  283. DEFINE KEY GOLD 14 AS "5SHL."
  284. DEFINE KEY GOLD 15 AS "5SHR."
  285. DEFINE KEY GOLD D AS "DATE."
  286. C; ER -L 32000(62ASC -2L) ER EX
  287. INC SYS$LOGIN:SIGNATURE.TXT
  288. F BEG
  289. C; IDate sent: ^Z DATE ^M EX
  290. SET MODE CHANGE
  291. <Cut here>-----------------------------------------------------------<Cut here>
  292.      
  293.      
  294. NOTE: Change the ^H^I^J^K^L^M to control characters in the SET ENTITY command.
  295.       Change the ^Z to control-Z (but NOT the ^M) in the second last line.
  296.      
  297. Explaination:
  298.      
  299. The above does a bit more than what is asked for...  The reason I spawn instead
  300. of using callable EDT or TPU is because I prefer to turn off broadcasts while
  301. I'm editing, and because the COM file runs a non-standard INI file.  The
  302. special INI file is what adds the emblem/signature.  It also does a few other
  303. handy things like adding the time the message was sent, and adding the ">"
  304. character to the beginning of every old line in a reply.  (That's a trick I
  305. learned from someone on this list ages ago.)  The guts are in the last five
  306. lines.
  307.      
  308. First we move to the end of the buffer (ER).  Backup one line (-L).  Insert a
  309. ">" (62ASC) and go to previous line (-2L) 32000 times.  When we've finally
  310. added as many ">" as we can, go back to the end of the buffer (ER).  Add the
  311. signature file. (INC SYS$LOGIN:SIGNATURE.TXT).  Go back to the top of the file
  312. (F BEG) and add the current time and date (IDate sent: ^Z DATE ^M EX).  Lastly
  313. give control back to the sender (SET MODE CHANGE).
  314.  
  315. ---------------------------------------------------------------------
  316. ,FLA
  317. Subject:  No question is stupid...
  318. >From:     John McMahon - NASA GSFC ADFTO - 301-286-2045
  319.           <FASTEDDY@DFTNIC.GSFC.NASA.GOV>
  320. Date:     Thu, 3 Aug 89 12:18:10 EDT
  321.  
  322. (Commentary having very little to do with Vaxen follows...)
  323.  
  324. Sample antagonistic response to novice question:
  325. ***> RTFM! Page 7-7 in binder 8B, the version 4 doc set. Just set
  326. ***> bit 28 and you're done! And stop asking such silly questions,
  327. ***> which are so easily answered, will you!
  328.  
  329. It seems to me that usefulness of Info-Vax/Comp.Os.Vms is decreased when
  330. someone out on the net asks a question and is greeted with comments like those
  331. above.  To you the question may seem trivial...  However, it wasn't to the
  332. person posting.
  333.  
  334. First thing to keep in mind:  Even if it's in the manuals, the person may not
  335. be able to find it.  If you posted a question about "How do I increase the
  336. maximum record size for DECnet I/O", I could easily answer RTFM.  But that's
  337. only because I found it once...  It took a couple of hours, several manuals,
  338. and a little luck.  Some people aren't that lucky, and some don't have access
  339. to full documentation sets.  Also, when was the last time you actually read an
  340. index that pointed to exactly what you wanted the first time ?  Most indexes
  341. imply that the user knows approximately what he/she is looking for first...
  342. What is a user to do when he/she doesn't know where to look ?  How about ask
  343. the Info-Vax gurus...
  344.  
  345. Second thing to keep in mind:  Not everyone here is at the same level of
  346. experience.  Just because you are talented/knowledgeable you don't have to hold
  347. that over a novice who is lost in VMS.  Remember that at one point, all of the
  348. gurus (including you) were novices.  How far would you have advanced if people
  349. you asked for help from said "Read the manuals...  You ask silly questions..."
  350. Probably not as far as you have gotten.
  351.      
  352. Third thing:  Behind each posting is a person.  The network creates an
  353. 'artificial buffer' which keeps us separate enough that we forget.  Just
  354. because it's e-mail doesn't meen you shouldn't be polite.  We are humans after
  355. all...  We are supposed to be civilized...
  356.      
  357. Boiled down to a point:  Info-Vax is a technical discussion involving everyone
  358. from the Novice to Guru level.  Let's keep it polite and technical...  Don't
  359. post personal editorial comments...
  360.      
  361. (I know, I probably just violated that...)
  362.      
  363. Please direct comments to me (not the list)...
  364. /-------------------------------------+---------------------------------------\
  365. | John "Fast Eddie" McMahon           |    Span: SDCDCL::FASTEDDY (Node 6.9)  |
  366. | Advanced Data Flow Technology Office|    Arpa: FASTEDDY@DFTNIC.GSFC.NASA.GOV|
  367. | Code 630.4 - Building 28/W255       |  Bitnet: FASTEDDY@DFTBIT              |
  368. | NASA Goddard Space Flight Center    |GSFCmail: JMCMAHON                     |
  369. | Greenbelt, Maryland 20771           |   Phone: x6-2045                      |
  370.  
  371. ---------------------------------------------------------------------
  372. ,MCR
  373. Subject: Response to Question about "MCR"
  374. >From: Bruce Wright <rti!bcw@MCNC.ORG>
  375. Date: Thu, 28 Sep 89 15:31:08 GMT
  376.  
  377. In article <22331@cup.portal.com>, Wiley_M_Sanders@cup.portal.com writes:
  378. >    MCR stands for "Monitor Console/Control Routine", and is a vestigial
  379. > element left over when PDP-11 programs could be run under VMS. MCR is/was
  380. > the RSX-11 equivalent of the RUN command, although it really RUNS the
  381. > image as a foreign command, as opposed to RUN, which launches the
  382. > installed image. In that way it's not exactly a synonym for
  383. > RUN SYS$SYSTEM.
  384.      
  385. Sorry if this is too pedantic for the net.censors, if you don't like it
  386. just hit the "n" key.
  387.      
  388. The MCR command on VMS is more-or-less like RUN on VMS, though with some
  389. of the slight differences that have been mentioned here and elsewhere - but
  390. MCR on RSX was NOT the RSX equivalent of RUN.  VMS doesn't have an exact
  391. equivalent of MCR - the closest thing is DCL;  MCR was the user command
  392. line interface module under RSX.  As noted, MCR stands for "Monitor
  393. Console Routine" and was the prompt that the user saw:
  394.      
  395.     MCR>your-RSX-command
  396.      
  397. RUN was a very respectable RSX command - it ran a user image as a task.
  398. RSX commands were one-to-three letter commands which were derived from the
  399. names of installed tasks (sort of like an installed image on VMS, but when
  400. it was invoked it would start a new task [=process on VMS]).
  401.      
  402. RSX commands were one-to-three letter commands which were derived from the
  403. names of installed tasks.  These were run as separate tasks (=process on
  404. VMS) when the corresponding command was entered (everything on RSX was a
  405. task, image activation corresponded to task activation).  Since there were
  406. a number of different versions of RSX (RSX-11A, RSX-11B, RSX-11C, RSX-11D,
  407. RSX-11M, RSX-11M+, RSX-11S, IAS, POS, and maybe others), some of which
  408. shared only a few architectural and historical things in common, the
  409. precise details of the implementation differed somewhat between members
  410. of the family.
  411.      
  412. Later versions of RSX (and some of its derivatives such as IAS) did include
  413. a DCL interpreter which had numerous similarities (and differences) with
  414. respect to VMS DCL.  Because of the architecture of the systems, many of
  415. the DCL commands in the RSX family would start a new task (=process) rather
  416. than run an image in the same process as on VMS - but the effect from the
  417. user point of view was very similar.
  418.      
  419. >    Alas, the MCR command interpreter seems to be absent from VMS 5.2. At
  420. > least when I type SPAWN/CLI=MCR, it can't be found.
  421.      
  422. The MCR command is left over from when the RSX compatibility mode software
  423. was bundled in with VMS.  Those of you that have been around since VMS V1.0
  424. probably remember that, for example, DIRECTORY was implemented as PIP /LI
  425. and that many commands (including DIRECTORY) would spit out RSX-like error
  426. messages like "PIP -- No such file(s)".  It started out as much as an aid
  427. for DEC to get all that utility software running on the VAX as it did as an
  428. aid for helping customer conversions.
  429.      
  430. Since at least V4.0 this has been separate product (VAX-11 RSX) which sites
  431. with an earlier license automatically had a license to use.  When it was
  432. made a separate product, all the RSX code (MCR, PIP, TKB, FLX, and all the
  433. other friends from the RSX world, and BACKTRANS.EXE and other things from
  434. the VMS world which made the whole mess work) were removed and made part
  435. of the VAX-11 RSX product.
  436.      
  437. When this was done, the MCR command was probably left in the DCL tables
  438. because removing it would break too many command files and annoy too many
  439. people who had gotten used to typing "MCR mumble" instead of the wordier
  440. "RUN SYS$SYTEM:mumble".
  441.      
  442.      
  443.                         Bruce C. Wright
  444. --
  445. Dick Munroe                Internet: munroe@dmc.com
  446. Doyle Munroe Consultants, Inc.        UUCP: ...uunet!thehulk!munroe
  447. 267 Cox St.                Office: (508) 568-1618
  448. Hudson, Ma. USA                FAX: (508) 562-1133
  449.  
  450. GET CONNECTED!!! Send mail to info@dmc.com to find out about DMConnection.
  451.