免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1310 | 回复: 0
打印 上一主题 下一主题

Clone altix system drive [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-11 14:26 |只看该作者 |倒序浏览
NOTE: This procedure assumes the target disk is in IX-brick drive bay 2 and the source root disk is in IX-brick disk bay 1.
1) Halt the system and put the target disk into drive bay 2 in the IX-brick.
3) It is strongly recommended you clone the system disk from single-user mode.
To boot the system into single-user mode from the ELILO prompt, type:
ELILO boot: sgilinux single
4) From the single-user prompt, use 'fdisk' or 'parted' to partition the new target system disk.
Partition the target drive creating the same partitions in the same order as the source drive.
An example of the command line using fdisk:
fdisk /dev/xscsi/pci01.03.0-1/target2/lun0/disc
5) Put the filesystems and swap space on the partitions.
Here it's assumed that partition 1 is EFI, partition 2 is swap, and partition 3 is root.
6) Make the vfat file system for /boot/efi:
# mkfs.msdos /dev/xscsi/pci01.03.0-1/target2/lun0/part1
7) Initialize the swap partition:
# mkswap /dev/xscsi/pci01.03.0-1/target2/lun0/part2
8) Make the root XFS file system:
# mkfs.xfs /dev/xscsi/pci01.03.0-1/target2/lun0/part3
9) Create a mount point for the cloning process:
# mkdir /mnt/clone
10) Mount the newly created /boot/efi file system for cloning:
# mount /dev/xscsi/pci01.03.0-1/target2/lun0/part1 /mnt/clone
11) Clone the current /boot/efi file system to the target disk:
# cd /boot/efi
# tar cBf - . | (cd /mnt/clone && tar xBf -)
12) Unmount the target /boot/efi file system:
# umount /mnt/clone
13) Mount the target root partition for cloning:
# mount /dev/xscsi/pci01.03.0-1/target2/lun0/part3 /mnt/clone
14) Clone the source root file system to the target disk using xfsdump piped to xfsrestore:
# cd /mnt/clone
# xfsdump -l 0 - / | (cd /mnt/clone && xfsrestore -) .
15) Before unmounting the target root, remove the ethernet persistent naming file!
Failure to do this will result in the target system having no eth0.
The symptom would be that the system would have eth1 instead. Here is an example:
rm /mnt/clone/etc/sysconfig/networking/eth0_persist
16) Unmount the target root filesystem:
umount /mnt/clone
17) The system drive is now cloned. Here are some things to think about if you put the target drive into its final destination system:
17.1) The target system may need a prom upgrade - you may need to flash prom from EFI.
17.2) The installer runs a command to populate the EFI boot menu with a nice "SGI ProPack" style banner. You have three choices here.
17.2.1) Leave it as is. Prom has a generic non-nicely labled entry to boot automatically.
17.2.2) Try running the following command from Linux to update the boot menu used in EFI:
/usr/sbin/efibootmgr -c -w -L "SGI ProPack(TM)" -d /dev/xscsi/pci01.03.0-1/target1/lun0/disc -p 1
17.2.3) Finally, the EFI boot manager menus themselves can be used to add boot options.
NOTE: If when the system boots, EFI can not find any vfat file systems on the newly cloned system disk,
and you used fdisk to partition the disk, your disk may have a GPT label from a prior partitioning with parted.
Run parted on the target disk and print the partition table.
If there are any inconsistencies found, parted will recognize them and allow you to fix them.
17.3) If you have problem booting the system from the EFI memu, try the following command:
From fsX:\efi\sgi> prompt where X represent the disk number which you want to boot from
fsX:\efi\sgi> elilo  root=
Example:
fs1:\efi\sgi> elilo 2.4.21-sgi230rp03111013_10029 root=/dev/sdb3


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/2309/showart_67012.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP