Sunday, October 17, 2010

Moving the Root Volume in NetApp

When you move the root volume you need to do the following:

* Create a new aggregate on the array for that root volume.
* Copy the root volume to the new aggregate.
* Destroy the original root volume and its containing aggregate.
* Check th eInstallation Requirements, Quick Start, and Reference Guide to determine the minimum root volume size for your system model.


Steps:
1. Check the output from sysconfig -r to ensure that adequate size for the root volume is available on the storage array where you want the root volume.

2. Create a new aggregate for the new root volume. This command creates an aggregate to contain a FlexVol root volume:
cherry-top# aggr create aggr_new -r 14 -T FCAL -r raid_dp -d 0a.23 0a.24 0a.25

3. Create a FlexVol for the root volume:
cherry-top# vol create vol0_new aggr_new -s 30g

4. Vol copy or ndmpcopy to copy the root volume to the new root volume:
yellow# ndmpcopy /vol/vol0 /vol/vol0_new
if its a volcopy then restrict it to prevent data access while you are moving the root volume:
cherry-top# vol restrict vol0_new

5. Specify that the volume named volroot will become the root volume after the next reboot:
cherry-top# vol options vol0_new root

6. Reboot the system and check the system integrity:
cherry-top# reboot


7. Check the system to ensure vol options
cherry-top# vol status


8. Offline/destroy the original root volume and destroy the aggregate
cherry-top# vol offline vol0
cherry-top# vol destroy vol0
cherry-top# aggr offline aggr_old
cherry-top# aggr destroy aggr_old

No comments:

Post a Comment