• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

[转贴]SCO UNIX 环境下不同容量硬盘的对拷

发布: 2007-6-08 22:43 | 作者: seanhe | 来源: | 查看: 19次 | 进入软件测试论坛讨论

领测软件测试网
在开始硬盘对拷之前,首先应将已安装好系统的源盘和空白目标盘分别设置跳线,安装在计算机上。开机,进入CMOS设置两块硬盘的参数,然后进入源盘的超级用户root,就可以开始拷贝了。
  以下是在digital P200微机上,SCO Open Server Release 5环境下进行硬盘对拷的过程。
  1.增加一块硬盘
  #mkdev hd 1 0
  Your root hard disk is attached to an IDE controller.
  Pick one of the choices below or you may quit and
  Invoke mkdev hd -u for a detail usage message.
  1)Add a hard disk to IDE controller
  2)Add a hard disk to SCSI controller
  3)Add a hard disk to an IDA controller(EISA)
  Enter 1,2,3,or enter 'q' to quit:(输入1)
  ……
  If you wish to exit the entire installation at this menu,
  Press the <DEL>key.
  Hard Disk Drive 1 Configuration
  1.Display current disk parameters
  2.Modify current disk parameters
  3.Select default disk parameters
  Enter an option or 'q' to quit:
  (这是dkinit程序的菜单。在此可以选1显示目标硬盘参数,如不符要求,可选2进行修改,然后输入q继续)
  ……
  1.Display Partition Table
  2.Use Entire Disk for UNIX
  3.Use Rest of Disk for UNIX
  4.Create UNIX Partition
  5.Activate Partition
  6.Delete Partition
  7.Create Partition
  Enter your choice or 'q' to quit:
  (这是fdisk程序的菜单。在此可以对目标硬盘按需要进行分区,然后输入q继续)
   ……
  1.Print Current Bad Track Table
  2.Scan Disk (You may choose Read-Only or Destructive later)
  3.Add Entries to Current Bad Track Table by Cylinder/Head Number
  4.Add Entries to Current Bad Track Table by Sector Number
  5.Delete Entries Individually from Current Bad Track Table
  6.Delete All Entries from Bad Track Table Please enter your choice or 'q' t 廯 t:
  (这是badtrk程序的菜单,选择2可以扫描查找硬盘上有问题的磁道,并对应到硬盘别处的正常磁道上,另外还建立一个坏道表。输入q继续)
  Enter the number of bad tracks to allocate space for
  (or press<return>to use the recommended value of 15):
  (回车)
  There are 2110657 blocks in the UNIX area.
  Please enter the number of file systems you want this area
  To be divided into,or press<Return>to get the default of 2 file system(s).
  (回车)
  The layout of the filesystems and swap area is now prepared.
  Do you wish to make any manual adjustments to the sizes or
  names of the filesystems or swap area before they are created
  on the hard disk?(y/n)
  (输入n)
  Making filesystems
  Hard disk initialization procedure completed.
  2.用dd命令将SCO UNIX硬盘自举程序从源盘拷入目标盘
  #dd if=/dev/hd0a of=/dev/hdla bs=1024 count=40
  3.用divvy命令在目标盘上建立可安装的文件系统
  #divvy-im /dev/rhdla
  There are 2095537 lk blocks in the UNIX area.
  Between 16000 and 512000 lk blocks should be reserved for the swap area.
  Please enter the swap-space allocation ,or press <Return>
  To get the default allocation of 24000 lk blocks:
  (回车)
  There are 2095537 lk blocks in the UNIX area.
  Between 15000 and 64000 lk blocks should be reserved for the boot filesystem.
  Please enter the boot-space allocation,or press <Return>
  To get the default allocation of 20000 lk blocks:
  (回车)
  Do you want a separate /u filesystem?(y/n)
  (输入n)
  The layout of the filesystems and swap area is now prepared.
  Do you wish to make any manual adjustments to the sizes or
  names of the filesystems or swap area before they are created
  on the hard disk?(y/n)
  (输入n)
  Making filesystems
  4.用divvy 命令查看并修改内分区(division)名
  #divvy/dev/rhdla
  Name Type New FS # First Block
  Last Block dll50 EAFS     no     0
  0 19999
  d1151 NON Fs          no     1 20000
  43999
  HTFS              no     2 44000
  2045725
  Not USED            no     3 -
  -
  Not USED            no     4 -
  -
  Not USED            no     5 -
  -
  recover NON FS         no     6 2045726
  2045735
  hdla WHOLE DISK        no     7 0
  2061831
  2045736 lk blocks for divisions,16096 lk blocks reserved for the system.
  n[ame] Name or rename a division.
  c[reate] Create a new file system on this division.
  t[ype] Select or change filesystem type on new filesystems.
  p[revent] Prevent a new file system from being created on
this.
  s[tart] Start a division on a different block.
  e[nd] End a division on a different block.
  r[estore] Restore the original division table.
  Please enter your choice or 'q' to quit:
  (输入n修改内分区名。在此分别将0,1,2内分区名修改为rb ,rs,rr)
  i[nstall] Install the division set-up shown.
  r[eturn] Return to the previous menu.
  e[xit] Exit without installing a division table.
  Please enter your choice:
  (输入i将内分区情况安装在目标盘上)
  Making filesystems.
  5.将目标盘引导文件系统安装到源盘上,并拷贝其内容
  #mount/dev/rb/mnt
  #cd/stand
  #find.-print|cpio-pdumv /mnt
  #umount/mnt
  6.将目标盘根文件系统安装到源盘上,并拷贝其内容
  # mount/dev/rr/mnt
  #find/-mount print|cpio-pdumv/mnt
  7.建立目标盘根文件系统中的文件系统安装点
  #cd /mnt
  #mkdir mnt stand;chmod 755 mnt stand;chgrp bin mnt stand
  #umount /mnt
  至此,拷贝完毕。

 unix_sco 回复于:2003-12-17 22:03:15
哈哈,好复杂。比重新安装省不了多少。

 秋意正浓 回复于:2003-12-17 22:34:10
在做RAID的服务器上可能就没戏了。

 unix_sco 回复于:2003-12-17 22:37:00
[quote:365ea9cacc="秋意正浓"]在做RAID的服务器上可能就没戏了。[/quote:365ea9cacc]



9494

 dxgzy 回复于:2003-12-17 22:51:25
千万不要使用这种方法,  如果你使用他后果不堪设想

 dxgzy 回复于:2003-12-17 22:52:26
千万不要使用这种方法,  如果你使用他后果不堪设想

 horse 回复于:2003-12-18 09:43:11
[quote:4763b6439b="unix_sco"]哈哈,好复杂。比重新安装省不了多少。[/quote:4763b6439b]
仔细看并不复杂,把root、boot、文件系统mount到第二块硬盘上。

 yqxfm 回复于:2003-12-18 11:55:31
专业化的对拷! 不知用ghost是否可以

 horse 回复于:2003-12-18 14:17:35
当然可以.

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备2023014753号-2
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网