Clone 1 Hard disk fromIBM Intellipoint server with AIX 5.x


 
Thread Tools Search this Thread
Operating Systems AIX Clone 1 Hard disk fromIBM Intellipoint server with AIX 5.x
# 1  
Old 05-19-2017
Clone 1 Hard disk fromIBM Intellipoint server with AIX 5.x

Hello to all,
Im having a new task in a new world (AIX - IBM Servers)

I have an IBM Server (Type - 9111-285 very old one) with one Hard disk (73 GB 10 K) with AIX 5.x, and I need to clone the existing disk to another with the same specifications.

Could you please give me some advice in order to do that ?
Does exist some software to do that ?
Some hardware device that I could use ?

Any documentation, procedures, steps ?

Thanks in advance ?

Really Apreciated.

Trev
# 2  
Old 05-19-2017
Quote:
Originally Posted by trevian3969
I have an IBM Server (Type - 9111-285 very old one) with one Hard disk (73 GB 10 K) with AIX 5.x, and I need to clone the existing disk to another with the same specifications.
If your server has onlyy one disk it must have only one VG - "rootvg". You should see both disks as (perhaps) "hdisk0" and "hdisk1" when you enter:

Code:
lspv

If you don't see the second disk: run cfgmgr and if you still don't see it you have some hardware problem you need to fix because the system doesn't know about your disk.

Once you see the second disk you run:

Code:
extendvg rootvg hdisk1

to add the second disk to the rootvg and then run

Code:
mirrorvg rootvg hdisk1

which will create a mirror image of the first disk to the second. Update the boot image of the second disk by:

Code:
bosboot -ad hdisk1

and include the second disk into the bootlist of the hardware with:

Code:
bootlist -m normal hdisk0 hdisk1

I hope this helps.

bakunin
These 2 Users Gave Thanks to bakunin For This Post:
# 3  
Old 05-19-2017
Ill test your recomendations this Monday, Ill tell you the result. Thanks !!!
# 4  
Old 05-30-2017
Worked perfectly !!! Thank you very much !!!!

After I cloned the hdisk0 to hdisk1, I tried to clone from hdisk1 to a new disk (hdisk2), doing the same procedure, but replacing the hdiskX, and receive the message

Code:
Open failure on hdisk0
Seek failure on hdisk2

What happened here ?

Thanks again

Last edited by rbatte1; 05-31-2017 at 06:25 AM.. Reason: Complete answer and message error
# 5  
Old 05-31-2017
Quote:
Originally Posted by trevian3969
Worked perfectly !!! Thank you very much !!!!
Good!



Quote:
Originally Posted by trevian3969
After I cloned the hdisk0 to hdisk1, I tried to clone from hdisk1 to a new disk (hdisk2), doing the same procedure, but replacing the hdiskX
Are you meaning you (pyhsically) removed hdisk0, put some other disk in and repeated? Well this is destined to fail:

With AIX you have all disks controlled by the LVM: you can't just rip out a disk and expect it to work. By "controlled by LVM" i mean: on the disk itself is a block (the "VGDA", volume group descriptor area) which states of which disks ("PV"s in LVM speak) the VG is comprised of. A copy of this VGDA si on each disk and if you rip one out the LVM recognizes that there is one missing (and which one that is).

If you wanted to clone the data (to another system or for archiving purposes) you won't get anywhere with the mirrorvg command, you need a different procedure: mksysb or savevg. (Notice that there is a splitvg command now, but only in recent AIX versions, not in AIX 5.x.)

You can store the contents of a single VG to a file or tape using the savevg command. In fact this is a customized backup-format backup of the VGs contents plus some additional information. From such an image you can use the restvg command to restore the VG onto new media (even on a new system). The disks used don't need to be exactly the same as in the original, they just have to provide some minimum requirements (if the LVs where mirrored you will need two disks, etc.).

Instead of a savevg you can also use a mksysb command. Basically this is a savevg rootvg (so everything said above applies) but with some additional information and a boot block. It is possible to boot a newly created system with such a mksysb-image and restore the contents of the rootvg while doing so. Since the rootvg contains everything relevant for the system you have a method of cloning/restoring a system completely from such an image.

Notice that the boot image is NOT added if you save the mksysb image to a file. You can still boot from a boot medium and then use the file to restore the system but you boot directly from the image only if it is on a DVD, tape or similar.

I hope this helps.

bakunin
# 6  
Old 05-31-2017
If you are cloning to a physical server in the same network, it is worth unplugging the network cable whilst you do it else the restored server will immediately cause IP conflicts. Correct the IP definitions before reconnecting the cable.

If you are cloning to an LPAR, de-configure the network card then after the restore completes add it back in (probably need a boot) and set up the network definitions then.


It causes a panic when strange things start happening in production whilst you are recovering your clone.


I hope that this helps,
Robin
# 7  
Old 05-31-2017
Thank you for your answers. (Ill need to study this commands Smilie)

What Ive done works perfect as you suggested.

Server 1 (IBM aix 5.x with special application)

Server 2 (Same IBM model, with 1 new disk same as used by server 1)

Server 3 (Same IBM model, with 1 new disk, same as used by server 1)

Did the procedure, put the new disk in server 1, run the commands, take out the new disk, put it on server 2 and everything ok. Server 2 is a clone from server 1. Of course I need to change some network parameters to work (Ip, etc). Tested the application and works fine.

Tried to do the same procedure with server 3 based on the new disk cloned (server 2) and receive the errors mentioned.

Maybe it will work if I try to do the same procedure but instead of use the cloned disk, use the original (server 1) and the new from server 3 ?
Thanks again.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

AIX hard disk failure

Hi all, I have encountered the issue with the hard disk, the disk is failed and need to replace by the new one. As my understanding, this is just to take out the failed disk and insert the new ones, and that's all. But the third party hardware vendor said, there should be another procedure... (9 Replies)
Discussion started by: Phat
9 Replies

2. AIX

Clone or mirror your AIX OS larger disk to smaller disk ?

hello folks, I have a 300GB ROOTVG volume groups with one filesystem /backup having 200GB allocated space Now, I cannot alt disk clone or mirrorvg this hdisk with another smaller disk. The disk size has to be 300GB; I tried alt disk clone and mirrorvg , it doesn't work. you cannot copy LVs as... (9 Replies)
Discussion started by: filosophizer
9 Replies

3. Linux

C++ Code to Access Linux Hard Disk Sectors (with a LoopBack Virtual Hard Disk)

Hi all, I'm kind of new to programming in Linux & c/c++. I'm currently writing a FileManager using Ubuntu Linux(10.10) for Learning Purposes. I've got started on this project by creating a loopback device to be used as my virtual hard disk. After creating the loop back hard disk and mounting it... (23 Replies)
Discussion started by: shen747
23 Replies

4. Red Hat

How to monitor HP server hard disk failure ?

in red hat 4, 5 any one know any commands or any scritps to monitor HP DL 380 G5/6 server and trigger alarm when hard disk failed. thanks for all support ---------- Post updated at 02:45 PM ---------- Previous update was at 12:00 PM ---------- does HP ProLiant Support Pack support is... (4 Replies)
Discussion started by: maxlee24
4 Replies

5. SCO

Hard disk clone of OpenServer 5.0.0 didn't work, why?

Continuing saga of working on making a retail store more robust by creating a backup clone of the main server, a 1995 era :eek: PC running SCO OpenServer 5.0.0b and a discontinued Point of Sales (POS) software system. I have a PC of the same make and model. The CPU runs faster and it has a... (5 Replies)
Discussion started by: jgt10
5 Replies

6. SCO

Clone hard disk using Ghost

Hi. We tried cloning a SCO Unix hard disk using Norton Ghost. However, the new cloned hard disk encounter booting problem. What possibly go wrong? (1 Reply)
Discussion started by: Mizan
1 Replies

7. Solaris

Add new hard disk to sun sparc server?

A sparc server has a new SCSI hard disk added and labeled by the engineer, but they need to be formatted identically to an existing disk (c4t0d0). You decide to script the process and run from the command line without interaction. I know that the following command line must be achieve this. #... (3 Replies)
Discussion started by: kingsan
3 Replies

8. Shell Programming and Scripting

IInd Hard Disk Mounting Problem on 1st HDD On SCO UNIX Open Server

Hi Engg. ! :mad: I have a harddisk on which SCO UNIX Open Server was installed. There was some data (in .dbf format) on it. Present condition of HDD is that it is not booting. Now I want to mount this HDD through other HDD on which SCO UNIX Open Server is installed by attaching... (0 Replies)
Discussion started by: Niraj Gopal Sha
0 Replies

9. AIX

hard disk information in AIX

Hi, Other than df -k, is there any command that will tell me all physical hard drives installed on the system as well as the size of each one? I'm using AIX 5.1 Thanks, (3 Replies)
Discussion started by: quickfirststep
3 Replies
Login or Register to Ask a Question