Cannot recover OS hard drive from a set of snapshots


 
Thread Tools Search this Thread
Operating Systems Solaris Cannot recover OS hard drive from a set of snapshots
# 1  
Old 09-10-2011
Cannot recover OS hard drive from a set of snapshots

I have installed Solaris 11 Express on my computer and set up a script to make daily snapshots of all filesystems and send them to a backup disc.

Now I'm trying to replace the system disc using a set of captured snapshots. I have found an article on that topic on the internet and have been experimenting with the recomended procedure for a while.

Here is a list of exactly the steps I take (c8d0 is the identifier of the new hard disc):
  1. I boot from the USB Install image downloaded from Oracle
  2. I type
    Code:
    fdisk -B /dev/rdsk/c8d0p0

    to relabel the new disc to a Solaris2 partition
  3. I import the backup disc:
    Code:
    zpool import -f backup

  4. I create the root pool:
    Code:
    zpool create -f -o failmode=continue -R /a -m legacy rpool c8d0p0

  5. I install the grub and the MBR:
    Code:
    installgrub -fm /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c8d0s0

  6. I import the rpool, rpool/ROOT, rpool/ROOT/solaris, rpool/export and rpool/export/home filesystems this way:
    Code:
    zfs send backup/rpool@[timestamp] | zfs receive –F rpool

  7. I set the boot property for the root partition:
    Code:
    zpool set bootfs=rpool/ROOT/solaris rpool

  8. I create the dump and swap fs:
    Code:
    zfs create -V 2G rpool/dump\n
    zfs create -V 2G -b 4k rpool/swap

  9. Finally I reboot the system:
    Code:
    init 6


But then, when the pc reboots, the boot process stops on this message:

Code:
Verifying DMI Pool Data ..................
GRUB _

What am I doing wrong?
Thanks for your answers, Dusan
# 2  
Old 09-10-2011
Did you check your GRUB configuration file, i.e. menu.lst, is correct?
# 3  
Old 09-12-2011
Thanks for your reply. I did check the /boot/grub/menu.lst file now.

It appears to be the same on the new hard drive as on the old one. In both of them there are only two lines:

Code:
default 0
timeout 10

All other lines are empty or commented out.

It also appears that even the menu.lst on the usb install image looks the same. Even though there are several options in the GRUB menu when booted from the USB stick.

Is this correct?

And please if there is a better way to restore the OS hard drive from a backup (preferably zfs snapshots), let me now.

Thanks Dusan
# 4  
Old 09-12-2011
I'd check the restored filesystem with fsck.
perhaps you could use grub from USB to boot the disk.


btw, you can't fail with dd..
# 5  
Old 09-12-2011
There is no fsck for ZFS... There is no need for it.
# 6  
Old 10-02-2011
Quote:
Originally Posted by RychnD
[code]I import the rpool, rpool/ROOT, rpool/ROOT/solaris, rpool/export and rpool/export/home filesystems this way:
Code:
zfs send backup/rpool@[timestamp] | zfs receive –F rpool

According to the ZFS troubleshooting guide, that should be:
Code:
zfs send backup/rpool@timestamp | zfs receive -Fd rpool

Solaris 11 Express matches build 107 or later, being build 151a.
# 7  
Old 10-02-2011
Thanks for your answer jlliagre.

I thought the other way (zfs send backup/rpool@timestamp | zfs receive -Fd rpool) was to be used when you created a single recursive snapshot (in step 5, ZFS troubleshooting guide), which I did not. I backup each filesystem manualy.

Do you think this might cause the problems?
Thanks Dusan
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

External hard drive

I have connected an external hard drive. I can't find it. Both ls /media, fdisk -l and ls /dev show nothing. TIA (3 Replies)
Discussion started by: Meow613
3 Replies

2. Hardware

SATA drive FAT recover

I had ACER aspiron one netbook with dual bootable (Windows XP and Debian). Recently I found XP is messy and Debian has new version published. I plan to recover XP and install new version of Debian. But I failed to recover XP from Hidden Partition. I thought it is because I install GRUB in the... (15 Replies)
Discussion started by: sinnud
15 Replies

3. SCO

Recover data from failed Hard disk in SCO OpenServer 5.06

One hard disk fail to mount (/dev/data). I had run "fsck /dev/data" then some error occured "unrecoverable error reading SCSI Disk 1 dev 1/104". I need to recover data from disk. please help. (1 Reply)
Discussion started by: rakeshkumar9919
1 Replies

4. Ubuntu

Accessing all of the hard drive...

Hi, I just downloaded and installed Ubuntu yesterday. It's the first time I have used it, so bear with me. I think I figured out how to get my sound drivers to work (X-Fi)... I had downloaded some OSS drivers, bout to go test them. But what I really want to know is... I have 2 hard drive,... (2 Replies)
Discussion started by: blind melon
2 Replies

5. Filesystems, Disks and Memory

Hard Drive Temperature?

Hi, I just set up a raid Z array in solaris xpress and I notice that the drives feel pretty damn hot. I use speedfan to monitor the temperatures of the hard drives in XP. Is there a similar program for solrais? I assume there would be since the drives all have temp sensors in them, but I... (2 Replies)
Discussion started by: ciscocbee
2 Replies

6. Solaris

Hard Drive error

I have a hard drive that we are trying to jumpstart in a sunblad 1500. we keep getting errors. I placed the drive in my 1500. I want to wipe the drive clean because for some reason it has a partition table. and when i go to format and try to format the drive it says it can not use a program. is... (5 Replies)
Discussion started by: deaconf19
5 Replies

7. Filesystems, Disks and Memory

The best partitioning schem for a 250GB Sata hard drive & a 75GB SCSI hard drive

Hi I have 2 75GB SCSI hard drives and 2 250GB SATA hard drives which are using RAID Level 1 respectively. I wana have both FTP and Apache installed on them as services. I'm wondering what's the best partitioning schem? I wana use FC3 as my OS, so, I thought I can use the 75GB hard drive as the /... (0 Replies)
Discussion started by: sirbijan
0 Replies

8. UNIX for Dummies Questions & Answers

Trying to copy old hard drive to new hard drive.

:confused: ........I have a new hard drive and I need to copy ALL info from the old to the new. I would like to use the dd command. I know the command is as follows...... dd if=/dev/rdsk/c1t1d0s0 of=/dev/rdsk/???????? Where I have the question marks is the problem. How do I find out what the... (4 Replies)
Discussion started by: shorty
4 Replies

9. UNIX for Dummies Questions & Answers

I Want To Automount My Hard Drive!!!

:confused: Im as newbie as they come....... I just loaded Red Hat 8.0 on my computer. I have a second hard drive that i reformatted with a Fat32 so I could share it with my XP and Linux partions....... I have like 4000 mp3's on it and i would like to get it to auto mount when Linux boots....? Or... (5 Replies)
Discussion started by: mynameiskyle
5 Replies
Login or Register to Ask a Question