* What's the easiest way to replace the root disk (DU V4.0D)?
@ 2000-01-31 5:00 Tim Fredrick
2000-01-31 5:00 ` Adam Price
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Tim Fredrick @ 2000-01-31 5:00 UTC (permalink / raw)
We have an Alphastation running Digital Unix 4.0D and we are having
problems with the disk that holds /, /usr, and the swap area. Right now,
I have access to the drive and would like to swap it for a nice new
18GB drive.
Would it work to simply partition the new drive similarly, mount the
partitions, and use tar or cp -r or some such to move the files from
the current / and /usr to the new drive? Then replace the drive using
the SCSI ID of the failing disk with the new drive?
Or must I reinstall Digital Unix with the new drive in place?
Thanks in advance,
--Tim Fredrick (fredrick@acd.ucar.edu)
NCAR Computer Systems Administration
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: What's the easiest way to replace the root disk (DU V4.0D)?
2000-01-31 5:00 What's the easiest way to replace the root disk (DU V4.0D)? Tim Fredrick
@ 2000-01-31 5:00 ` Adam Price
2000-01-31 5:00 ` mstargard
2000-01-31 5:00 ` Michael Sch�fer
2 siblings, 0 replies; 4+ messages in thread
From: Adam Price @ 2000-01-31 5:00 UTC (permalink / raw)
Tim Fredrick wrote in message <87442b$3cj$1@localhost.localdomain>...
>We have an Alphastation running Digital Unix 4.0D and we are having
>problems with the disk that holds /, /usr, and the swap area. Right now,
>I have access to the drive and would like to swap it for a nice new
>18GB drive.
>
>Would it work to simply partition the new drive similarly, mount the
>partitions, and use tar or cp -r or some such to move the files from
>the current / and /usr to the new drive? Then replace the drive using
>the SCSI ID of the failing disk with the new drive?
>
>Or must I reinstall Digital Unix with the new drive in place?
>
>Thanks in advance,
>
The important things are to make sure that you get bootblocks on
the disk when you disklabel it (see the man page for disklabel),
and to make sure that when you copy the data you retain all permissions.
The problem with tar is that it loses setuid bits, and cp -r copies
symbolic links as real files.
Several other methods are available, you can use dd to copy the raw
binary data from one disk to another (not recommended unless the disks
are the same size), you can use vdump piped into vrestore, or my favourite
you can use pax, it has a built in argument for copying files from one
location to another and will preserve all permissions if you pass it the
right args.
Hope this helps
Adam Price.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: What's the easiest way to replace the root disk (DU V4.0D)?
2000-01-31 5:00 What's the easiest way to replace the root disk (DU V4.0D)? Tim Fredrick
2000-01-31 5:00 ` Adam Price
@ 2000-01-31 5:00 ` mstargard
2000-01-31 5:00 ` Michael Sch�fer
2 siblings, 0 replies; 4+ messages in thread
From: mstargard @ 2000-01-31 5:00 UTC (permalink / raw)
Put the new drive in the box with a different SCSI ID, partition the new
disk with disklabel, and use vdump piped through vrestore to copy the
filesystems from the old disk to the new.
If you are use advfs filesystems on your root disk, then remember to use
the -t advfs switch with disklabel.
Cheers, and good luck,
Mario
In article <87442b$3cj$1@localhost.localdomain>,
fredrick@localhost.localdomain (Tim Fredrick) wrote:
> We have an Alphastation running Digital Unix 4.0D and we are having
> problems with the disk that holds /, /usr, and the swap area. Right
now,
> I have access to the drive and would like to swap it for a nice new
> 18GB drive.
>
> Would it work to simply partition the new drive similarly, mount the
> partitions, and use tar or cp -r or some such to move the files from
> the current / and /usr to the new drive? Then replace the drive
using
> the SCSI ID of the failing disk with the new drive?
>
> Or must I reinstall Digital Unix with the new drive in place?
>
> Thanks in advance,
>
> --Tim Fredrick (fredrick@acd.ucar.edu)
> NCAR Computer Systems Administration
>
>
--
Mario Stargard
UNIX Systems Administrator
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: What's the easiest way to replace the root disk (DU V4.0D)?
2000-01-31 5:00 What's the easiest way to replace the root disk (DU V4.0D)? Tim Fredrick
2000-01-31 5:00 ` Adam Price
2000-01-31 5:00 ` mstargard
@ 2000-01-31 5:00 ` Michael Sch�fer
2 siblings, 0 replies; 4+ messages in thread
From: Michael Sch�fer @ 2000-01-31 5:00 UTC (permalink / raw)
What you can also do, is ...
boot system via CD-Rom to "system management"
do
dd -if=/dev/rrz0c -of=/dev/rrz1c bs=80b
rrz0c could be your root disk and rrz1c could be your new disk Both disks
have to be identical (e.g. rz29/rz29).
dd makes a binary copy of the systemdisk.
after that swap rz1 to rz0
----------------------------------------------------------------------------
----------------------------------------------
Tim Fredrick <fredrick@localhost.localdomain> wrote in message
news:87442b$3cj$1@localhost.localdomain...
> We have an Alphastation running Digital Unix 4.0D and we are having
> problems with the disk that holds /, /usr, and the swap area. Right now,
> I have access to the drive and would like to swap it for a nice new
> 18GB drive.
>
> Would it work to simply partition the new drive similarly, mount the
> partitions, and use tar or cp -r or some such to move the files from
> the current / and /usr to the new drive? Then replace the drive using
> the SCSI ID of the failing disk with the new drive?
>
> Or must I reinstall Digital Unix with the new drive in place?
>
> Thanks in advance,
>
> --Tim Fredrick (fredrick@acd.ucar.edu)
> NCAR Computer Systems Administration
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-01-31 5:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-31 5:00 What's the easiest way to replace the root disk (DU V4.0D)? Tim Fredrick
2000-01-31 5:00 ` Adam Price
2000-01-31 5:00 ` mstargard
2000-01-31 5:00 ` Michael Sch�fer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox