按照此过程来备份一个群集节点的根 (/) 文件系统。在执行此备份过程前确保群集无故障运行。
成为您要备份的群集节点上的超级用户。
将每项运行中的数据服务从要备份的节点切换到群集中的另一节点。
# scswitch -z -D disk-device-group -h node |
执行切换。
磁盘设备组的名称,与磁盘集或磁盘组的名称相同。
充当磁盘设备组的主节点的群集节点的名称。
停止该节点。
# shutdown -g0 -y |
在 ok 提示符下,以非群集模式重新引导。
ok boot -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 |