Thanks for Dr. Tom Blinn, Johan Brusche and Brian Staab
All pointed me that I missed to change the /etc/fstab file to reflect
the new root and usr AdvFS, and with that the system booted and
reported the problem of fsck-ing the AdvFS
Anyway, I was able to go through the procedure and it worked for me
very well with the following procedure, I hope it could help someone
else:
Procedure to apply AdvFS instead of UFS
MAKE SURE THAT YOU HAVE A VALID BACKUP FOR THE SYSTEM
Boot from CD Installation disk
boot cdrom_device (Example b dka500)
Go to Unix Shell
Make your special devices
cd /dev
./MAKEDEV system_disk tape_drive (ex: ./MAKEDEV rz0 tz15)
Make filedomain and file sets for root
mkfdmn –r –t rz /dev/rz0a root_domain
mkfset root_domain root
Restore root
mount –t advfs root_domain#root /mnt
cd /mnt
vrestore -xvf /dev/nrmt0h (make sure the tape is aligned)
cd /
Make some adjustments
mkdir –p /mnt/etc/fdmns/root_domain
mkdir –p /mnt/etc/fdmns/usr_domain
ln –s /dev/rz0a /mnt/etc/fdmns/root_domain/rz0a
ln –s /dev/rz0g /mnt/etc/fdmns/root_domain/rz0g
cd /mnt/etc
vi fstab
add root_domain#root / advfs rw 1 0
add usr_domain#usr /usr advfs rw 1 0
comment the old lines for root and usr or remove them
cd /
umount /mnt
Make file domain and file sets for /usr
mkfdmn –r –t rz /dev/rz0g usr_domain
mkfset usr_domain usr
Restore usr
mount –t advfs usr_domain#usr /mnt
cd /mnt
vrestore -xvf /dev/nrmt0h (make sure the tape is aligned)
cd /
Boot system
Regards
MKMA
----- Original Message -----
From: "Mohamed K. Ahmed" <mkahmed_at_vsc.teksystems.com>
Date: Thursday, November 14, 2002 8:36 am
Subject: AdvFS Magic Number Wrong
> Hi Admins,
>
> In my project of converting all my file systems from UFS to AdvFS
> on a AS2100 V 4.0G pk#3, I have encountered a problem with the root
> file system. After I finished the procedure below, I got the message
> while fsck'ing the root FS while booting:
>
> /dev/rz0a
> Bad Super Block: Magic Number Wrong
> /dev/rrz0a: Not Labeled as a BSD file system (AdvFS)
>
> I guess I have to make the rz0a bootable partition, but here is
> the procedure I followed from the UNIX manual (but I have to say that
> I used the SAME partition on the SAME disk:
> Backing up the root fs to a tape
> booting from CD
> makedevices
> mkfdmn -r -t rz /dev/rz0a root_domain
> mkfset root_domain root
> mount -t advfs root_domain#root /mnt
> cd /mnt
> vrestore -xv
> **Make it bootable **
> disklabel -r /dev/rrz0a > /tmp/rz0label
> disklabel -t advfs -r -R /dev/rrz0a /tmp/rz0label
> **Change fstab to reflect the new advfs root
> ** shutdown -h now and reboot
>
> Did I miss something
>
>
Received on Thu Nov 14 2002 - 18:41:30 NZDT