hpux-主机间的VG迁移步骤

Exporting and Importing disks across system.


1. make the volume group unavailable

vgchange -a n /dev/vgdata

2. Export the the disk while creating a logical volume map file.

vgexport -v -m data_map vgdata

3. Disconnect the drives and move to new system.

4. Move the data_map file to the new system.

5. On the new system recreate the volume group directory

mkdir /dev/vgdata
mknod /dev/vgdata/group c 64 0x02000

6. Import the disks to the new system

vgimport -v -m data_map /dev/vgdata /dev/dsk/c2t1d0 /dev/dsk/c2t2d0

7. Enable the new volume group

vgchange -a y /dev/vgdata
-is 引导到单用户状态。VG00 激活,只mount /和/stand 文件系统。其他的
启动脚本也均未执行。
-lq 不进行quorum 检查。当一个VG 只有少于等于50%的硬盘可以正常访问
时,默认情况下就不能被激活。加这个参数以后就可以强行激活,在配置了
根盘镜像的情况下经常会用到这个参数。
-lm 进入维护模式。这时VG00 也未被激活,/文件系统被mount 到
/dev/root。这时可以对VG00 进行vgexport/vgimport 的操作。如果根盘的硬
件路径发生了变化,就可以用这种方式修正过来。要注意的是,进入维护模
式后,切换到其他运行级别需要重起主机,可不是运行init 命令。

相关文档
最新文档