From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Cohen, Andy" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: how to create AdvFS domains in new install from old disk s Date: Tue, 06 May 2003 15:29:57 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <9D592DB37A92234AB635C5585D2D08193C5088@cobra.pc.cognex.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: main.gmane.org 1052249398 3064 80.91.224.249 (6 May 2003 19:29:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 6 May 2003 19:29:58 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue May 06 21:29:56 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19D87e-0000jD-00 for ; Tue, 06 May 2003 21:29:06 +0200 Original-Received: (qmail 6978 invoked by uid 5); 6 May 2003 19:30:20 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 6969 invoked by uid 49493); 6 May 2003 19:30:20 -0000 Original-Received: from Andy.Cohen@cognex.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(4.7/5.0):. Processed in 0.465304 secs); 06 May 2003 19:30:20 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 6 May 2003 19:30:20 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HEH008RWCUG0Z@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 06 May 2003 15:30:17 -0400 (EDT) Original-Received: from paloalto-smrly2.gtei.net (paloalto-smrly2.gtei.net [131.119.246.6]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HEH008HWCU4W8@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 06 May 2003 15:30:04 -0400 (EDT) Original-Received: from cognex-nk (cognex-cp.cognex.com [198.232.30.75]) by paloalto-smrly2.gtei.net (Postfix) with SMTP id B4B376C32 for ; Tue, 06 May 2003 19:30:02 +0000 (GMT) Original-Received: from cognex-gw.cognex.com ([198.232.25.129]) by cognex-nk; Tue, 06 May 2003 15:25:21 -0400 (EDT) Original-To: "Tru64-Unix-Managers \(E-mail\)" X-MIMEOLE: urn:content-classes:message X-Mailer: Internet Mail Service (5.5.2653.19) content-class: urn:content-classes:message x-scanned-by: urn:content-classes:message x-spam-score: urn:content-classes:message x-canitpro-stream: urn:content-classes:message Xref: main.gmane.org gmane.os.tru64.managers:4144 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4144 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