SUMMARY: how to create AdvFS domains in new install from old disk s

From: Cohen, Andy (Andy.Cohen@cognex.com)
Date: Tue May 06 2003 - 15:29:57 EDT


SUMMARY
=======

Thanks to everybody who replied (too many to name). Short answer: DO NOT
ISSUE MKFDMN -- it will delete all metadata and essentially cause one to
lose all data that's there.

There were 2 ways to do this:

1) manually

cd /etc/fdmns
mkdir {domain_name}
cd {domain_name}
showfsets {domain_name}
ln -s /dev/disk/dsk{nx}
[do this for each partition that comprise the domain]
mkdir /{mount_point_for_domain}
mount -t advfs {domain_name}#{domain_file_set_name}
/{mount_point_for_domain}

for instance:

cd /etc/fdmns
mkdir home_domain
cd home_domain
showfsets home_domain
ln -s /dev/disk/dsk4d
mount -t advfs home_domain#users /home

The key information to have from the previous OS is output from a 'df -k',
the contents of /etc/fdmns/* and/or the output from 'showfdmn -k
{domain_name}' for each domain. Fortunately I had this from before I
installed 5.1A.

2) advscan

/sbin/advfs/advscan -r dsk4

will essentially create a file in /etc/fdmns called 'domain_dsk1d' with a
link in that directory to the device-special file for that drive. You can
then just rename this 'domain_dsk4d' to home_domain and be all set.

I tried both ways and they both worked just fine.

However, these domains are still AdvFS v.3 and need to be backed-up,
dropped, recreated, and the data restored to get them up to AdvFS v.4.

Thanks again everybody!

Andy

ORIGINAL QUESTION
=================

Hi,

I have just installed 5.1A (PK4) on a 1000A machine that was previously
running 4.0E. I have the disks from 4.0E still in the cabinet and there is
data still on those (in AdvFS domains) that I want to make available in
5.1A. I haven't changed the disklabels for any of the disks. Can I create
AdvFS domains using the same names and same partitions just using the new
device names?

For instance:

on the old (4.0E) system:

        showfdmn -k home_domain

                       Id Date Created LogPgs Domain Name
        3523e6b8.0009dfad Thu Apr 2 14:27:52 1998 512 home_domain

          Vol 1K-Blks Free % Used Cmode Rblks Wblks Vol Name
           1L 3110877 2347504 25% on 256 256 /dev/rz9d

I believe that /dev/rz9 (on 4.0E) is now /dev/disk/dsk4 in 5.1A.

How do I make home_domain in 5.1A and not lose any data? Do I just 'mkfdmn
/dev/disk/dsk4d home_domain'? What about AdvFS versions? Do I need to do
anything else to get the AdvFS domains to v.4?

Thanks alot!
Andy



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:17 EDT