IRIX Network Forums
About cloning HDD [SOLVED + PROCESS] - Printable Version

+- IRIX Network Forums (//forums.irixnet.org)
+-- Forum: SGI/MIPS (//forums.irixnet.org/forum-3.html)
+--- Forum: IRIX/Software (//forums.irixnet.org/forum-7.html)
+--- Thread: About cloning HDD [SOLVED + PROCESS] (/thread-1686.html)



About cloning HDD [SOLVED + PROCESS] - def13 - 12-07-2019

Hi,

Before cloning the HDD of my Octane, I would like some precisions about the process I have to follow to use the CLONE script (here) :

1- My backup HDD is dks0d3s7 ; do I have to unmount it before "fx" it to be a root disk ? (This HDD have been initialize with the Disk Manager)

2- About "fx" sequence. It should be look like that :
Code:
fx: "device-name" = (dksc) ENTER
fx: ctlr# = (0) ENTER
fx: drive# = (3) ENTER
fx> r
fx/repartition> ro
fx/repartition/rootdrive: type of data part. = (xfs) ENTER
fx/repartition> ..
fx> exi

Is that right OR do I have to follow the 4 first points found here : https://wiki.preterhuman.net/Clone_System_Disk

3- About CLONE script.
As it's discribed, this script only works with a disk with scsi id 2.
So I have to remove my HDD 2 (dsk0d2s7) and replace it by my Backup HDD (dsk0d3s7) or can I simply do "./clone 3" ?

Thanks by advance for your answers :-)


RE: About cloning HDD - def13 - 12-09-2019

OK, I found the way !
Here is the complete process.

BE METHODIC AND DO IT CAREFULLY

1- It's better to use 2 HDD with the same size or the second HDD could be bigger than the system HDD you want to clone.


2- Plug your second HDD, light on the workstation and login as ROOT

3- Copy/paste/save the clone script here : https://forums.irixnet.org/thread-702-post-5222.html#pid5222
    (!) Don't forget to change the permission to let ROOT execute the script

4- "fx" your second HDD to be a root disk

Code:
fx -x                            # Run fx
<Enter>                          # Select dksc
<Enter>                          # Select controller 0
2                                # Select drive 2
<Enter>                          # Select lun 0
r                                # Select repartition option
ro                               # Select root drive option
<Enter>                          # Select XFS
yes                              # Yes, continue with the operation
..                               # Return to the main menu
l                                # Create a new label
sy                               # Write out the new label
/exit                            # Exit fx

(source : http://www.sgidepot.co.uk/disksfiles.html#CLONE)

5- Just after "fx"

Code:
cd the_folder_where_is_located_the_clone_script
./clone 2                        # "2" is for drive 2

Follow the instructions and answer "y" when it ask you what to do with the file system it has found on the drive 2.
If you answer "n", it stop the script.

WAIT (15 to 20 minutes to clone about 25GB with my Octane 1x400Mhz / 2GB Ram)

Don't forget to test your clone … and that's it !!!


RE: About cloning HDD [SOLVED + PROCESS] - Jacques - 12-09-2019

Thank you, good to know it works! Smile