Solved

How best to copy a boot hard drive?

Posted on 1998-11-11
3
252 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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

742 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