SUMMARY: Update: Alpha wont boot--vm_swap_init

From: Darrell King <darrellk_at_altion.com>
Date: Tue, 27 Jul 1999 17:54:17 +0100

***************original message**************************************
I somehow managed to screw up the /dev/ directory ie i may have deleted all
the entries. DOhhhh!!
now on bootup it obviously cannot find the devices swap etc./
Is there anyway of getting around this, below is where the machine is
hanging.
vm_swap_init:vm_swapon for /dev/rz16b device failed
vm_swap_init:swap is set to lazy (over commitment) mode
***************update**************************************************
 I booted up from the OS cd and exited to unix shell.
 then,
 cd /dev
 ./MAKEDEV rz16 rz17 rz18
 This made all the device files fine.

 Trying to mount the disks
 "mount /dev/rz16a /mnt" gave me an error rz16a contains advfs.
 so i tried "mount -t advfs /dev/rz16a /mnt" which gave me an error, no
such domain fileset or mount dir.
 I decided to mkfdm (this deleted my root directory)
 /sbin/mkfdmn /dev/rz16a dmn16
 "/dev/rrz16a is marked in use for advfs in the disklabel. If you continue
 with this operation you can possibly destroy existing data.continue [y/n],
I awnsered yes.
****************************************************************************
***
As the mkfdmn deleted my file domain i just reinstalled from cd. luckily
there was nothing
on the machine.
I should have recreated the links in /etc/fdmns this would have enabled me
to mount the root_domain which was partition rz16x.

Couple more ideas for next time !!

1) did you try "/sbin/advfs/advscan -a -r" or "/sbin/advfs/advscan -a -r
rz16b"

2) AdvFS file systems are mounted by domain name and fileset
name. The fileset name is part of the information on the
domain. The domain name is provided by the directory name
where the device links are. So, from the top working down,
the mount command for a root might be:
mount -t advfs root_domain#root /mnt
You need to know the fileset name of the root file system.
The domain name, root_domain in this case, is provided by
the directory name in /etc/fdmns. If you make the tree
by hand you'd use:
mkdir /etc/fdmns/root_domain
The membership of the domain is provided via the symbolic
links to devices. In the case of the root_domain it will
be a single link in the root_domain directory.

3) Once the mkfdmn is run, you can't get usually get the data back. The
salvage utility may be able to recover it, but there are no assurances.
What you should have done is:
boot from the cd
makedev
make the /etc/fdmns dir if it's not there
mkdir /etc/fdmns/new_root
cd /etc/fdmns/new_root
ln -s /dev/<whatever>
mount -t advfs new_root#root /mnt
cd /mnt/dev
makedev std
cd /
halt
>>> boot -fl s
When the system boots it would then remake all the disk and tape device
files. You may have to remake the tty devices using makedev.
At this point, you will have to restore the rz16a (root) partition from
backup.

4) Well - i think the / domain is called 'root_domain'
make a directory in /etc called 'fdmns'
make another directory in /etc/fdmns called 'root_domain'
go into /etc/fdmns/root_domain
and then make the symbolic link to /dev/rz16a
then try mounting it
mount root_domain#root /mnt

As usual thanks to all for replies greatly appreciated !

Darrell King
Systems Manager
+353 1 6142430
darrellk_at_altion.com
darrellk_at_apion-ti.com
087-2850314
Received on Tue Jul 27 1999 - 16:55:07 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT