Copying disk - dd or lucreate?


 
Thread Tools Search this Thread
Operating Systems Solaris Copying disk - dd or lucreate?
# 1  
Old 11-16-2012
Copying disk - dd or lucreate?

Got server that I want to have an 'image' of disk to keep in case of failure. What I want to be able to do is, in the event of disk failure, remove system disk replace with cloned disk (same slot) and reboot.

Trouble is I cant take this server down to single user.

Is dd still a viable option?

Or is lucreate better to do?
# 2  
Old 11-16-2012
Disclaimer: I know very little about Solaris and had never heard of lucreate until now. What follows is just a (probably unnecessary) observation regarding dd:

Running dd on a storage device that may be written to can yield an image that never existed.

Regards,
Alister

Last edited by alister; 11-16-2012 at 12:05 PM..
# 3  
Old 11-16-2012
Agreed. If your server is running live, dd is useless. I believe Solaris has better alternatives in any case, but these may be filesystem-dependent...
# 4  
Old 11-16-2012
You may be better to document the disk structure and backup up each filesystem. Do you know if this is a Veritas managed disk or just a simple disk plugged into the server? If it is Veritas then there are tools to build mirrors, but you will need to be sure that the disk can be seen from the OK prompt and the path you would need to boot from.

If it is just a simple single disk, then I would presume it is sliced with the format command. It's a little dangerous I admit, but you can start the tool and pick the options to display a partition print of the disk in question. You could then record that information ready to format a new disk if you ever need to.

To handle the filesystems, I would suggest using ufsdump It has been many years since I have had the pleasure of Solaris, so you'd better read the man pages for it, but you can sequentially dump each filesystem to tape (using the no-rewind tape device, possibly /dev/rmt0n) for each filesystem contained on your disk.

The reverse would be to boot from CD and then after using the format utility to slice the replacement disk (or on a DR server, of course) and then use ufsrestore with the no-rewind tape device to recover the filesystems. In theory you should then be able to boot! If you are on a DR server, there may well be device mismatches, so that has to be handled too, but let me know if this is a likely scenario and I will see what we have stored away in deep, darkest archive.




I hope that this is useful,
Robin
Liverpool/Blackburn
UK
# 5  
Old 11-16-2012
Quote:
Originally Posted by psychocandy
Got server that I want to have an 'image' of disk to keep in case of failure. What I want to be able to do is, in the event of disk failure, remove system disk replace with cloned disk (same slot) and reboot.

Trouble is I cant take this server down to single user.
That rules out cloning the disk, as already stated.
What you need is clone the partitioning and the file systems. As you need to do it live, the only viable solution would be to create a snapshot of the file system and use that snapshot to create you alternate boot disk. The precise way to do that depends on whether you use UFS or ZFS (fssnap vs zfs snapshot), which you do not state.
Quote:
Is dd still a viable option?
not at all.
Quote:
Or is lucreate better to do?
Possibly, lucreate works at the file system level but I'm unsure it uses snapshots so it might fail depending on the applications you use.
Some people are also using flash archive (flarcreate) to clone their environments, although it wasn't designed for that and might suffer the same issue. Without snapshots, you need to separately backup data from application like databases or directory servers.
# 6  
Old 11-28-2012
Yep. Standard file systems.

Done ufsdump but was planning to do a clone too.
# 7  
Old 11-28-2012
Apparently I can't delete this post.

Last edited by thmnetwork; 11-28-2012 at 08:42 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Lucreate Fails to Create Boot Environment;

My OS solarius 5.10 Generic_147148-2 i86 Error: please review new boots environments using options 1. Solution - show me the commands Partition is full, try to remove some unneeded files, then try to compress some other unneeded files. man command creates a temp file under... (0 Replies)
Discussion started by: zbest1966
0 Replies

2. Solaris

Sun Live Upgrade - lucreate fails

Hi, I currently have one BE and would like to create an ABE. # lustatus BE_name Complete Active ActiveOnReboot CopyStatus ------------------------------------------------------------------------ coolthreads yes yes yes - But... (3 Replies)
Discussion started by: pgarousi
3 Replies

3. Filesystems, Disks and Memory

Need help with MOD Disk copying

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

4. UNIX for Advanced & Expert Users

Listing/copying files from magnetic optical disk

I am trying to list the name of files on an MOD - I use the command tar vtf /MOD_DRIVE|more and I get a nice list of filenames/directories on this particular MOD. When I put in another MOD that contains software options I get the error "directory checksum error". I would like to be able to... (2 Replies)
Discussion started by: drew_holm
2 Replies

5. Solaris

lucreate error

Hello, On solaris 10, trying to run lucreate as below, lucreate -c Solaris10 -n Solaris10_lu -m /:/dev/dsk/c0t2d0s0:ufs -m -:/dev/dsk/c0t2d0s1:swap -m /export/home:/dev/dsk/c0t2dufs7 but it's resulting in an error as below, Discovering physical storage devices Discovering logical... (5 Replies)
Discussion started by: upengan78
5 Replies

6. Solaris

failure in lucreate

Earlier live upgrade from solaris 8 to solaris 10 5/08 was not permitted . Later by document 250526 dated Feb 2009 , it permitted and fllowing s8p7zip.tar and following solution 206844 . While installing SUNWluu,SUNWlur,SUNWlucfg , I had a partial failure . But pkginfo shows the information... (5 Replies)
Discussion started by: Hitesh Shah
5 Replies

7. UNIX for Dummies Questions & Answers

Copying files unto a usb pendrive/external disk from Solaris 9

Hi all, Can anybody help me with how I can connect a usb pendrive or external disk to a Sun Server which runs on Solaris 9? I am able to connect the usb drive to a windows server easily and copy files but am wondering if it is possible to do that with Solaris. Any help will be appreciated. thanks. (3 Replies)
Discussion started by: rahmantanko
3 Replies

8. UNIX for Advanced & Expert Users

copying oracle tables from raw disk

I have been tasked with archiving Oracle tables. The data is on raw devices, and possibly will span multiple logical volumes. Has anyone ever had to do this? How did you accomplish it? Any references to accomplish this would be greatly appreciated. Thanks, (2 Replies)
Discussion started by: isenhart
2 Replies
Login or Register to Ask a Question