Unix Technical Forum

How to clone a disk

This is a discussion on How to clone a disk within the comp.unix.solaris forums, part of the Solaris Operating System category; --> Hello, I am planning to dump my disk to newer disk with different partition. Which method I have to ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-09-2008, 07:02 AM
gvelmurugan@gmail.com
 
Posts: n/a
Default How to clone a disk

Hello,

I am planning to dump my disk to newer disk with different partition.
Which method I have to handle for best result, Whether tar, dd, cpio,
ufsdump..... and how to do it.

Thanks,
Velmurugan G

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-09-2008, 07:02 AM
trev
 
Posts: n/a
Default Re: How to clone a disk

Hi,

If you are dumping to a disk with different partitions, not sure that
dd is the best method - I'd use ufsdump or flarcreate (uses cpio).

anyway here are some examples that may help you

dd (when target disk on same bus and is at least big as source disk):

Bring system into single user mode (its better):
Check the controller and target numbers (in this example I'm copying
c1t0d0 to c1t1d0)

# dd if=/dev/rdsk/c1t0d0s2 of=/dev/rdsk/c1t1d0s2 bs=64k


Flarcreate:

# flarcreate -n "image name" -c -S -R / -x /var/tmp
/var/tmp/flash_image.flar


-c = compression
-S = don't calculate the size which makes it faster! (only
recommended if you are sure you have enough space in available in
/var/tmp)
-x = directory to exclude from the image (can temporarily move other
files in here that you don't really need to copy such as database
dumps etc.)

Once you have the flash image, ftp it to the network you want and make
it available on an NFS shared directory. Then install solaris on the
new CTP using "boot cdrom - w" to access the installer program,
choose all the normal solaris build options and when asked; choose
"Flash install" and input the location of the NFS directory
containing the image. The advantage of this method allows you to make
multiple clones, and you don't need to edit host names and IP
addresses etc.

Rgds,
Trev

gvelmurugan@gmail.com wrote:
> Hello,
>
> I am planning to dump my disk to newer disk with different partition.
> Which method I have to handle for best result, Whether tar, dd, cpio,
> ufsdump..... and how to do it.
>
> Thanks,
> Velmurugan G


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-09-2008, 07:02 AM
gvelmurugan@gmail.com
 
Posts: n/a
Default Re: How to clone a disk

Hello Trev,

We are have 2 nodes and some shared disk. We have to install according
to the projects specification. As the projects will change with in few
months we have to go for the fresh installation for the second project.
If the first project comes back for some maintance or testing we have
to go from the scratch for installation. Is there is any tools for
Fast System Recovery? . Please let me know about this.

Thanks,
Velmurugan G

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-09-2008, 07:07 AM
Colin B.
 
Posts: n/a
Default Re: How to clone a disk

gvelmurugan@gmail.com <gvelmurugan@gmail.com> wrote:
> Hello,
>
> I am planning to dump my disk to newer disk with different partition.
> Which method I have to handle for best result, Whether tar, dd, cpio,
> ufsdump..... and how to do it.


Either flarcreate, or live upgrade (lu). Check the man pages.

Colin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:26 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com