From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,439bb536670e77a X-Google-Attributes: gidfee84,public From: Erik Persson Subject: Re: Moving an AdvFS domain Date: 1998/08/01 Message-ID: #1/1 X-Deja-AN: 376970347 Content-Transfer-Encoding: 8bit Sender: erik@sibelius.ikp.liu.se References: <35C1F344.41C6@ftp.unina.it> Content-Type: text/plain; charset=iso-8859-1 Organization: IKP - Link�ping University Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 FTP Administrator writes: > Hello, > > I'd like to know if it's possible to move an AdvFS composed by several > disks to another > machine and to have it alive again without to suffer data losses. > > We have a machine suffered a major disk failure on the system disk > (ufs), so we have to > change it. How can save info about structure of a advfs domain > containing some > important data? > > TIA, > > Massimo Gais Just to state the obvious: Make sure you have good backups. If you don't, beware of murphys law. I have done this a lot of times with no particular problems - except one major one: When I upgraded from 4.0B to 4.0D on a file server one file domain (the largest one) could not be brought alive again - any attempt to do so panicked the machine. I am not the only one being bitten by this either, so be wary when moving file domains from pre-4.0D to 4.0D. Having said this, all you need is to use the command 'advscan' (located in /sbin/advfs/) on the other machine in order to automatically restore the file domains. Check the man page for details. For example, if you move two disks and they show up as rz2 and rz3 you would use 'advscan -r rz2 z3' in order to scan the disks and create device links and directories in /etc/fdmns. The domain names themselves cannot be restored so advscan will create new names based on the device names involved. To change the names, simply rename the corresponding directories in /etc/fdmns to somethig you like better. Fileset names will be correct though. Good luck, /Erik -- Erik Persson, System Manager e-mail: erik@ikp.liu.se Dept. of Mech. Engineering Voice: +46 13 28 2464 University of Link�ping, Sweden Fax: +46 13 21 2717