Home > Command Line > Moving / Renaming vol0

Moving / Renaming vol0

There’s been many occasions where I’ve wanted / needed to move the vol0 to somewhere else. Just last week I had a customer that wanted to destroy the root aggregate and move some disks around, but they’d already setup the filer and didn’t want to lose this

The process is actually very simple!

Renaming the vol0 is exceptionally simple and needs no downtime.

vol rename vol0 new_name

And it’ll be done live! You might want to re-export your NFS exports, double check the CIFS shares and update any SnapMirror / SnapVault, but from the filers point of view, all is fine!

To change the filers root volume this is also fairly simple. This can be really useful, so if you copy the vol0 to somewhere else, or you need to recover it from a SnapMirror destination, or you simply just want vol0 in a different aggregate.

First of all you’ll need an extra root volume, this does need to be a complete and full system volume with ONTAP and all the relevant config files already in it. The filer does a quick check, but obviously not a full boot test. Once you have this volume in place, you simply tell the filer this will be the new root volume

vol options vol_name root

And on boot this will become the new system volume. If you’ve moved aggregates, the root aggregate will also get updated.

If for whatever reason you manage to kill the filer by doing this (say you didn’t actually have a full root volume that you told it to use), then go into maintenance mode and you can change the root volume back from within here (CTRL+C on boot, then option 5).

VN:F [1.9.11_1134]
Rate this post:
Rating: 10.0/10 (1 vote cast)
Moving / Renaming vol0, 10.0 out of 10 based on 1 rating

Categories: Command Line Tags: , , , , ,
  1. Chris Holloway
    February 24th, 2009 at 11:40 | #1

    To move the data in vol0 you can use ndmpcopy to do this, though for the filer to work you only need the content of /etc, I normmally copy over the whole volume:

    ndmpcopy vol0 new_vol0

    Then set the new_vol0 to be the root volume and you’re away. You can then destory or rename you old vol0 and rename new_vol0 back to just vol0, so you then don’t need to worry about shares, exports etc.

    Chris

  1. No trackbacks yet.

Bad Behavior has blocked 1168 access attempts in the last 7 days.

© 2009-2012 Chris Kranz All Rights Reserved
This site is not affiliated or sponsored in anyway by NetApp or any other company mentioned within.