- Community Home
- >
- Storage
- >
- Entry Storage Systems
- >
- Disk Enclosures
- >
- Re: Creating backup disk
Disk Enclosures
1748060
Members
5720
Online
108758
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2003 02:47 AM
тАО08-04-2003 02:47 AM
Creating backup disk
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.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2003 11:07 AM
тАО08-04-2003 11:07 AM
Re: Creating backup disk
Garth,
This really depends on your configuration. I need to know the following:
What type of array controller
What server
What OS
Are there other drives attached to this controller and what is their configuration?
This really depends on your configuration. I need to know the following:
What type of array controller
What server
What OS
Are there other drives attached to this controller and what is their configuration?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2003 01:32 AM
тАО08-05-2003 01:32 AM
Re: Creating backup disk
Hi there.
Try to get a third disk.
1.
Break the mirror. Take out the secondary disk.
Put in the new one. Rebuild the mirror.
2.
Put in the new disk and create a backup with dd.
This idea came originally from Clay Stephenson
known as life boat.
#!/usr/bin/ksh
# Define the Source (SRC) and Destination (DEST) devices for the boot copy"
# Warning: Be very careful; you may overwrite actual boot devices or data!!!"
# Make certain corresponding SRC & DEST drives be identical.
# NOTE: Marvin Vesrion !!!
src="/dev/rdsk/c3t5d0 /dev/rdsk/c3t0d0"
DEST="/dev/rdsk/c3t9d0 /dev/rdsk/c3t8d0"
VRSN="[1.0]"
# 1.0 05/17/99 acs
PROG=$0
BLKSZ=8000k
SYNC_DELAY=10
readonly SRC DEST PROG VRSN BLKSZ SYNC_DELAY
PATH=/usr/bin:/usr/sbin:${PATH}
export PATH
HOST=`hostname`
readonly HOST
STAT=0
VERBOSE=1
while getopts :vVsS opts
do
case $opts in
v|V) VERBOSE=1
;;
s|S) VERBOSE=0
;;
? ) echo "${PROG}: Unknown arg\n" >&2
STAT=244
;;
esac
done
if [ ${STAT} -ne 0 ]
then
exit ${STAT}
fi
let SRCKNT=0
for X in $SRC
do
SRCRAY[${SRCKNT}]=$X
let SRCKNT=${SRCKNT}+1
done
let DESTKNT=0
for X in $DEST
do
DESTRAY[${DESTKNT}]=$X
let DESTKNT=${DESTKNT}+1
done
if [ ${SRCKNT} -ne ${DESTKNT} ]
then
echo "${PROG}: Boot source volume count not equal to destination \c" >&2
echo "count." >&2
STAT=255
exit $STAT
fi
let N=0
while [ ${N} -lt ${SRCKNT} -a ${STAT} -eq 0 ]
do
S=${SRCRAY[${N}]}
D=${DESTRAY[${N}]}
if [ -c "${S}" ]
then
if [ -c "${D}" ]
then
if [ "${S}" != "${D}" ]
then
let N=${N}+1
else
echo "${PROG}: Source and destinatrion device \"${S}\" " >&2
echo "identical." >&2
fi
else
echo "${PROG}: Destination volume \"${D}\" does not exist or " >&2
echo "is not a character special device." >&2
STAT=253
fi
else
echo "${PROG}: Source volume \"${S}\" does not exist or is not a " >&2
echo "character special device." >&2
STAT=254
fi
done
if [ $STAT -eq 0 ]
then
if [ ${VERBOSE} -ne 0 ]
then
echo "Host: ${HOST}"
echo
echo "Syncing disk(s). ...\c"
fi
sync; sync; sync
sleep $SYNC_DELAY
if [ ${VERBOSE} -ne 0 ]
then
echo
echo
fi
let N=0
while [ ${N} -lt ${SRCKNT} -a ${STAT} -eq 0 ]
do
S=${SRCRAY[${N}]}
D=${DESTRAY[${N}]}
let N=${N}+1
if [ ${VERBOSE} -ne 0 ]
then
echo "Copying Boot Disk ${N} of ${SRCKNT} in background. ... "
echo "\t${S} --> ${D} ... \c"
fi
dd if=${S} of=${D} bs=${BLKSZ} &
if [ ${VERBOSE} -ne 0 ]
then
echo
echo
fi
sleep $SYNC_DELAY
done
if [ ${VERBOSE} -ne 0 ]
then
echo
echo "Waiting for all copies to finish. ...\c"
fi
wait
STAT=$?
if [ ${STAT} -eq 0 ]
then
if [ ${VERBOSE} -ne 0 ]
then
echo " Done."
fi
else
echo "\n${PROG}: Host ${HOST}; copy failed; status = ${STAT}." >&2
fi
fi
exit $STAT
Rgds
Alexander M. Ermes
Try to get a third disk.
1.
Break the mirror. Take out the secondary disk.
Put in the new one. Rebuild the mirror.
2.
Put in the new disk and create a backup with dd.
This idea came originally from Clay Stephenson
known as life boat.
#!/usr/bin/ksh
# Define the Source (SRC) and Destination (DEST) devices for the boot copy"
# Warning: Be very careful; you may overwrite actual boot devices or data!!!"
# Make certain corresponding SRC & DEST drives be identical.
# NOTE: Marvin Vesrion !!!
src="/dev/rdsk/c3t5d0 /dev/rdsk/c3t0d0"
DEST="/dev/rdsk/c3t9d0 /dev/rdsk/c3t8d0"
VRSN="[1.0]"
# 1.0 05/17/99 acs
PROG=$0
BLKSZ=8000k
SYNC_DELAY=10
readonly SRC DEST PROG VRSN BLKSZ SYNC_DELAY
PATH=/usr/bin:/usr/sbin:${PATH}
export PATH
HOST=`hostname`
readonly HOST
STAT=0
VERBOSE=1
while getopts :vVsS opts
do
case $opts in
v|V) VERBOSE=1
;;
s|S) VERBOSE=0
;;
? ) echo "${PROG}: Unknown arg\n" >&2
STAT=244
;;
esac
done
if [ ${STAT} -ne 0 ]
then
exit ${STAT}
fi
let SRCKNT=0
for X in $SRC
do
SRCRAY[${SRCKNT}]=$X
let SRCKNT=${SRCKNT}+1
done
let DESTKNT=0
for X in $DEST
do
DESTRAY[${DESTKNT}]=$X
let DESTKNT=${DESTKNT}+1
done
if [ ${SRCKNT} -ne ${DESTKNT} ]
then
echo "${PROG}: Boot source volume count not equal to destination \c" >&2
echo "count." >&2
STAT=255
exit $STAT
fi
let N=0
while [ ${N} -lt ${SRCKNT} -a ${STAT} -eq 0 ]
do
S=${SRCRAY[${N}]}
D=${DESTRAY[${N}]}
if [ -c "${S}" ]
then
if [ -c "${D}" ]
then
if [ "${S}" != "${D}" ]
then
let N=${N}+1
else
echo "${PROG}: Source and destinatrion device \"${S}\" " >&2
echo "identical." >&2
fi
else
echo "${PROG}: Destination volume \"${D}\" does not exist or " >&2
echo "is not a character special device." >&2
STAT=253
fi
else
echo "${PROG}: Source volume \"${S}\" does not exist or is not a " >&2
echo "character special device." >&2
STAT=254
fi
done
if [ $STAT -eq 0 ]
then
if [ ${VERBOSE} -ne 0 ]
then
echo "Host: ${HOST}"
echo
echo "Syncing disk(s). ...\c"
fi
sync; sync; sync
sleep $SYNC_DELAY
if [ ${VERBOSE} -ne 0 ]
then
echo
echo
fi
let N=0
while [ ${N} -lt ${SRCKNT} -a ${STAT} -eq 0 ]
do
S=${SRCRAY[${N}]}
D=${DESTRAY[${N}]}
let N=${N}+1
if [ ${VERBOSE} -ne 0 ]
then
echo "Copying Boot Disk ${N} of ${SRCKNT} in background. ... "
echo "\t${S} --> ${D} ... \c"
fi
dd if=${S} of=${D} bs=${BLKSZ} &
if [ ${VERBOSE} -ne 0 ]
then
echo
echo
fi
sleep $SYNC_DELAY
done
if [ ${VERBOSE} -ne 0 ]
then
echo
echo "Waiting for all copies to finish. ...\c"
fi
wait
STAT=$?
if [ ${STAT} -eq 0 ]
then
if [ ${VERBOSE} -ne 0 ]
then
echo " Done."
fi
else
echo "\n${PROG}: Host ${HOST}; copy failed; status = ${STAT}." >&2
fi
fi
exit $STAT
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP