How to clone a disk? - SGI

This is a discussion on How to clone a disk? - SGI ; hi guys I need to clone a newly upgraded O2 over to another older O2.... What is the best procedure for doing this ? -- kind regards/mvh Niels S. Eliasen mailto:nse@ruc.dk Tel/Fax/Cell: (+45) 463 285 2{7|8|9} ".. and all these ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: How to clone a disk?

  1. How to clone a disk?

    hi guys
    I need to clone a newly upgraded O2 over to another older O2....
    What is the best procedure for doing this ?

    --
    kind regards/mvh
    Niels S. Eliasen mailto:nse@ruc.dk
    Tel/Fax/Cell: (+45) 463 285 2{7|8|9}

    ".. and all these memories are to vanish like tears in the rain!"
    final words from Rutger Hauer in "Blade Runner".

  2. Re: How to clone a disk?

    Niels S. Eliasen schrieb:
    > hi guys
    > I need to clone a newly upgraded O2 over to another older O2....
    > What is the best procedure for doing this ?
    >


    http://www.futuretech.blinkenlights....les.html#CLONE

    regards
    Joerg

  3. Re: How to clone a disk?

    Joerg Behrens wrote:
    : Niels S. Eliasen schrieb:
    :> hi guys
    :> I need to clone a newly upgraded O2 over to another older O2....
    :> What is the best procedure for doing this ?
    :>

    : http://www.futuretech.blinkenlights....les.html#CLONE

    I'm also working in a script for that task; but I've found
    a problem.
    Is this the right way to clone partition table (right now
    I don't have to identical disks to test it)?



    /usr/sysadm/privbin/setDiskParts -d ${RDEST}vol \
    -p `prtvtoc -h /dev/dsk/${RORIG}vol |\
    sed -e -e '/volume/d' \
    -e 's/\([ ]*\)\([0-9][0-9]*\)\([ ]*\)\([a-z][a-z]*\)\([^0-9]*\)\([0-9][0-9]*\)\([^0-9]*\)\([0-9][0-9]*\)\([ ]*\)/\2:\4:\6:\8/' |\
    tr \\012 ";" | sed -e 's/;$//'`
    -m

    In that command, the "format" string is converted by sed|tr from
    this:


    0 xfs yes 266240 524288
    1 raw 4096 262144
    2 xfs yes 790528 1048576
    3 xfs yes 1839104 8388608
    4 xfs yes 10227712 4194304
    6 xfs yes 14422016 8388608
    7 xfs yes 22810624 12752416
    8 volhdr 0 4096
    10 volume 0 35563040


    to this:


    0:xfs:266240:524288;1:raw:4096:262144;2:xfs:790528 :1048576;3:xfs:1839104:8388608;4:xfs:10227712:4194 304;6:xfs:14422016:8388608;7:xfs:22810624:12752416 ;8:volhdr:0:4096


    Doubts:

    - setDiskParts expects "blocks", and prtvtoc shows "sectors". Is there
    a fixed conversion ratio?

    - I guess it's ok to not copy "volume" partition, but what about
    "volhdr" ?



    --
    PGP and other useless info at \
    http://webdiis.unizar.es/~spd/ \
    finger://daphne.cps.unizar.es/spd \ Timeo Danaos et dona ferentes
    ftp://ivo.cps.unizar.es/pub/ \ (Virgilio)

+ Reply to Thread