From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Iain Barker Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: How to change the WWID of an LSM volume or SCSI drive Date: Fri, 05 Sep 2003 10:21:09 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: sea.gmane.org 1062772697 10671 80.91.224.253 (5 Sep 2003 14:38:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Sep 2003 14:38:17 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Sep 05 16:38:15 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19vHj5-0003hb-00 for ; Fri, 05 Sep 2003 16:38:15 +0200 Original-Received: (qmail 12964 invoked by uid 5); 5 Sep 2003 14:38:03 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 12955 invoked by uid 49493); 5 Sep 2003 14:38:03 -0000 Original-Received: from ibarker@aastra.com by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-5.2/5.0):. Processed in 1.62378 secs); 05 Sep 2003 14:38:03 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 5 Sep 2003 14:38:01 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HKQ008C9WNAI3@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 05 Sep 2003 10:38:00 -0400 (EDT) Original-Received: from mail.aastra.com (mail.aastra.com [216.94.98.95]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HKQ000GOWN9EB@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 05 Sep 2003 10:37:57 -0400 (EDT) Original-Received: by mail.aastra.com with Internet Mail Service (5.5.2653.19) id ; Fri, 05 Sep 2003 10:33:54 -0400 Content-return: allowed Original-To: tru64-unix-managers@ornl.gov X-Mailer: Internet Mail Service (5.5.2653.19) Xref: main.gmane.org gmane.os.tru64.managers:5280 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5280 Thanks to Patrick van Gool, Johan Brusche, Robery Mulley for quick responses. For a non-root disk the volclonedg command can be used to save/restore the LSM configuration and import it to the new disk WWID. For the root disk this cannot be done, but starting vold without autoconfig and then manually importing the disk group may work (vold -k -x noloadbalance -x noautoconfig ; voldg -f import rootdg) However, I didn't try that because there was a much easier solution I had totally overlooked... Rather than hack around with the WWID stored in LSM, it is much easier not to use dd for cloning the disk but to create the clone using LSM itself so that the new disk WWID is added into the LSM database *before* transferring the disk to the new system. In my case, the root disk was already encapsulated by LSM into rootdg using volencap, hence adding the new blank disk to the root mirror set is trivial. Using volrootmir to mirror from the rootdg to the new disk will then transfer an exact LSM copy of the working system. Once the mirror / datasync has completed shutdown the system then transfer the new disk to the clone system and it's all set. A side note: volrootmir is much faster on 5.1b than it used to be on 4.0f because it actually copies only the blocks in use on the filessytems, not the entire binary bitmap of the disk as dd does. thanks. -----Original Message----- From: Iain Barker [mailto:ibarker@aastra.com] Sent: Thursday, 04 September, 2003 21:04 To: tru64-unix-managers@ornl.gov Subject: How to change the WWID of an LSM volume or SCSI drive Hi. I am trying to create an exact clone of a Tru64 5.1b system. It uses LSM encapsulation and AdvFS on the root disk. I tried disk labelling a spare drive, booting single user readonly and using dd to copy the drive contents across to the new disk. But the WWID used by LSM is causing problems for vold: lsm:vold: WARNING: Disk dsk0b: Disk rejected as clone lsm:vold: WARNING: Disk dsk0g: Disk rejected as clone lsm:vold: WARNING: Disk dsk0h: Disk rejected as clone lsm:vold: ERROR: enable failed: Error in disk group configuration copies No valid disk found containing disk group; transactions are disabled. LSM: Vold is not enabled for transactions No volumes started I can boot the disk to single user OK, but vold won't start for LSM due to the above. How can I either: 1. Change the WWID of the SCSI disk so that it is identical to the one it was cloned from or 2. Change the WWID stored inside the LSM record to match that of the new disk. Failing that, is there any other way to make a working clone of the root disk? This is using the internal Adaptec SCSI of a DS20 system, no TruCluster. thanks.