From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,683a2ed52cda1ce0 X-Google-Attributes: gidfa528,public From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: Switching external disks (ufs file system) Date: 2000/07/07 Message-ID: <8k530p$fuq$1@mailint03.im.hou.compaq.com>#1/1 X-Deja-AN: 643535065 Distribution: world References: <3965D93E.4D67759E@SGMS.SEMA.BE> X-Complaints-To: usenet@mailint03.im.hou.compaq.com X-Trace: mailint03.im.hou.compaq.com 962989913 16346 16.82.16.67 (7 Jul 2000 17:11:53 GMT) Organization: Digital Equipment Corporation Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) NNTP-Posting-Date: 7 Jul 2000 17:11:53 GMT Newsgroups: comp.unix.tru64 In article <3965D93E.4D67759E@SGMS.SEMA.BE>, Miguel Demaerel writes: >I'm a newbie on Tru64. While merely somewhat relevent in this case, it is generally important to know the version of operating system you're running. V5 is significantly different in many ways from V4 and before. >I'wont to switch an external disk with an other external disk. >The file system is ufs. If you don't have a strong attachment to the old device name, this is easy: 1. Label the disk and create a file system on it. # disklabel -wr /dev/... whatever # newfs /dev/... Device names are a case where the version is important, since the naming convention between V5 and earlier differs so much. In the case of "whatever" on the disklabel command, you can use that directly and the command will do what's appropriate. 2. Mount the file system on a temporary mount point: # mount /dev/... /mnt 3. Backup the data and restore it to the new file system: # dump 0f - /file-system | ( cd /mnt ; restore rf - ) If there is a risk that the contents of the file system will change during the backup, you should unmount it first, since you can. Dump only uses the file system name to look up the device from /etc/fstab. This means that fstab needs to be accurate. 4. Unmount the file system and update /etc/fstab to reflect the new device name: # umount /mnt # editor of choice # mount /file-system Done. A clean backup would be wise, since restore will have at least changed all the inode change times. >Now the server is connected to a VSS, we wont to switch to an ESS. I haven't a clue what a VSS is. I'm guessing that an ESS is an external storage system. The operating system really doesn't know internal from half-way across your country of origin, if commands complete within the timeout period imposed by the driver. Devices are named either by their bus address (V4) or the order in which they're initially discovered (V5). >Can someone help me. > >Thanks >Greetings Miguel > > > -- Alan Rollow alan@nabeth.cxo.dec.com