Friday, March 09, 2007

Clone a new machine by spliting a miror disk (Vertias VM encapsulated)

Situation: suppose you are going to clone the machine A to machine B

  • Before cloning, make sure the disks are in sync (vxprint -htA, format, etc..)
  • Machine A and Machien B: Shutdown to OK prompt (init 0)
  • Removal of disks should be in OK prompt
  • Insertion of disks can be in OS level

Machine A:

  1. Remove one of the disk and try to boot it with single in OK prompt (boot )

  2. after the OS is up, vxprint should shown the another disk is missing/fault
  3. insert a new disk and issue "vxdctl enable"
  4. vxdiskadm -> 5

  5. resync should be in progress, use "vxtask list" to monitor
  6. Double check (vxprint -htA) and format, if the partition label is not correct, issue "/etc/vx/bin/vxbootsetup (the cxtxdx doesn't work. use 'vxdisk list' to get the disk name first)"

  7. Try to reboot once again

Machine B:

  1. insert the disk of Machine A and boot in OK prompt (boot )

  2. after the OS is up, vxprint should shown the another disk is missing/fault
  3. insert a new disk and issue "vxdctl enable"
  4. vxdiskadm -> 5

  5. resync should be in progress, use "vxtask list" to monitor
  6. Double check (vxprint -htA) and format, if the partition label is not correct, issue "/etc/vx/bin/vxbootsetup (the cxtxdx doesn't work. use 'vxdisk list' to get the disk name first)"

  7. Try to reboot once again

No comments: