Visit Our UNIX and Linux User Community


Solaris 10: how to copy whole disk?


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 10: how to copy whole disk?
# 1  
Old 04-02-2008
Solaris 10: how to copy whole disk?

Hi,

i have problems with my system disk (os solaris 5.10) and i'm wondering if there is any way to copy the whole disk to a new one, without reinstalling everything (so to do a mirroring)??

thanks in advance
# 2  
Old 04-02-2008
You could either mirror and split using SVM, or much more simply create a new boot environment on the new disk using live upgrade ( either by 'lucreate' or using the curses bases 'lu' command) then boot from the new disk.
# 3  
Old 04-02-2008
One way is usfdump, ufsrestore to backup & restore the disk

The usual way is to use the 'dd'command - though I've only seen this demonstrated at the OBP (PROM) level i.e. on a Sun SPARC box, not a x86
Also, do a run a ./configure whichever way you choose
# 4  
Old 04-03-2008
assuming c0t0d0 is yur boot disk and c0t1d0 is the new disk or spare disk from another system.

on c0t0d0s0 (assuming root partition) do a command

# touch marbles (it will create an empty file called marbles)

#sync;sync;sync;init 0 (shutdown system to ok prom level)

insert os cdrom

#boot cdrom -s

do a format command to find out where is your OS disk.(controller number may or may not change)

if controller number changed, look for your marbles ') mount s0 of all the disks find out where are your marbles.

assuming c1t0d0s0 is the location of your marbles file so c1t1d0 is the new disk

umount all the disk

partition the new disk geometry to be exactly the same as your OS disk.

then do a command

dd in=/dev/rdsk/c1t0d0s2 of=/dev/rdsk/c1t1d0s2 bs=2048k


then just leave it, once it completes it will say something like
xxxxx records in
xxxxx records out

then you're almost done.

(WARNING!!!! DO NOT COCKUP THE LOCATION OF THE if AND of)

if you accidently put if=empty disk and of=original os disk

YOU WILL END UP WITH ZERO OS DISK.

Next go to your server and find out where physically is your OS disk located, physically take note of the location of the disk slot number.

Whenever you want to use the 'ghosted' disk, remove the OS disk from the slot and replace it with the ghosted disk back into the exact original OS disk slot.

then your're done.

Previous Thread | Next Thread
Test Your Knowledge in Computers #429
Difficulty: Medium
JavaScript is officially managed by Mozilla Foundation.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

Use 'dd' to copy boot disk to larger target disk

Hi, I'm looking to copy a boot disk on an old Solaris 8 system using dd. I'll bring the system down to single user mode and begin from there. I'm copying my source disk to a larger target disk. Do I need to do anything other than the 'dd' command below because the target disk is bigger? ... (2 Replies)
Discussion started by: sparcman
2 Replies

2. Solaris

Convert from raw disk to solaris volume manager disk

I have a solaris 10 system configured using NetApp as its storage, and the file systems are already configured as you can see from the example below: root@moneta # df -h Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 9.8G 513M 9.3G 6% /... (4 Replies)
Discussion started by: fretagi
4 Replies

3. Solaris

Convert from raw disk to solaris volume manager disk

I have a solaris 10 system configured using NetApp as its storage, and the file systems are already configured as you can see from the example below: root@moneta # df -h Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 9.8G 513M 9.3G 6% / ... (0 Replies)
Discussion started by: fretagi
0 Replies

4. Solaris

Solaris 6.5 MOD disk copy help needed

Hello, we are running Irix 6.5 on our octane/sgi computers - these computers come with an external Sony MOD drive attached via a scsi cable. We have backed info to 2.3 gig MOD disks over the years and woule like to duplicate the MOD's. I believe there are 3 ways to do this: add a second... (1 Reply)
Discussion started by: drew_holm
1 Replies

5. UNIX for Dummies Questions & Answers

copy failing disk to Spare

Hi Guys, I have a failing 4gb (c0t5d0) drive that contains lvol4 -8 on hp-ux. It's not the boot disk but is part of VG00 volume group. Within that group, I have a disk (c0t4d0) of the same size that has 1 lvol on it for swap(4gb) I also have a seperate 1.5 gb swap volume on another physical disk... (1 Reply)
Discussion started by: rees_a
1 Replies

6. UNIX for Dummies Questions & Answers

What is in-core copy and disk-copy of i-node table?

I have found a question from the exercises of my study mat. The question is "Why are there a in-core copy and a disk-copy of i-node block and super block?" If any one know the proper answer then please send me..... (1 Reply)
Discussion started by: dearanik
1 Replies

7. UNIX for Dummies Questions & Answers

how to copy file in cd or floppy disk

i am novice in unix. in me office my boss hav given me a system with Unix OS. i know about windows and Dos. in dos we access cd or floppy through writing following commands a: or d: copy filename.ext to a: i dont even now how to access CD Rom or floppy drive in unix. please tell... (1 Reply)
Discussion started by: fassi
1 Replies

8. Linux

Copy entire disk in FC3

I'm running FC3 and I'd like to copy the entire /dev/hda to /dev/hdc, including all the boot info, so that I can boot off of it in case of failure. This will be a one time thing. I'm doing an app upgrade and I'm very afraid the install will go wrong, so I want to be able to quickly be back up in... (11 Replies)
Discussion started by: dangral
11 Replies

9. UNIX for Dummies Questions & Answers

How to Copy Contents from CD to Hard disk

Hello all.. Iam New to Unix Environment. I need to copy .cpio file from CD to a Folder on Sun 5.8 Box. Can anyone give me the commands to execute this ?.. Thanks in advance Ron (4 Replies)
Discussion started by: vr76413
4 Replies

10. UNIX for Dummies Questions & Answers

Help me with disk copy

I do not have a Unix machine, i do have a Linux machine.. i have a Unix boot disk that is essencial to my unit. Is there any way in Windows98 or Linux to make copies of this disk. So far i can't get either to read the disk. (1 Reply)
Discussion started by: deathsfriend
1 Replies

Featured Tech Videos