> I think it is quite likely to be possible to get
> readonly access to your data, but this requires
> modified ZFS binaries. What is your pool version?
> What build do you have installed on your system disk
> or available as LiveCD?

[Prompted by an off-list e-mail from Victor asking if I was still having 
problems]

Thanks for your reply, and apologies for not having replied here sooner - I was 
going to try something myself (which I'll explain shortly) but have been 
hampered by a flakey cdrom drive - something I won't have chance to sort until 
the weekend.

In answer to your question the installed system is running 2009.06 (b111b) and 
the LiveCD I've been using is b134.

The problem with the Installed system crashing when I tried to run "zpool 
clean" I believe is being caused by 
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6794136 which makes 
me think that the same command run from a later version should work fine.

I haven't had any success doing this though and I believe the reason is that 
several of the ZFS commands won't work if the hostid of the machine to last 
access the pool is different from the current system (and the pool is 
exported/faulted), as happens when using a LiveCD. Where I was getting errors 
about "storage2 does not exist" I found it was writing errors to the syslog 
that the pool "could not be loaded as it was last accessed by another system". 
I tried to get round this using the Dtrace hostid changing script I mentioned 
in one of my earlier messages but this seemed not to be able to fool system 
processes.

I also tried exporting the pool from the Installed system to see if that would 
help but unfortunately it didn't. After having exported the pool "zfs import" 
run on the Installed system reported "The pool can be imported despite missing 
or damaged devices." however when trying to import it (with or without -f) it 
refused to import it as "one or more devices is currently unavailable". When 
booting the LiveCD after having exported the pool it still gave errors about 
having been last accessed by another system.

I couldn't spot any method of modifying the LiveCD image to have a particular 
hostid so my plan therefore has been to try installing b134 onto the system, 
setting the hostid under /etc and seeing if things then behaved in a more 
straightforward fashion, which I haven't managed yet due to the cdrom problems.

I also mentioned in one of my earlier e-mails that I was confused that the 
Installed system mentioned an unreadable intent log but the LiveCD said the 
problem was corrupted metadata. This seems to be caused by the functions 
print_import_config and print_statement_config having slightly different case 
statements and not a difference in the pool itself.

Hopefully I'll be able to complete the reinstall soon and see if that fixes 
things or there's a deeper problem.

Thanks again for your help,

George
-- 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to