首 页 ┆ 源码下载 ┆ IT学院 ┆ 字体下载 ┆ 模板下载 ┆ 源码发布 ┆ 广告合作 ┆ 网站地图 ┆ 虚拟主机 ┆ 中文域名
► 设为首页
► 加入收藏
► 联系我们
源码下载 >> ASP源码 | PHP源码 | ASP.net源码 | JSP源码 | CGI源码 | VC/C++源码 | VB源码 | Delphi源码 | Flash源码
文章学院 >> 网络编程 | 网页设计 | 图形图象 | 数据库 | 服务器 | 网络媒体 | 网络安全 | 操作系统 | 办公软件 | 软件开发 | 黑客知识
字体下载 >> 精制字体 | 非英字体 | 艺术字体 | 著名字体 | 哥特式 | 简单字体 | 手写体 | 节假日 | 图案字体 | 精度像素 | 中文字体
模板下载 >> 企业门户 | 数码网络 | 休闲娱乐 | 影视音乐 | 旅游名胜 | 文化艺术 | 电子商务 | 个性展示 | 登陆导航 | Flash模板
►►您当前的位置:源码园 → IT学院 → 操作系统 → Linux → 文章内容

如何克隆HP-UX系统盘

作者:佚名  来源:网上收集  发布时间:2006-5-22 18:05:51

  可以分两个阶段来做;
  第一阶段
  1 pvcreate -B /dev/rdsk/cxtydz
  2 mkboot /dev/rdsk/cxtydz
  3 mkboot -a "hpux -lq(;0)/stand/vmunix" /dev/rdsk/cxtydz
  第二阶段
  1 dd if=/dev/dsk/c1t2d0 of=/dev/dsk/cxtydz
  bs=1024k
  供参考:
  If you do not have Mirror/UX you can manually duplicate your boot disk to another disk. This is the process.
  
  * Assuming current LVM boot disk is on c1t2d0 and you want to duplicate to c2t2d0.
  # pvcreate -B /dev/rdsk/c2t2d0
  # mkdir /dev/vgroot; mknod /dev/vgroot/group c 64 0x010000
  # vgcreate /dev/vgroot /dev/dsk/c2t2d0
  # mkboot /dev/rdsk/c2t2d0
  # mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c2t2d0
  # lifls /dev/rdsk/c2t2d0
  ==> do lifcp of all other boot utilities from c1t2d0 to c2t2d0.
  # lvcreate -C y -r n -n lvol1 /dev/vgroot
  # lvextend -L 84 /dev/vgroot/lvol1 /dev/dsk/c2t2d0
  ==> creating and extending boot lv (/stand)

  # lvcreate -C y -r n -L 2048 -n lvol2 /dev/vgroot
  ==> creating swap LV
  # lvcreate -C y -r n -n lvol3 /dev/vgroot
  # lvextend -L 6544 /dev/vgroot/lvol3 /dev/dsk/c2t2d0
  
  ==> creating and extending root lv (/)
  # lvlnboot -b lvol1 /dev/vgroot
  # lvlnboot -r lvol3 /dev/vgroot
  # lvlnboot -s lvol2 /dev/vgroot
  # lvlnboot -d lvol2 /dev/vgroot
  ==> update BDRA for boot, root, swap and dump LVs.
  # newfs -F hfs /dev/vgroot/rlvol1 ==> /stand must be hfs
  # newfs -F vxfs /dev/vgroot/rlvol3
  # mkdir /newstand
  # mount /dev/vgroot/lvol1 /newstand
  # cd /stand
  # find . -xdev -depth -print|cpio pxdm /newstand
  # umount /newstand
  # mkdir /newroot
  # mount /dev/vgroot/lvol3 /newroot
  # cd /
  # find . -xdev -depth -print|cpio -pxdm /newroot
  # cd /newroot/etc
  # vi fstab
  ==> edit appropriately
  # lvlnboot -R
  ==> resync vg headers
  # setboot -p 0/0/2/0.2.0
  ==> change prim boot path to new disk (c2t2d0)
  
  The above assume you have /, /stand and swap only. If you have separate /opt, /usr, /tmp mounted for example, perform appropriate lvcreate on those. When it's all done you should be able to boot up from your 2nd disk. From here onwards, you have to manually synchronize bot your boot disks.

[] [返回上一页] [打 印]
  • 上一篇文章:日常维护检查
  • 下一篇文章:网管秘技八招

  • 相关文章:
  • 如何克隆HP-UX系统盘
关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 源码发布
Copyright © 2003-2009 Ymyasp.Com. All Rights Reserved .
备案序号:粤ICP备07029071号