免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1114 | 回复: 0

Clone altix system drive [复制链接]

论坛徽章:
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

DTCC2020中国数据库技术大会

【架构革新 高效可控】2020年12月21日-23日第十一届中国数据库技术大会将在北京隆重召开。

大会设置2大主会场,20+技术专场,将邀请超百位行业专家,重点围绕数据架构、AI与大数据、传统企业数据库实践和国产开源数据库等内容展开分享和探讨,为广大数据领域从业人士提供一场年度盛会和交流平台。

http://dtcc.it168.com


大会官网>>
  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP