tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Tru64 new instal - but with old settings
@ 2003-03-17 13:07 Dr. Otto Titze
       [not found] ` <3E75CD52.7040204@hp.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Dr. Otto Titze @ 2003-03-17 13:07 UTC (permalink / raw)


Hi all,

I am not so familiar with Unix, therefore I have a few simple questions
concerning system management. I want to upgrade most of my systems
(except the turbo-channel ones) to Tru64 V 5.1B. I already tested that
all our prior applications run under this new version. Now I am looking
for a fast and efficient way to change the different systems, most of
them are V4.0D , even a few still lower.. 

I do not plan to upgrade ,because that means
V4.0B > V4.0D > V4.0G > V5.1 > V5.1B
and as it turned out that the partitions of the system disk has to be
changed a few times, therefore a direct new installation seems to be
more reasonable. The most applications I will re-instal anyway. I am
looking for the best way to get the former basic environment. I am
asking this because changes apply to a production environment and there
is not much time for me playing around.

The most uncertainty for me is to get back the old file system
information (all Advfs) of the other disks without to setup every
domain, fileset manually(mkfdmn, mkfset with the known old parameters).
I cannot copy /etc/fdmns to the system partition because there is a new
one there. It seems to be some tools there (advfsscan?) but I am not
familiar with that.

QUESTION 1: May I copy the subdirectories from old /etc/fdmns into the
new one as to include the old domains? Do I have also to copy the
.advfslock_domain files? What is the most efficient way to get the file
system information from the other connected disks into the new system?


The following questions are of minor importance:

Printer setup: I don't want to make a complete lprsetup at every system.

QUESTION 2: Is it sufficient if I copy (from backup) the old
/etc/printcap and the /etc/spool directory? (The /usr/adm/lperr files
will probably created when needed). 
QUESTION 3: Because no local printers are connected (only network ones,
tcp or lat) I probably don't need /dev/MAKEDEV lp?

Mails: 
QUESTION 4: If I copy the /etc/spool directory I get also
/etc/spool/mail, is this sufficient that the users have there mails
afterwards?

LAT setup: 
I will do a latsetup just to get all /dev/lat/xxx devices.
QUESTION 5: If I copy back the old /etc/latstartup.conf and
/etc/securettys do I have everything? (The /etc/inittab will get the lat
getty information by latsetup anyway)

NIS Setup: 
Of course I want to continue with the old master/slave/client
configuration. 
QUESTION 6: If I copy back the old /var/yp/<nis-domain> directory and
the /var/yp/src directory on the master server, is this sufficient? (I
could run a nissetup afterwards anyway to check it (using modify )?)

Devices:
Old scripts relate to the former device naming like /dev/rmt0h instead
of  /disk/*tape/tape0_d0 etc. or for cdrom /dev/rzxx instead of
/dev/disk/cdrom0c.
QUESTION 7: This has probably all to be changed manually?

Last not least:
If I copy back the /etc files
fstab, exports,
hosts,hosts.eqiv,hosts.allow,bootptap,routes,resolv.conf,shells
(securettys as mentioned above)
I should have most of my old basic configuration.  These are the only
files I remember to have made changes on in the past.
QUESTION 8: Did I forget something important?

SUMMARY, what I believe has to be done
- New Installation
- netsetup
- nfs mount the disk with the backup files
- copy -i /etc/fdmns/* to /etc/fdmns		(subdirectories only)
- copy all mount-points to system root /
- copy from old /etc/ to new /etc:
    fstab
    printcap
    latstartup.conf 
    hosts.* 
    resolv.conf
    routes
    securettys
    ftpusers
    license.dat		(hopefully lmf will see my registered licenses)
    motd
    bootptab 
    tftptab		(one some systems)
    shells 
- copy my additional shells to /usr/bin
- copy -i /usr/skel/* to /usr/skel
- copy /var/spool/* to /var/spool
- copy /var/yp/domain to /var/yp
- copy /var/yp/	src to /var/yp		(at NIS Master)
- do latsetup
- do nissetup	(using modify)
(this should make the proper entries in /etc/rc.config)
- Check:
    /etc/inittab for lat gettys
    /usr/sys/conf/NODENAME for changes made to the old system
- reboot
I hope this will work…

I would appreciate every hint. Thank you. I think is important for
people like me without a deep insight into the system to know the
consequences before. Because the complexity and tedious upgrade
procedures often results in the fact, that one stays too long with
outdated systems.

Of course I will provide a summary or script which contains everything.

Regards
Otto



 -------------------------------------------
| Dr. Otto Titze, Kernphysik TUD           |
| Schlossgartenstr. 9, D-64289 Darmstadt   |
| titze@ikp.tu-darmstadt.de                |
| Tel: +49(6151)16-2916,FAX:16-4321        |
 -------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* SUMMARY: Tru64 new instal - but with old settings
       [not found] ` <3E75CD52.7040204@hp.com>
@ 2003-03-19 14:46   ` Dr. Otto Titze
  2003-03-20 14:35   ` SUMMARY(Followup): " Dr. Otto Titze
  2003-03-20 20:58   ` SUMMARY(Final): " Dr. Otto Titze
  2 siblings, 0 replies; 5+ messages in thread
From: Dr. Otto Titze @ 2003-03-19 14:46 UTC (permalink / raw)
  Cc: Thomas Sjolshagen

Hi all.

I got one very helpful and motivating response from
Thomas Sjolshagen Thomas.Sjolshagen@hp.com (TS)
Also later an answer from Mike Broderick broderic@MIT.EDU (MD)

Thank you both.

I checked most of the issues by a new instal of V4.0G on a former V4.0D
system (I had only this Turbochannel box free therefore I could not
check it with V5.1B. Unfortunately I ran into new troubles, got a
mandatory system on the small box without AdvFS!)

I list here my original questions(Q) together with the answers(TS,MB).

Q: May I copy the subdirectories from old /etc/fdmns into the new one as
to include the old domains? Do I have also to copy the .advfslock_domain
files? 
TS: No, device names changed from rzXXn to diskXXN
MD: The device names will all change in 5.x (e.g., /dev/rzXX to 
/dev/disk/dskXX) so there's no need to save them :-). You may want to 
save output from 'scu show edt' so you know the bus/target/lun (that 
shouldn't chage) and can remap things after the install. (You can also 
rename devices w/ "dsfmgr -m old new" if you don't like the order they 
appeared in. You can also use "dsfmgr -O ..." to create the old v4 
device names until you get all your scripts fixed.

Q:What is the most efficient way to get the file system information from
the other connected disks into the new system?
TS: Use /sbin/advfs/advscan
(My comment: But advscan gives no information about the filsets.
Answer TS: Try to mount with the old fileset names if known. Comment:
Are known because I have fstab)

Check: Worked fine. From a former listing (advscan - a) I could get back
all domains with
advscan -r rzX. Then renamed the new domain names to the old ones.
Copying back the saved fstab and a mount - a gave me the old disk
environment.

Printers:
Q: Is it sufficient if I copy (from backup) the old
/etc/printcap and the /etc/spool directory? (The /usr/adm/lperr files
will probably created when needed). 
TS: Yes
Check: Worked in principle. 

Q: Because no local printers are connected (only network ones, tcp or
lat) I probably don't need /dev/MAKEDEV lp?
TS: Correct

Mails: 
QUESTION 4: If I copy the /var/spool directory I get also
/etc/spool/mail, is this sufficient that the users have there mails
afterwards?
TS: The sendmail changes in V5.1B require new mail configuration.
Afterwards copy /var/spool/mail to the directory sendmail uses.

Check: not checked

LAT setup: 
I will do a latsetup just to get all /dev/lat/xxx devices.
QUESTION 5: If I copy back the old /etc/latstartup.conf and
/etc/securettys do I have everything? (The /etc/inittab will get the lat
getty information by latsetup anyway)
TS: No experience
Check: Creating LAT ttys with latsetup, copy old latstartup.conf,
securettys to /etc
gave the old environment.


NIS Setup: 
Of course I want to continue with the old master/slave/client
configuration. 
QUESTION 6: If I copy back the old /var/yp/<nis-domain> directory and
the /var/yp/src directory on the master server, is this sufficient? (I
could run a nissetup afterwards anyway to check it (using modify )?)
TS: --
Check: This is obviously not as simple as I inspected. After restoring
the old /var/yp files, the nissetup did not recognize it and wanted a
new setup. Then I edited the old NIS settings in /etc/rc.config. Again
calling nissetup showed me the node information and gave the option
"modify". But without completing nissetup NIS was not working. I had to
complete nissetup
Result: For a NIS client or slave it is better to run a fresh nissetup
The question is what happens when I re-instal the master server. I guess
I will restore /var/yp, then run nissetup with master and hope that it
afterwards uses my old files (passwd, group etc.)

Devices:
Old scripts may relate to the former device naming like /dev/rmt0h
instead of  /disk/*tape/tape0_d0 etc. or for cdrom /dev/rzxx instead of
/dev/disk/cdrom0c.
Q: This has probably all to be changed manually?
TS: Yes

Last not least:
If I copy back the /etc files
fstab, exports,
hosts,hosts.eqiv,hosts.allow,bootptap,routes,resolv.conf,shells
(securettys as mentioned above)
I should have most of my old basic configuration.  These are the only
files I remember to have made changes on in the past.
Q: Did I forget something important?
TS: Consider changes in /etc/sysconfigtab. But not copy, edit the old
changes into the new sysconfigtab (Comment: Good idea)


SUMMARY (my personal action/check list, at least till now):
- New Installation 
- advscan -r rzX
- restore /etc/fstab
- mkdir old mount points
- mount -a
- netsetup, nfssetup
- nfs mount the disk with the backup files
- copy from old /etc/ to new /etc:
    printcap
   latstartup.conf 
    hosts.* 
    resolv.conf
    routes
    securettys
    ftpusers
    motd
    bootptab 
    tftptab		(one some systems)
    shells 
- restore /var/adm/lmf/  ldb and ldb_history		(get license database)
- compare /etc/sysconfigtab, edit changes from old /etc/sysconfigtab
- copy -i /usr/skel/* to /usr/skel
- copy /var/spool/lpd* to /var/spool
- mkdir /var/yp
- restore /var/yp/*		(only for NIS master)
- do latsetup
- do nissetup	(using modify)
- Check:
    /etc/inittab for lat gettys
    /usr/sys/conf/NODENAME for changes made to the old system
- doconfig		(if necessary)
This didn't work:
- restore my old additional shells (in particular bash)
(There was a library conflict even between V4.0G and V4.0D)


In the Digital/Compaq/Hp upgrade manuals one can often read "if your
system is old, better do a new installation". But if these advices are
meant seriously one should provide us (normal customers) with a
checklist, what to do in this case. Because I didn't find something in
this direction, that was the reason for this request to the list.

Regards

Otto

BTW, I am a more happy VMS than Unix system manager



 -------------------------------------------
| Dr. Otto Titze, Kernphysik TUD           |
| Schlossgartenstr. 9, D-64289 Darmstadt   |
| titze@ikp.tu-darmstadt.de                |
| Tel: +49(6151)16-2916,FAX:16-4321        |
 -------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* SUMMARY(Followup): Tru64 new instal - but with old settings
       [not found] ` <3E75CD52.7040204@hp.com>
  2003-03-19 14:46   ` SUMMARY: " Dr. Otto Titze
@ 2003-03-20 14:35   ` Dr. Otto Titze
  2003-03-20 17:59     ` SUMMARY(Followup 1): " Dr. Otto Titze
  2003-03-20 20:58   ` SUMMARY(Final): " Dr. Otto Titze
  2 siblings, 1 reply; 5+ messages in thread
From: Dr. Otto Titze @ 2003-03-20 14:35 UTC (permalink / raw)


Hi all.

forget most what I said in my summary. In the test case with V4.0G
everything
looked good. But it is terrible with V5.1B. Recovering of the non-system
disks
worked fine. 

The I copied a lot aof my old files to the new system. Reboot: System
came
up with a lot of errors. Turned out, nearly the who /var directory was 
Missing. Maybe I replaced a lot of links - obviously the whole
directories
consist of CDLS because of the Cluster business...

Installed the system a 2nd time, transfered only a few files (giving
before
a ls -l on the target, just to avoid to overwrite a symbolic link). But
I
managed it anyway after Reboot the /var directory was corrupt.

Now just my 3rd new install is running....

But now the question:
There must be a simple way to transfer a file on a single node (I am not
using Clusters and don't want it) to a particular target directory? (In
VMS one has 
the quite understandable concept with sys$sysroot and sys$common)
There must be a way to copy a node-specific file somewhere without
destroying the hell of CDSLs.

Before: cp /backup/etc/rc.config /etc
Now?:  cp /backup/etc/rc.config  <local-etc-of-this-system> ????

Regards
Otto
 -------------------------------------------
| Dr. Otto Titze, Kernphysik TUD           |
| Schlossgartenstr. 9, D-64289 Darmstadt   |
| titze@ikp.tu-darmstadt.de                |
| Tel: +49(6151)16-2916,FAX:16-4321        |
 -------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* SUMMARY(Followup 1): Tru64 new instal - but with old settings
  2003-03-20 14:35   ` SUMMARY(Followup): " Dr. Otto Titze
@ 2003-03-20 17:59     ` Dr. Otto Titze
  0 siblings, 0 replies; 5+ messages in thread
From: Dr. Otto Titze @ 2003-03-20 17:59 UTC (permalink / raw)


Hi,

it is really curious. After my 3nd new installation ov V5.1B I proceeded
very carefully
- recover other disks
  advscan -r dskX
  mv <new-domain> to <old-domain>
- ls -l /var	(/var looked good as it should be)
- copy old fstab back to /etc
  mount -a
  (All disk were presen)
- ls -l /var	(/var looked good as it should be)
- netsetup
- DNS setup
  (here happened my problem which I desciribed in "Wrong Setup"
- ls -l /var	(/var looked good as it should be)

- made a vdump of / and /usr to tape

-Reboot
The system displayed a lot of errors and did not start the 
X server and I had only a commandline login.
I made
ls -l /var
and now again I had only a few (about 7 directories in /var)

I tried to vrestore -x -o yes 
but got a lot of errors like
"can't overwrite /var with symblic link, exists as directory"
or
"cannot rename temp file, cross-device link"

Now I am just doing th4 4th install...(no language support)

Let's wait and see...

Regards
Otto


^ permalink raw reply	[flat|nested] 5+ messages in thread

* SUMMARY(Final): Tru64 new instal - but with old settings
       [not found] ` <3E75CD52.7040204@hp.com>
  2003-03-19 14:46   ` SUMMARY: " Dr. Otto Titze
  2003-03-20 14:35   ` SUMMARY(Followup): " Dr. Otto Titze
@ 2003-03-20 20:58   ` Dr. Otto Titze
  2 siblings, 0 replies; 5+ messages in thread
From: Dr. Otto Titze @ 2003-03-20 20:58 UTC (permalink / raw)


Hi all,

the solution of my problems came from
"Dr Thomas.Blinn@HP.com" <tpb@doctor.zk3.dec.com>
He pointed out that copying the old fstab was the error. I overlooked
that in the fstab of V5.1 now a special mount for /var exists. By
copying this
got lost.
Somewhat later I got the hint about this different structure also from
"Copeland KCK, Rich" <Rich.Copeland.KCK@gentiva.com>

Thanks to both of you

SUMMARY (my personal action/check list, as it worked now):
- New Installation 
- advscan -r dskX
- edit content of old fstab into new /etc/fstab		!!!
- mount the disk with the backup files
- mkdir old mount points
- mount -a
- netsetup, DNSsetup, nfssetup
- copy from old /etc/ to new /etc:
    printcap
    latstartup.conf 
    hosts.* 
    securettys
    ftpusers
    bootptab 
    tftptab		(one some systems)
    shells 
- do latsetup
- restore /var/adm/lmf/  ldb and ldb_history		(get license database)
- copy -i /usr/skel/* to /usr/skel
- copy /var/spool/lpd* to /var/spool
- do nissetup	
- restore /var/yp/src		(only for NIS master)
- do nissetup	(using modify)
- Check:
    /etc/inittab for lat gettys
    /usr/sys/conf/NODENAME for changes made to the old system
    compare /etc/sysconfigtab, edit changes from old /etc/sysconfigtab

Regards

Otto

 -------------------------------------------
| Dr. Otto Titze, Kernphysik TUD           |
| Schlossgartenstr. 9, D-64289 Darmstadt   |
| titze@ikp.tu-darmstadt.de                |
| Tel: +49(6151)16-2916,FAX:16-4321        |
 -------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-03-20 20:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-17 13:07 Tru64 new instal - but with old settings Dr. Otto Titze
     [not found] ` <3E75CD52.7040204@hp.com>
2003-03-19 14:46   ` SUMMARY: " Dr. Otto Titze
2003-03-20 14:35   ` SUMMARY(Followup): " Dr. Otto Titze
2003-03-20 17:59     ` SUMMARY(Followup 1): " Dr. Otto Titze
2003-03-20 20:58   ` SUMMARY(Final): " Dr. Otto Titze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox