Ads

Searching...

Ads

Friday, December 10, 2010

How to migrate root volume to new volume in netapp

December 10, 2010

Procedure

Currently disks cannot be directly removed from any traditional volume or aggregate, a new root volume must be created then the data can be migrated. If there are enough spare disks available to create a new root volume

  1. Create a new volume ("root") with 2 disks:
    filer> vol create root 2
  2. Verify that the volume settings of vol0 and root are the same:
    filer> vol status -v
  3. Verify that NDMPD is enabled:
    filer> options ndmpd.enable
  4. Copy the contents of vol0 to root:
    filer> ndmpcopy /vol/vol0/etc /vol/root/etc
  5. Make the "root" volume the root volume with the following command:
    filer> vol options root root
  6. Verify that the used space of root is the same as vol0
    filer> df

To change the C$ share to map to the new root volume:

  1. Determine which shares have a vol0 path:
    filer> cifs shares
  2. filer> cifs shares -delete  C$
  3. filer> cifs shares -add C$ /vol/root
  4. filer> cifs access C$ BUILTIN\Administrators Full Control
  5. filer> cifs access -delete C$ everyone

Eventually add more groups to this share. Do the same for any other shares with the path vol0.

To reboot filer and destroy the volume, follow these steps:

  1. Verify that the new volume root is shared:
    filer> cifs shares
  2. Make the necessary changes in the /etc/exports file to ensure the path to the root volume eventually exported is mountable from a UNIX machine
  3. Reboot the filer
    filer> reboot
  4. Verify that vol0 is marked offline
    filer> vol offline vol0
  5. Destroy the volume
    filer> vol destroy vol0

0 comments:

Post a Comment

Ads