home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / m88k / 413 < prev    next >
Encoding:
Internet Message Format  |  1993-01-26  |  3.4 KB

  1. Path: sparky!uunet!gatech!udel!apache.dtcc.edu!apache.dtcc.edu!not-for-mail
  2. From: weave@apache.dtcc.edu (Ken Weaverling)
  3. Newsgroups: comp.sys.m88k
  4. Subject: Summary: Making /var a separate partition
  5. Date: 26 Jan 1993 08:35:25 -0500
  6. Organization: Delaware Technical & Community College
  7. Lines: 59
  8. Message-ID: <1k3emtINN1bk@apache.dtcc.edu>
  9. References: <1k088uINNft6@apache.dtcc.edu> <1993Jan25.235718.22508@hubcap.clemson.edu>
  10. NNTP-Posting-Host: apache.dtcc.edu
  11. Summary: Not too difficult at all
  12. Keywords: DG Data General AViiON
  13.  
  14. First of all, thanks to Morris Galloway for his post and his mail to me 
  15. regarding the subject, I followed his method with a few minor changes...
  16.  
  17. I did the following under single user mode (init 1)
  18.  
  19. 1) Ran diskman
  20.    Created a logical partition named var
  21. 2) Ran sysadm and added the file system but DID NOT have sysadmin mount it
  22.  
  23. 3) Ran the following unix commands to copy the data over
  24.    a) umount /var/spool/news (gotta unmount anything mounted in that directory)
  25.    b) mkdir /var2
  26.    c) find /var -depth -print | cpio -pdlmv /var2
  27.       (this ensures that file modes and ownerships, links, etc are copied)
  28.       (then I verified that everything copied OK)
  29.    d) rm -rf /var
  30.    e) mkdir /var
  31.    f) mkdir /var/tmp
  32.       (this was a paranoia step. I intended to symbolic link /tmp to 
  33.       /var/tmp but worried that someone might want to write to /tmp 
  34.       when /var was unmounted, so I created /var/tmp under root just
  35.       in case. However, if /var is later mounted, anything in the root
  36.       /var/tmp will be unavailable, so caution is needed there)
  37.    g) umount /var2
  38.    h) mount /var  (fstab was edited by sysadm already)
  39.    i) rm -rf /tmp
  40.    j) ln -s /var/tmp /tmp
  41.  
  42. 4) I did *not* edit any rc scripts.
  43. 5) I *did* edit /etc/dgux.params to set verbose_FLAG to true so I could
  44.    watch if anything weird happened during reboot
  45. 6) I then rebooted and watched. It seems that all filesystems are mounted
  46.    before any scripts in /etc/rc3.d are executed, so when S113.update runs
  47.    and cleans up mail and spool and lock directories, /var is already mounted
  48.    and there isn't a problem. I guess S114.mountfs is redundant or is 
  49.    needed when you change run levels from a few other states perhaps.
  50.  
  51. So, my new file system layout looks like below. If anyone notices anything
  52. weird or dangerous, I'd appreciate a holler. Thanks!
  53.  
  54. filesystem            kbytes    used   avail capacity  mounted on
  55. /dev/dsk/root          20000   13668    4404    76%    /
  56. /dev/dsk/usr          120000  104367    4068    96%    /usr
  57. /dev/dsk/opt_contrib  297500  200499   82677    71%    /usr/opt/contrib
  58. /dev/dsk/usr_opt_openmac   10000    4569    4467    51%    /usr/opt/openmac
  59. /dev/dsk/usr_opt_pci    2500    1896     369    84%    /usr/opt/pci
  60. /dev/dsk/var           40000    6027   32045    16%    /var
  61. /dev/dsk/news         639861  416150  205194    67%    /var/spool/news
  62. /dev/dsk/local        160000  121353   32462    79%    /local
  63. /dev/dsk/guest         20000    9502    8572    53%    /u/guest
  64. /dev/dsk/staff        160000   98225   46358    68%    /u/staff
  65. /dev/dsk/student      160000   98936   45647    68%    /u/student
  66.  
  67.  
  68. -- 
  69. Weave's 10/90 recipe for insanity: Take one programmer, divide into portions: 
  70. 10% programming consisting of equal parts in systems and applications plus
  71. admin duties broken down into 20% for Unix, 5% PRIMOS, 10% hardware & network, 
  72. 35% DOS/Windows, 10% news, 5% postmaster, and 5% babysitting IRC kiddies.
  73.