Hello Brian,
What about:
vos remove $server $failing_partition $volume.readonly
vos addsite $new_server $good_partition $volume
vos release $volume -verbose
?
Your question prompts consideration of how one might write
a script "unload_failing_disk" to get all the data off onto
a free disk. Move the unreplicated RWs first. But smallest
volumes first or largest?
Of course it helps to have all your partitions the same size
and to keep one empty for this eventuality.
We recently started using a file server with RAID arrays
of SSA disks in an external drawer. The SSA adapter
in the IBM RISC System/6000 fileserver is configured to use
a "hot standby disk". When a disk failure is detected, the
SSA adapter automatically takes care of copying data from
a failing disk to the "hot standby". This is all "invisible"
to the AFS fileserver process because there is another layer
of abstraction between "hdiskN" and the real SSA disk.
The hardware engineer can then simply pull the failed disk
out of the disk drawer and plug a new one in without any
outage on the file server.
The other benefit is that us of RAID arrays of disks (we
used an "hdisk" spread over 5 SSA disks) is the effect of
striping and having multiple heads at work instead of one.
--
paul http://acm.org/~mpb
"The software said it requires Windows 3.1 or better.
So, I installed Linux." --Unknown ;-)
Brian wrote:
> Hello. In the process of replacing a failing disk I find myself
>wanting to move the read-only volumes from that disk onto another disk. I
>accomplished this task by first using the vos remsite command to delete
>the entry pointing to the bad disk. Next, I did an vos addsite to add
>another replicated volume to the new location. Unfortunately, the amount
>of disk freespace on the original disk didn't go up as I expected, although
>I believed the olume was deleted from the original disk. When I performed
>a vos listvldb on the original disk, I still saw the readonly volume there.
>Thinking I could zap it, I did so. The vos zap command warned me that a
>vldb entry still existed, so, when it was done, I did a vos remove
>explicitly on the readonly copy of the volume on the old partition. The
>result was that my read-write copy god deleted and references to all
>read-only copies went as well. So, my question is:
>How do I free space on disks which had readonly volumes on them when I move
>those copies to other disks without trashing the readwrite copy and other
>readonly copies?
>-thanks
>-Brian