пятница, 27 мая 2011 г.

Создание snapshot в Netware

 Взято от сюда http://www.novell.com/coolsolutions/appnote/17000.html


Let's assume that the production server has a DATA pool and a DATA volume. We want to create a snapshot of the DATA pool hosted on the DATA pool. To do this, key the following commands on the production server.
  1. To create snapshot: mm snap create DATA DATA DATA_S1
  2. The syntax to create a snapshot is: mm snap create snappool datapool snapname The snappool is the pool that I want to take a snapshot of. In this case, it is DATA The datapool is the pool that the snapshot should reside. In this case, it is also DATA. The snapname is the name of my snapshot. In this case, it is DATA_S1
  3. To activate snapshot: mm snap activate DATA_S1
  4. To mount the data volume on the snapshot pool: mount DATA_SV
  5. To deactivate snapshot: mm snap deactivate DATA_S1
  6. To delete snapshot: mm snap delete DATA_S1
Therefore, what we want to achieve is to create and activate a snapshot before the RSYNC synchronization and then after the synchronization is completed, deactivate and delete the snapshot. To achieve this, modify the SYS:\ETC\CRONTAB to include the following lines:
    0 18 * * * TRUSTBAR DATA: -B -V 0 19 * * * SYS:\SYSTEM\CREATESNAPSHOT.NCF 0 20 * * * SYS:\SYSTEM\DATABACKUP.NCF 0 6 * * * SYS:\SYSTEM\DELSNAPSHOT.NCF
where CREASNAPSHOT.NCF contains the following lines:
    mm snap create DATA DATA DATA_S1 delay 60 mm snap activate DATA_S1 delay 60 mount DATA_SV
where DATABACKUP.NCF contains the following lines:
    rsync -rRutvP --delete --volume=DATA_SV: / [IP address of Backup server]::DATA Note: The volume is now DATA_SV not DATA
where DELSNAPSHOT.NCF contains the following lines
    dismount DATA_SV delay 60 mm snap deactivate DATA_S1 delay 60 mm snap delete DATA_S1

 ---------------------------------------------
MM SNAP LIST

Комментариев нет:

Отправить комментарий