Solved

How best to copy a boot hard drive?

Posted on 1998-11-11
3
254 Views
Last Modified: 2013-12-16
I am using solaris 2.5.1 x86 and would like to make a mirror copy of my main hard drive (it has /, /usr,/tmp,etc., on it).

I would like to know how best to make a copy of this drive, so that if the one running the system crashes, I can jsut throw the copied drive in there and fire the machine up again.  These are SCSI drives in a Dell 4200.

I don't want to use 'ufsdump' because it requires the drive to be unmounted, and these sytems can't be taken down for long periods of time - do maybe 'dd' would work?

Anyway, a detailed response would be appreciated, including how to make the drive bootable, and what order I need to take to get the os to recognize the blank drive, do I need to format it if its going to be an exact duplicate of the drive I want to copy, etc...

Thanks in advance,

racy
0
Comment
Question by:racy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 200 total points
ID: 1812316
dd bs=1024 count=xxx if=/dev/rdsk/c0t0d0s2 of=/dev/rdsk/c0t1d0s2

where xxx is the disksize in kbytes.
Don't forget to adjust the device names ;-)
0
 

Author Comment

by:racy
ID: 1812317
So just a couple more questions on this and I'll be done with it...I am assuming that 'dd' can be used while the machine is running and not screw anything up?  Also, I have used 'dd' before and seem to recall that the permissions on the copied drive where strange...is there a way that I can prevent this?

And, lastly is ther a way to get the OS to recognize the disk without having to do a boot -r or b -r and shutdown the computer?

Thanks again
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1812318
dd just copies bytes, nothing more or less.
So it does not know anything about permissions, nor files or directories (in the data). You just need access to source and destination (wether they are devices and/or files).

To mount disks without rebooting (cold start !) is somehow unsupported. This is not a problem of the OS, but the hardware part. If you have a SCSI bus which allows "hot-plugging", then it's not a problem. Check your manuals.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question