From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653643321636.tru64-unix-managers.marc@archive.invalid> From: =?iso-8859-1?Q?Alejandro_Garc=EDa_Borboroglu?= Date: Wed, 07 Nov 2001 12:47:50 +0000 To: tru64-unix-managers Subject: Recoverying the Cluster Root File System X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653643321636 MIME-Version: 1 Content-Type: multipart/mixed; boundary="------=_NextPart_000_02AE_01C16771.43CC1C60" This is a multi-part message in MIME format. ------=_NextPart_000_02AE_01C16771.43CC1C60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I have problems to Recoverying the Cluster Root File System to a New = Disk. My configuration is 2 AlphaServer COMPAQ 800 5/500 C.2 MB Mem 640 MB and DS20E 500 MHz C. 4 MB Mem1024 MB with = RA3000 Cabinets onTru64 Unix 5.1 kit 3 I'm trying this: First, no disk is available to restore to that is on a shared bus = accessible to all cluster members and was part of the cluster configuration before the problems with the root file system occurred This procedure assumes the following: The vdump command was used to back up the cluster root (cluster_root, cluster_usr and cluster_var) file system. If necessary, partition the new disk so that the partition sizes and = file system types will be appropriate once the disk is the cluster root. Create a new domain for the new cluster root: # mkfdmn /dev/disk/dsk5d new_root Make a root fileset in the domain: # mkfset new_root root Mount the domain that will become the new cluster root: # new_root#root /mnt Restore cluster root from the backup media # vrestore -xf /home21/backup_cluster_root -D /mnt Copy the restored cluster databases to the /etc directory: # cd /mnt/etc # cp dec_unid_db dec_hwc_cdb dfsc.dat /etc Copy the restored databases from the member specific area of the current member to /etc: # cd /mnt/cluster/members/member1/etc # cp dfsl.dat /etc If one does not already exist, create a domain for the member boot disk: # cd /etc/fdmns # mkdir root1_domain # ln -s /dev/disk/dsk2a Mount the member boot partition: # cd / # umount /mnt # mount root1_domain#root /mnt (Thats's the Problem) !!! Is Imposible = :( Copy the databases from the member boot partition: # cd /mnt/etc # cp dec_devsw_db dec_hw_db dec_hwc_ldb dec_scsi_db /etc Unmount member boot disk: # cd / # umount /mnt Update the database .bak backup files: # cd /etc # for f in dec_*db ; do cp $f $f.bak ; done Reboot the system into single-user mode using the same base disk, so that it will use the databases that you copied to /etc. After booting to single-user mode, remount the root as writable: # # mount -u / Verify and update the device database: # dsfmgr -v -F Use hwmgr to learn the current device naming: # hwmgr -view hier Do this by going to the appropriate /etc/fdmns directory, deleting the existing link and creating new links to the current device names. For example: # cd /etc/fdmns/root_domain # rm * # ln -s /dev/disk/dsk1a # cd /etc/fdmns/usr_domain # rm * # ln -s /dev/disk/dsk1g # cd /etc/fdmns/root1_domain # rm * # ln -s /dev/disk/dsk3a # cd /etc/fdmns/new_root # rm * # ln -s /dev/disk/dsk7b Run the bcheckrc command to mount local file systems, particularly /usr: # bcheckrc Copy the updated cluster database files onto the cluster root: # mount new_root#root /mnt # cd /etc # cp dec_unid_db* dec_hwc_cdb* dfsc.dat /mnt/etc # cp dfsl.dat /mnt/cluster/members/member1/etc Update the cluster_root domain on the new cluster root: # rm /mnt/etc/fdmns/cluster_root/* # cd /etc/fdmns/new_root # tar cf - * | (cd /mnt/etc/fdmns/cluster_root && tar xf -) Copy the updated cluster database files to the member boot disk # umount /mnt # mount root29_domain#root /mnt # cd /etc # cp dec_devsw_db* dec_hw_db* dec_hwc_ldb* dec_scsi_db* /mnt/etc Use the file command to get the major/minor numbers of the cluster_root devices. Write down these major/minor numbers. For example: # file /dev/disk/dsk7b /dev/disk/dsk7b: block special (19/221) # file /dev/disk/dsk9g /dev/disk/dsk9g: block special (19/227) Halt the system and reboot interactively, specifying the device major and minor numbers of the new cluster root: >>> boot -fl "ia" (boot dkb200.2.0.7.0 -flags ia) block 0 of dkb200.2.0.7.0 is a valid boot block reading 18 blocks from dkb200.2.0.7.0 bootstrap code read in base =3D 200000, image_start =3D 0, image_bytes =3D 2400 initializing HWRPB at 2000 initializing page table at fff0000 initializing machine state setting affinity to the primary CPU jumping to bootstrap code Tru64 UNIX boot - Mon Jan 4 14:08:41 EDT 2000 Enter kernel_name [option_1 ... option_n] Press Return to boot default kernel 'vmunix':vmunix cfs:cluster_root_dev1_maj=3D19 \ cfs:cluster_root_dev1_min=3D227 cfs:cluster_root_dev2_maj=3D19 \ cfs:cluster_root_dev1_min=3D221 Return Boot the other cluster members. run the command dsfmgr -v -F. Any suggestions? Can anyone give me any clues on this, please.=20 Thanks in advance Alejandro Garc=EDa Borboroglu agb@aluar.com.ar System Manager Jr. Tecnolog=EDa Inform=E1tica ALUAR Aluminio Argentino Puerto Madryn - Argentina ------=_NextPart_000_02AE_01C16771.43CC1C60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have problems to = Recoverying the=20 Cluster Root File System to a New=20 Disk.
My configuration is 2 = AlphaServer=20 COMPAQ
800 5/500 C.2 MB Mem 640 MB and DS20E 500 MHz  C. 4 MB = Mem1024 MB=20 with RA3000 Cabinets onTru64 Unix 5.1 kit 3
I'm trying = this:
First, no disk is = available to=20 restore to that is on a shared bus accessible to all
cluster members = and was=20 part of the cluster configuration before the
problems with the root = file=20 system occurred
This procedure assumes the following:
The vdump = command=20 was used to back up the cluster root
(cluster_root, cluster_usr and=20 cluster_var) file system.
If necessary, partition the new disk so = that the=20 partition sizes and file
system types will be appropriate once the = disk is=20 the cluster root.
Create a new domain for the new cluster root:
# = mkfdmn=20 /dev/disk/dsk5d new_root
Make a root fileset in the domain:
# = mkfset=20 new_root root
Mount the domain that will become the new cluster = root:
#=20 new_root#root /mnt
 Restore cluster root from the backup = media
#=20 vrestore -xf /home21/backup_cluster_root -D /mnt
Copy the restored = cluster=20 databases to the /etc directory:
# cd /mnt/etc
# cp dec_unid_db=20 dec_hwc_cdb dfsc.dat /etc
Copy the restored databases from the member = specific area of the
current member to /etc:
# cd=20 /mnt/cluster/members/member1/etc
# cp dfsl.dat /etc
If one does = not=20 already exist, create a domain for the member boot disk:
# cd = /etc/fdmns
#=20 mkdir root1_domain
# ln -s /dev/disk/dsk2a
 Mount the member = boot=20 partition:
# cd /
# umount /mnt
#=20 mount root1_domain#root /mnt  (Thats's the Problem) !!! Is = Imposible=20 :(
Copy the databases from the member boot = partition:
# cd=20 /mnt/etc
# cp dec_devsw_db dec_hw_db dec_hwc_ldb dec_scsi_db = /etc
Unmount=20 member boot disk:
# cd /
# umount /mnt
Update the database .bak = backup=20 files:
# cd /etc
# for f in dec_*db ; do cp $f $f.bak ; = done
Reboot the=20 system into single-user mode using the same base disk, so
that it = will use=20 the databases that you copied to /etc.
After booting to single-user = mode,=20 remount the root as writable:
# # mount -u /
Verify and update the = device=20 database:
# dsfmgr -v -F
Use hwmgr to learn the current = device=20 naming:
# hwmgr -view hier
Do this by going to the appropriate = /etc/fdmns=20 directory, deleting
the existing link and creating new links to the = current=20 device names.
For example:
# cd /etc/fdmns/root_domain
# rm = *
# ln=20 -s /dev/disk/dsk1a
# cd /etc/fdmns/usr_domain
# rm *
# ln -s=20 /dev/disk/dsk1g
# cd /etc/fdmns/root1_domain
# rm *
# ln -s=20 /dev/disk/dsk3a
# cd /etc/fdmns/new_root
# rm *
# ln -s=20 /dev/disk/dsk7b
Run the bcheckrc command to mount local file systems, = particularly
/usr:
# bcheckrc
Copy the updated cluster database = files=20 onto the cluster root:
# mount new_root#root /mnt
# cd /etc
# = cp=20 dec_unid_db* dec_hwc_cdb* dfsc.dat /mnt/etc
# cp dfsl.dat=20 /mnt/cluster/members/member1/etc
Update the cluster_root domain on = the new=20 cluster root:
# rm /mnt/etc/fdmns/cluster_root/*
# cd=20 /etc/fdmns/new_root
# tar cf - * | (cd /mnt/etc/fdmns/cluster_root = &&=20 tar xf -)
Copy the updated cluster database files to the member boot=20 disk
# umount /mnt
# mount root29_domain#root /mnt
# cd = /etc
# cp=20 dec_devsw_db* dec_hw_db* dec_hwc_ldb*
dec_scsi_db* /mnt/etc
Use = the file=20 command to get the major/minor numbers of the
cluster_root devices. = Write=20 down these major/minor numbers.
For example:
# file=20 /dev/disk/dsk7b
/dev/disk/dsk7b: block special (19/221)
# file=20 /dev/disk/dsk9g
/dev/disk/dsk9g: block special (19/227)
Halt the = system=20 and reboot interactively, specifying the device major
and minor = numbers of=20 the new cluster root:
>>> boot -fl "ia"
(boot = dkb200.2.0.7.0=20 -flags ia)
block 0 of dkb200.2.0.7.0 is a valid boot block
reading = 18=20 blocks from dkb200.2.0.7.0
bootstrap code read in
base =3D 200000, = image_start =3D 0, image_bytes =3D 2400
initializing HWRPB at=20 2000
initializing page table at fff0000
initializing machine=20 state
setting affinity to the primary CPU
jumping to bootstrap=20 code
Tru64 UNIX boot - Mon Jan 4 14:08:41 EDT 2000
Enter = kernel_name=20 [option_1 ... option_n]
Press Return to boot default=20 kernel
’vmunix’:vmunix cfs:cluster_root_dev1_maj=3D19=20 \
cfs:cluster_root_dev1_min=3D227 cfs:cluster_root_dev2_maj=3D19=20 \
cfs:cluster_root_dev1_min=3D221 Return
Boot the other cluster=20 members.
run the command dsfmgr -v -F.
 
Any=20 suggestions? Can anyone give me any clues on this, please. =
 
Thanks in = advance
 
Alejandro Garc=EDa = Borboroglu
agb@aluar.com.ar
System Manager=20 Jr.
Tecnolog=EDa Inform=E1tica
ALUAR Aluminio Argentino
Puerto = Madryn -=20 Argentina
 
------=_NextPart_000_02AE_01C16771.43CC1C60--