tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
To: tru64-unix-managers
Subject: Recoverying the Cluster Root File System
Date: Wed, 07 Nov 2001 12:47:50 +0000	[thread overview]
Message-ID: <102653643321636.tru64-unix-managers.marc@archive.invalid> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="------=_NextPart_000_02AE_01C16771.43CC1C60", Size: 11106 bytes --]


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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000080 face=3DTahoma size=3D2>I have problems to =
Recoverying the=20
Cluster Root File System <FONT color=3D#800080><EM>to a New=20
Disk.</EM></FONT></FONT></DIV>
<DIV><FONT color=3D#000080 face=3DTahoma size=3D2>My configuration is 2 =
AlphaServer=20
COMPAQ<BR>800 5/500 C.2 MB Mem 640 MB and DS20E 500 MHz&nbsp; C. 4 MB =
Mem1024 MB=20
with RA3000 Cabinets onTru64 Unix 5.1 kit 3</FONT></DIV>
<DIV><FONT color=3D#000080 face=3DTahoma size=3D2>I'm trying =
this:</FONT></DIV>
<DIV><FONT color=3D#000080 face=3DTahoma size=3D2>First, no disk is =
available to=20
restore to that is on a shared bus accessible to all<BR>cluster members =
and was=20
part of the cluster configuration before the<BR>problems with the root =
file=20
system occurred<BR>This procedure assumes the following:<BR>The vdump =
command=20
was used to back up the cluster root<BR>(cluster_root, cluster_usr and=20
cluster_var) file system.<BR>If necessary, partition the new disk so =
that the=20
partition sizes and file<BR>system types will be appropriate once the =
disk is=20
the cluster root.<BR>Create a new domain for the new cluster root:<BR># =
mkfdmn=20
/dev/disk/dsk5d new_root<BR>Make a root fileset in the domain:<BR># =
mkfset=20
new_root root<BR>Mount the domain that will become the new cluster =
root:<BR>#=20
new_root#root /mnt<BR>&nbsp;Restore cluster root from the backup =
media<BR>#=20
vrestore -xf /home21/backup_cluster_root -D /mnt<BR>Copy the restored =
cluster=20
databases to the /etc directory:<BR># cd /mnt/etc<BR># cp dec_unid_db=20
dec_hwc_cdb dfsc.dat /etc<BR>Copy the restored databases from the member =

specific area of the<BR>current member to /etc:<BR># cd=20
/mnt/cluster/members/member1/etc<BR># cp dfsl.dat /etc<BR>If one does =
not=20
already exist, create a domain for the member boot disk:<BR># cd =
/etc/fdmns<BR>#=20
mkdir root1_domain<BR># ln -s /dev/disk/dsk2a<BR>&nbsp;Mount the member =
boot=20
partition:<BR># cd /<BR># umount /mnt<BR><STRONG><FONT color=3D#ff0000 =
size=3D4>#=20
mount root1_domain#root /mnt&nbsp; (Thats's the Problem) !!! Is =
Imposible=20
:(</FONT></STRONG><BR>Copy the databases from the member boot =
partition:<BR># cd=20
/mnt/etc<BR># cp dec_devsw_db dec_hw_db dec_hwc_ldb dec_scsi_db =
/etc<BR>Unmount=20
member boot disk:<BR># cd /<BR># umount /mnt<BR>Update the database .bak =
backup=20
files:<BR># cd /etc<BR># for f in dec_*db ; do cp $f $f.bak ; =
done<BR>Reboot the=20
system into single-user mode using the same base disk, so<BR>that it =
will use=20
the databases that you copied to /etc.<BR>After booting to single-user =
mode,=20
remount the root as writable:<BR># # mount -u /<BR>Verify and update the =
device=20
database:<BR>#&nbsp;dsfmgr -v -F<BR>Use hwmgr to learn the current =
device=20
naming:<BR># hwmgr -view hier<BR>Do this by going to the appropriate =
/etc/fdmns=20
directory, deleting<BR>the existing link and creating new links to the =
current=20
device names.<BR>For example:<BR># cd /etc/fdmns/root_domain<BR># rm =
*<BR># ln=20
-s /dev/disk/dsk1a<BR># cd /etc/fdmns/usr_domain<BR># rm *<BR># ln -s=20
/dev/disk/dsk1g<BR># cd /etc/fdmns/root1_domain<BR># rm *<BR># ln -s=20
/dev/disk/dsk3a<BR># cd /etc/fdmns/new_root<BR># rm *<BR># ln -s=20
/dev/disk/dsk7b<BR>Run the bcheckrc command to mount local file systems, =

particularly<BR>/usr:<BR># bcheckrc<BR>Copy the updated cluster database =
files=20
onto the cluster root:<BR># mount new_root#root /mnt<BR># cd /etc<BR># =
cp=20
dec_unid_db* dec_hwc_cdb* dfsc.dat /mnt/etc<BR># cp dfsl.dat=20
/mnt/cluster/members/member1/etc<BR>Update the cluster_root domain on =
the new=20
cluster root:<BR># rm /mnt/etc/fdmns/cluster_root/*<BR># cd=20
/etc/fdmns/new_root<BR># tar cf - * | (cd /mnt/etc/fdmns/cluster_root =
&amp;&amp;=20
tar xf -)<BR>Copy the updated cluster database files to the member boot=20
disk<BR># umount /mnt<BR># mount root29_domain#root /mnt<BR># cd =
/etc<BR># cp=20
dec_devsw_db* dec_hw_db* dec_hwc_ldb*<BR>dec_scsi_db* /mnt/etc<BR>Use =
the file=20
command to get the major/minor numbers of the<BR>cluster_root devices. =
Write=20
down these major/minor numbers.<BR>For example:<BR># file=20
/dev/disk/dsk7b<BR>/dev/disk/dsk7b: block special (19/221)<BR># file=20
/dev/disk/dsk9g<BR>/dev/disk/dsk9g: block special (19/227)<BR>Halt the =
system=20
and reboot interactively, specifying the device major<BR>and minor =
numbers of=20
the new cluster root:<BR>&gt;&gt;&gt; boot -fl "ia"<BR>(boot =
dkb200.2.0.7.0=20
-flags ia)<BR>block 0 of dkb200.2.0.7.0 is a valid boot block<BR>reading =
18=20
blocks from dkb200.2.0.7.0<BR>bootstrap code read in<BR>base =3D 200000, =

image_start =3D 0, image_bytes =3D 2400<BR>initializing HWRPB at=20
2000<BR>initializing page table at fff0000<BR>initializing machine=20
state<BR>setting affinity to the primary CPU<BR>jumping to bootstrap=20
code<BR>Tru64 UNIX boot - Mon Jan 4 14:08:41 EDT 2000<BR>Enter =
kernel_name=20
[option_1 ... option_n]<BR>Press Return to boot default=20
kernel<BR>&#8217;vmunix&#8217;:vmunix cfs:cluster_root_dev1_maj=3D19=20
\<BR>cfs:cluster_root_dev1_min=3D227 cfs:cluster_root_dev2_maj=3D19=20
\<BR>cfs:cluster_root_dev1_min=3D221 Return<BR>Boot the other cluster=20
members.<BR>run the command dsfmgr -v -F.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000080 face=3DTahoma size=3D2><FONT face=3DArial =
size=3D2>Any=20
suggestions?</FONT> Can anyone give me any clues on this, please. =
</FONT></DIV>
<DIV><FONT color=3D#000080 face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000080 face=3DTahoma size=3D2>Thanks in =
advance</FONT></DIV>
<DIV><FONT color=3D#000080 face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000080 face=3DTahoma size=3D2>Alejandro Garc=EDa =
Borboroglu<BR><A=20
href=3D"mailto:agb@aluar.com.ar">agb@aluar.com.ar</A><BR>System Manager=20
Jr.<BR>Tecnolog=EDa Inform=E1tica<BR>ALUAR Aluminio Argentino<BR>Puerto =
Madryn -=20
Argentina<BR></DIV></FONT>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_02AE_01C16771.43CC1C60--

                 reply	other threads:[~2001-11-07 12:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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