[OpenAFS] Automatic move of volumes
Wed, 24 Oct 2007 09:18:24 -0400
On 10/24/07, Steve Devine <firstname.lastname@example.org> wrote:
> Jacob Volstrup wrote:
...run vos listvol 'servername vicepX'
> >somefile and then grep out the RW vols and use a perl script to move
> em. If you have RO vols then you need to make sure you deal with them.
> But its pretty straight forward.
Assuming your new location does not already have the ROs on it:
1 vos listvol to get the list of volumes to move; if the old location
is not empty, then, in this order:
2 For RO volumes: vos addsite to the new location, vos release, vos
remove old ROs
3 For RW volumes: vos move
4 For .backup volumes: vos backup (or backupsys, depending on how you
made them in the first place) once the RW volumes are moved
5 Goto 1
All this can be done while users are accessing their data, but if you
do this at a relatively quiet time you can avoid some potential
problems (eg, when this is done, snapshots are taken -- if the
volserver can't get a 'good' snapshot, the vos move will fail; clients
may see messages about a volume being busy; etc).