From: alan@nabeth.cxo.cpqcorp.net (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: replace hard disk
Date: Thu, 16 May 2002 21:22:02 GMT [thread overview]
Message-ID: <_pVE8.48$rG3.863245@cacnews.cac.cpqcorp.net> (raw)
In-Reply-To: ac2ddi$r4e$1@net44p.hkbu.edu.hk
In article <ac2ddi$r4e$1@net44p.hkbu.edu.hk>, 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)
prev parent reply other threads:[~2002-05-16 21:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-17 8:01 replace hard disk PM Wong
2002-05-16 21:22 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox