From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Mohamed K. Ahmed" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Applying AdvFS instead of UFS on / & /usr WAS: AdvFS Magic Number Wrong Date: Thu, 14 Nov 2002 13:42:18 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <43861a6f.1a6f4386@vsc.teksystems.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1037299170 10954 80.91.224.249 (14 Nov 2002 18:39:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 14 Nov 2002 18:39:30 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18COtk-0002qY-00 for ; Thu, 14 Nov 2002 19:39:28 +0100 Original-Received: (qmail 25759 invoked by uid 5); 14 Nov 2002 18:41:00 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 25750 invoked by uid 49493); 14 Nov 2002 18:41:00 -0000 Original-Received: from mkahmed@vsc.teksystems.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-4.0/5.0):. Processed in 0.463476 secs); 14 Nov 2002 18:41:00 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 14 Nov 2002 18:40:59 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5K00G12X893B@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 14 Nov 2002 13:40:58 -0500 (EST) Original-Received: from mail.vsc.teksystems.com (mail.vsc.teksystems.com [63.73.230.193]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H5K009JWX7XGC@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 14 Nov 2002 13:40:46 -0500 (EST) Original-Received: from vsc.teksystems.com ([127.0.0.1]) by mail.vsc.teksystems.com (Netscape Messaging Server 4.1) with ESMTP id H5KXAI00.301 for ; Thu, 14 Nov 2002 13:42:18 -0500 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Netscape Webmail Content-language: en Content-Disposition: inline X-Accept-Language: en Xref: main.gmane.org gmane.os.tru64.managers:2445 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2445 Thanks for Dr=2E Tom Blinn=2C 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=2C and with that the system booted and = reported the problem of fsck-ing the AdvFS Anyway=2C I was able to go through the procedure and it worked for me = very well with the following procedure=2C I hope it could help someone = else=3A 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=5Fdevice (Example b dka500) Go to Unix Shell Make your special devices cd /dev =2E/MAKEDEV system=5Fdisk tape=5Fdrive (ex=3A =2E/MAKEDEV rz0 tz15)= Make filedomain and file sets for root mkfdmn =96r =96t rz /dev/rz0a root=5Fdomain mkfset root=5Fdomain root Restore root mount =96t advfs root=5Fdomain=23root /mnt cd /mnt vrestore -xvf /dev/nrmt0h (make sure the tape is aligned) cd / = Make some adjustments mkdir =96p /mnt/etc/fdmns/root=5Fdomain mkdir =96p /mnt/etc/fdmns/usr=5Fdomain ln =96s /dev/rz0a /mnt/etc/fdmns/root=5Fdomain/rz0a ln =96s /dev/rz0g /mnt/etc/fdmns/root=5Fdomain/rz0g cd /mnt/etc vi fstab add root=5Fdomain=23root / advfs rw 1 0 add usr=5Fdomain=23usr /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 =96r =96t rz /dev/rz0g usr=5Fdomain mkfset usr=5Fdomain usr Restore usr mount =96t advfs usr=5Fdomain=23usr /mnt cd /mnt vrestore -xvf /dev/nrmt0h (make sure the tape is aligned) cd / = Boot system Regards MKMA ----- Original Message ----- From=3A =22Mohamed K=2E Ahmed=22 =3Cmkahmed=40vsc=2Eteksystems=2Ecom=3E Date=3A Thursday=2C November 14=2C 2002 8=3A36 am Subject=3A AdvFS Magic Number Wrong =3E Hi Admins=2C =3E = =3E In my project of converting all my file systems from UFS to AdvFS = =3E on a AS2100 V 4=2E0G pk=233=2C I have encountered a problem with the = root = =3E file system=2E After I finished the procedure below=2C I got the mess= age = =3E while fsck=27ing the root FS while booting=3A =3E = =3E /dev/rz0a =3E Bad Super Block=3A Magic Number Wrong =3E /dev/rrz0a=3A Not Labeled as a BSD file system (AdvFS) =3E = =3E I guess I have to make the rz0a bootable partition=2C but here is = =3E the procedure I followed from the UNIX manual (but I have to say that= = =3E I used the SAME partition on the SAME disk=3A =3E Backing up the root fs to a tape =3E booting from CD =3E makedevices =3E mkfdmn -r -t rz /dev/rz0a root=5Fdomain =3E mkfset root=5Fdomain root =3E mount -t advfs root=5Fdomain=23root /mnt =3E cd /mnt =3E vrestore -xv =3E **Make it bootable ** =3E disklabel -r /dev/rrz0a =3E /tmp/rz0label =3E disklabel -t advfs -r -R /dev/rrz0a /tmp/rz0label =3E **Change fstab to reflect the new advfs root =3E ** shutdown -h now and reboot =3E = =3E Did I miss something =3E = =3E