使用此过程来备份群集节点的根 ( /) 文件系统。 在执行此备份过程前请确保该群集正在无故障运行。
成为您要备份的群集节点的超级用户。
将正在运行的数据服务从将要备份的那个节点切换到群集内另外一个节点上。
| # scswitch -z -D disk-device-group[,...] -h node[,...] | 
执行切换。
要切换的磁盘设备组的名称。
要将该磁盘设备组切换到其中的群集节点的名称。 该节点将成为新的主节点。
关闭该节点。
| # shutdown -g0 -y -i0 | 
SPARC:
| ok boot -x | 
x86:
|                       <<< Current Boot Parameters >>>
Boot path: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/
sd@0,0:a
Boot args:
Type  b [file-name] [boot-flags] <ENTER> to boot with options
or    i <ENTER>                          to enter boot interpreter
or    <ENTER>                            to boot with defaults
                  <<< timeout in 5 seconds >>>
Select (b)oot or (i)nterpreter: b -x
 | 
备份根 (/) 文件系统。
如果根磁盘未封装,则使用以下命令。
| # ufsdump 0ucf dump-device / | 
如果封装了根磁盘,则使用以下命令。
| # ufsdump 0ucf dump-device /dev/vx/rdsk/rootvol | 
有关详细信息,请参阅 ufsdump(1M) 手册页。
以群集模式重新引导该节点。
| # init 6 | 
在下面的示例中,根 (/) 文件系统备份到了磁带设备 /dev/rmt/0 上。
| # ufsdump 0ucf /dev/rmt/0 / DUMP: Writing 63 Kilobyte records DUMP: Date of this level 0 dump: Tue Apr 18 18:06:15 2000 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping /dev/rdsk/c0t0d0s0 (phys-schost-1:/) to /dev/rmt/0 DUMP: Mapping (Pass I) [regular files] DUMP: Mapping (Pass II) [directories] DUMP: Estimated 859086 blocks (419.48MB). DUMP: Dumping (Pass III) [directories] DUMP: Dumping (Pass IV) [regular files] DUMP: 859066 blocks (419.47MB) on 1 volume at 2495 KB/sec DUMP: DUMP IS DONE DUMP: Level 0 dump on Tue Apr 18 18:06:15 2000 |