[OpenAFS] Automatic move of volumes

Derrick Brashear shadow@gmail.com
Wed, 24 Oct 2007 09:29:02 -0400


------=_Part_4964_10116244.1193232542815
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 10/24/07, Steven Jenkins <steven.jenkins@gmail.com> wrote:
>
> On 10/24/07, Steve Devine <sdevine@msu.edu> 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


perl scripts exist to do it and I think have been posted here in the past;
they may even deal with the "RO already exists" case.

the interesting case is where the RW has unreleased changes and you want to
recreate the ROs as they are now. i don't know of distributed tools to do
this.

------=_Part_4964_10116244.1193232542815
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<br><br><div><span class="gmail_quote">On 10/24/07, <b class="gmail_sendername">Steven Jenkins</b> &lt;<a href="mailto:steven.jenkins@gmail.com">steven.jenkins@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 10/24/07, Steve Devine &lt;<a href="mailto:sdevine@msu.edu">sdevine@msu.edu</a>&gt; wrote:<br>&gt; Jacob Volstrup wrote:<br>...run vos listvol &#39;servername vicepX&#39;<br>&gt;&nbsp;&nbsp;&gt;somefile and then grep out the RW vols and use a perl script to move
<br>&gt; em. If you have RO vols then you need to make sure you deal with them.<br>&gt; But its pretty straight forward.<br><br><br>Assuming your new location does not already have the ROs on it:<br><br>1 vos listvol to get the list of volumes to move; if the old location
<br>is not empty, then, in this order:<br><br>2 For RO volumes: vos addsite to the new location, vos release, vos<br>remove old ROs<br>3 For RW volumes: vos move<br>4 For .backup volumes: vos backup (or backupsys, depending on how you
<br>made them in the first place) once the RW volumes are moved<br>5 Goto 1</blockquote><div><br>perl scripts exist to do it and I think have been posted here in the past; they may even deal with the &quot;RO already exists&quot; case.
<br><br>the interesting case is where the RW has unreleased changes and you want to recreate the ROs as they are now. i don&#39;t know of distributed tools to do this.<br><br></div></div><br>

------=_Part_4964_10116244.1193232542815--