From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,c86571b296ed072e X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-05-16 14:16:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!cacnews.cac.cpqcorp.net!53ab2750!not-for-mail Newsgroups: comp.unix.tru64 From: alan@nabeth.cxo.cpqcorp.net (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Distribution: world References: Reply-To: alan@nabeth.cxo.cpqcorp.net (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: replace hard disk Message-ID: <_pVE8.48$rG3.863245@cacnews.cac.cpqcorp.net> Date: Thu, 16 May 2002 21:22:02 GMT NNTP-Posting-Host: 16.112.5.128 X-Complaints-To: abuse@Compaq.com X-Trace: cacnews.cac.cpqcorp.net 1021584122 16.112.5.128 (Thu, 16 May 2002 14:22:02 PDT) NNTP-Posting-Date: Thu, 16 May 2002 14:22:02 PDT Organization: Hewlett-Packard Co. Xref: archiver1.google.com comp.unix.tru64:7700 In article , s11976@net1.hkbu.edu.hk (PM Wong) writes: > >I'm about to replace an error-proned h/d >The same rz# will remain >Now what are the steps ? >Do i still have to do the disklabel -rw >(or is disklabel -z necessary too?) >before the newfs You're a little spare (very really) on details, but... Since you say "rz#", I'll assume you're running V4 or earlier. Since you mentioned newfs, I'll assume you're using UFS for the file system. 1. Verify or ensure you have a good backup. 2. If you have to unterminate the SCSI bus to remove the disk, shutdown the system. If you're using an enclosure that claims to support hot swap, then you can probably replace the disk without rebooting the system. 3. Replace the disk. If you didn't have to reboot, use scu(8) to scan the bus and verify it can see the disk. You might want to run a simple I/O test to verify the new disk works. 4. Label the disk. It shouldn't be necessary to erase the old label (-z) because there shouldn't be an old label. However, it depends on where the replacement came from. You might simply want to run disklabel(8) without any options to see if there is one. If so, see if serves your purpose. If not, clear it and write a new one. 5. Create the file system. 6. Restore from the backup. > -- Alan Rollow alan@nabeth.cxo.cpqcorp.net (previously .dec.com)