NetApp move root vol

From Lolly's Wiki
Jump to navigationJump to search


Migration des Root-Volumes auf ein neues Aggregat

Das kann auch benutzt werden, um auf ein 64-Bit Aggregat zu migrieren...

Anlegen des neuen Root-Volumes

> priv set advanced
*> aggr create aggr0_new -B 64 -t raid4 -d <disk0> <disk1>
*> vol create vol0_new aggr0_new 250g

Kopieren der Daten

Um den ndmpd aktivieren zu können muß mindestens ein Netzwerkinterface einen Link haben!

*> options ndmpd.enable on
*> ndmpcopy -f /vol/vol0 /vol/vol0_new
Ndmpcopy: Starting copy [ 0 ] ...
...
*> vol options vol0_new root
*> reboot

Aufräumen

> vol status
         Volume State           Status            Options
       vol0_new online          raid4, flex       root, create_ucode=on
                                64-bit            
           vol0 online          raid_dp, flex     create_ucode=on
                                64-bit  
> vol offline vol0
> vol destroy vol0
> aggr offline aggr0
> aggr destroy aggr0
> disk zero spares

Setzen der Standard-Namen

> aggr rename aggr0_new aggr0
> vol rename vol0_new vol0
> reboot

Umbau des Aggregat auf raid_dp mit Hilfe der frei gewordenen Platten

> aggr status -r aggr0
Aggregate aggr0 (online, raid4) (block checksums)
  Plex /aggr0/plex0 (online, normal, active, pool0)
    RAID group /aggr0/plex0/rg0 (normal, block checksums)

      RAID Disk Device          HA  SHELF BAY CHAN Pool Type  RPM  Used (MB/blks)    Phys (MB/blks)
      --------- ------          ------------- ---- ---- ---- ----- --------------    --------------
      parity    0a.00.23        0a    0   23  SA:A   0  BSAS  7200 1695466/3472315904 1695759/3472914816 
      data      0a.00.6         0a    0   6   SA:A   0  BSAS  7200 1695466/3472315904 1695759/3472914816 
> aggr options aggr0 raidtype raid_dp
> aggr status -r aggr0
Aggregate aggr0 (online, raid_dp, reconstruct) (block checksums)
  Plex /aggr0/plex0 (online, normal, active, pool0)
    RAID group /aggr0/plex0/rg0 (reconstruction 0% completed, block checksums)

      RAID Disk Device          HA  SHELF BAY CHAN Pool Type  RPM  Used (MB/blks)    Phys (MB/blks)
      --------- ------          ------------- ---- ---- ---- ----- --------------    --------------
      dparity   0a.00.3         0a    0   3   SA:A   0  BSAS  7200 1695466/3472315904 1695759/3472914816 (reconstruction 0% completed)
      parity    0a.00.23        0a    0   23  SA:A   0  BSAS  7200 1695466/3472315904 1695759/3472914816 
      data      0a.00.6         0a    0   6   SA:A   0  BSAS  7200 1695466/3472315904 1695759/3472914816