<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating backup disk in Disk Enclosures</title>
    <link>https://community.hpe.com/t5/disk-enclosures/creating-backup-disk/m-p/3040382#M9333</link>
    <description>Garth,&lt;BR /&gt;&lt;BR /&gt;This really depends on your configuration.  I need to know the following:&lt;BR /&gt;&lt;BR /&gt;What type of array controller&lt;BR /&gt;What server&lt;BR /&gt;What OS&lt;BR /&gt;Are there other drives attached to this controller and what is their configuration?</description>
    <pubDate>Mon, 04 Aug 2003 18:07:36 GMT</pubDate>
    <dc:creator>Mark Smith_20</dc:creator>
    <dc:date>2003-08-04T18:07:36Z</dc:date>
    <item>
      <title>Creating backup disk</title>
      <link>https://community.hpe.com/t5/disk-enclosures/creating-backup-disk/m-p/3040381#M9332</link>
      <description>I have two 36GB disks set mirrored pair, and would like to create a Backup disk of the system. If I pull 1 of the pair out will that work as a backup disk.</description>
      <pubDate>Mon, 04 Aug 2003 09:47:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/disk-enclosures/creating-backup-disk/m-p/3040381#M9332</guid>
      <dc:creator>Garth_3</dc:creator>
      <dc:date>2003-08-04T09:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating backup disk</title>
      <link>https://community.hpe.com/t5/disk-enclosures/creating-backup-disk/m-p/3040382#M9333</link>
      <description>Garth,&lt;BR /&gt;&lt;BR /&gt;This really depends on your configuration.  I need to know the following:&lt;BR /&gt;&lt;BR /&gt;What type of array controller&lt;BR /&gt;What server&lt;BR /&gt;What OS&lt;BR /&gt;Are there other drives attached to this controller and what is their configuration?</description>
      <pubDate>Mon, 04 Aug 2003 18:07:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/disk-enclosures/creating-backup-disk/m-p/3040382#M9333</guid>
      <dc:creator>Mark Smith_20</dc:creator>
      <dc:date>2003-08-04T18:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating backup disk</title>
      <link>https://community.hpe.com/t5/disk-enclosures/creating-backup-disk/m-p/3040383#M9334</link>
      <description>Hi there.&lt;BR /&gt;Try to get a third disk.&lt;BR /&gt;&lt;BR /&gt;1.&lt;BR /&gt;Break the mirror. Take out the secondary disk.&lt;BR /&gt;Put in the new one. Rebuild the mirror.&lt;BR /&gt;&lt;BR /&gt;2. &lt;BR /&gt;Put in the new disk and create a backup with dd.&lt;BR /&gt;&lt;BR /&gt;This idea came originally from Clay Stephenson&lt;BR /&gt;known as life boat.&lt;BR /&gt;&lt;BR /&gt;  #!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;# Define the Source (SRC) and Destination (DEST) devices for the boot copy"&lt;BR /&gt;# Warning: Be very careful; you may overwrite actual boot devices or data!!!"&lt;BR /&gt;# Make certain corresponding SRC &amp;amp; DEST drives be identical.&lt;BR /&gt;# NOTE: Marvin Vesrion !!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;src="/dev/rdsk/c3t5d0 /dev/rdsk/c3t0d0"&lt;BR /&gt;DEST="/dev/rdsk/c3t9d0 /dev/rdsk/c3t8d0"&lt;BR /&gt;&lt;BR /&gt;VRSN="[1.0]"&lt;BR /&gt;# 1.0 05/17/99 acs&lt;BR /&gt;&lt;BR /&gt;PROG=$0&lt;BR /&gt;BLKSZ=8000k&lt;BR /&gt;SYNC_DELAY=10&lt;BR /&gt;&lt;BR /&gt;readonly SRC DEST PROG VRSN BLKSZ SYNC_DELAY&lt;BR /&gt;&lt;BR /&gt;PATH=/usr/bin:/usr/sbin:${PATH}&lt;BR /&gt;export PATH&lt;BR /&gt;&lt;BR /&gt;HOST=`hostname`&lt;BR /&gt;&lt;BR /&gt;readonly HOST&lt;BR /&gt;&lt;BR /&gt;STAT=0&lt;BR /&gt;VERBOSE=1&lt;BR /&gt;while getopts :vVsS opts&lt;BR /&gt;  do&lt;BR /&gt;     case $opts in&lt;BR /&gt;       v|V) VERBOSE=1&lt;BR /&gt;            ;;&lt;BR /&gt;       s|S) VERBOSE=0&lt;BR /&gt;            ;;&lt;BR /&gt;        ? ) echo "${PROG}: Unknown arg\n" &amp;gt;&amp;amp;2&lt;BR /&gt;            STAT=244&lt;BR /&gt;            ;;&lt;BR /&gt;     esac&lt;BR /&gt;  done&lt;BR /&gt;&lt;BR /&gt;if [ ${STAT} -ne 0 ]&lt;BR /&gt;  then&lt;BR /&gt;    exit ${STAT}&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;let SRCKNT=0&lt;BR /&gt;for X in $SRC&lt;BR /&gt;  do&lt;BR /&gt;    SRCRAY[${SRCKNT}]=$X&lt;BR /&gt;    let SRCKNT=${SRCKNT}+1&lt;BR /&gt;  done&lt;BR /&gt;&lt;BR /&gt;let DESTKNT=0&lt;BR /&gt;for X in $DEST&lt;BR /&gt;  do&lt;BR /&gt;    DESTRAY[${DESTKNT}]=$X&lt;BR /&gt;    let DESTKNT=${DESTKNT}+1&lt;BR /&gt;  done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if [ ${SRCKNT} -ne ${DESTKNT} ]&lt;BR /&gt;  then&lt;BR /&gt;    echo "${PROG}: Boot source volume count not equal to destination \c" &amp;gt;&amp;amp;2&lt;BR /&gt;    echo "count." &amp;gt;&amp;amp;2&lt;BR /&gt;    STAT=255&lt;BR /&gt;    exit $STAT&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;let N=0&lt;BR /&gt;while [ ${N} -lt ${SRCKNT} -a ${STAT} -eq 0 ]&lt;BR /&gt;  do&lt;BR /&gt;    S=${SRCRAY[${N}]} &lt;BR /&gt;    D=${DESTRAY[${N}]} &lt;BR /&gt;    if [ -c "${S}" ]&lt;BR /&gt;      then&lt;BR /&gt;        if [ -c "${D}" ]&lt;BR /&gt;          then&lt;BR /&gt;            if [ "${S}" != "${D}" ]&lt;BR /&gt;              then&lt;BR /&gt;                let N=${N}+1&lt;BR /&gt;              else&lt;BR /&gt;                echo "${PROG}: Source and destinatrion device \"${S}\" " &amp;gt;&amp;amp;2&lt;BR /&gt;                echo "identical." &amp;gt;&amp;amp;2&lt;BR /&gt;              fi         &lt;BR /&gt;          else&lt;BR /&gt;            echo "${PROG}: Destination volume \"${D}\" does not exist or " &amp;gt;&amp;amp;2&lt;BR /&gt;            echo "is not a character special device." &amp;gt;&amp;amp;2&lt;BR /&gt;            STAT=253&lt;BR /&gt;          fi &lt;BR /&gt;      else&lt;BR /&gt;        echo "${PROG}: Source volume \"${S}\" does not exist or is not a " &amp;gt;&amp;amp;2&lt;BR /&gt;        echo "character special device." &amp;gt;&amp;amp;2&lt;BR /&gt;        STAT=254&lt;BR /&gt;      fi &lt;BR /&gt;  done&lt;BR /&gt;&lt;BR /&gt;if [ $STAT -eq 0 ]&lt;BR /&gt;  then&lt;BR /&gt;    if [ ${VERBOSE} -ne 0 ]&lt;BR /&gt;      then&lt;BR /&gt;        echo "Host: ${HOST}"&lt;BR /&gt;        echo &lt;BR /&gt;        echo "Syncing disk(s). ...\c" &lt;BR /&gt;      fi&lt;BR /&gt;    sync; sync; sync&lt;BR /&gt;    sleep $SYNC_DELAY&lt;BR /&gt;    if [ ${VERBOSE} -ne 0 ]&lt;BR /&gt;      then&lt;BR /&gt;        echo&lt;BR /&gt;        echo &lt;BR /&gt;      fi &lt;BR /&gt;    let N=0&lt;BR /&gt;    while [ ${N} -lt ${SRCKNT} -a ${STAT} -eq 0 ]&lt;BR /&gt;      do&lt;BR /&gt;        S=${SRCRAY[${N}]} &lt;BR /&gt;        D=${DESTRAY[${N}]} &lt;BR /&gt;        let N=${N}+1&lt;BR /&gt;        if [ ${VERBOSE} -ne 0 ]&lt;BR /&gt;          then&lt;BR /&gt;            echo "Copying Boot Disk ${N} of ${SRCKNT} in background. ... "&lt;BR /&gt;            echo "\t${S} --&amp;gt; ${D} ... \c"&lt;BR /&gt;          fi&lt;BR /&gt;        dd if=${S} of=${D} bs=${BLKSZ} &amp;amp;&lt;BR /&gt;        if [ ${VERBOSE} -ne 0 ]&lt;BR /&gt;          then&lt;BR /&gt;            echo&lt;BR /&gt;            echo&lt;BR /&gt;          fi&lt;BR /&gt;        sleep $SYNC_DELAY&lt;BR /&gt;      done&lt;BR /&gt;    if [ ${VERBOSE} -ne 0 ]&lt;BR /&gt;      then&lt;BR /&gt;        echo&lt;BR /&gt;        echo "Waiting for all copies to finish. ...\c"&lt;BR /&gt;      fi&lt;BR /&gt;    wait&lt;BR /&gt;    STAT=$?&lt;BR /&gt;    if [ ${STAT} -eq 0 ]&lt;BR /&gt;      then &lt;BR /&gt;        if [ ${VERBOSE} -ne 0 ]&lt;BR /&gt;          then&lt;BR /&gt;            echo " Done."&lt;BR /&gt;          fi&lt;BR /&gt;      else&lt;BR /&gt;        echo "\n${PROG}: Host ${HOST}; copy failed; status = ${STAT}." &amp;gt;&amp;amp;2&lt;BR /&gt;      fi&lt;BR /&gt;  fi&lt;BR /&gt;exit $STAT&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Alexander M. Ermes</description>
      <pubDate>Tue, 05 Aug 2003 08:32:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/disk-enclosures/creating-backup-disk/m-p/3040383#M9334</guid>
      <dc:creator>Alexander M. Ermes</dc:creator>
      <dc:date>2003-08-05T08:32:34Z</dc:date>
    </item>
  </channel>
</rss>

