> Excuse me if I'm mistaken, but I think the question is on the lines of how
to access and more importantly - Backup zfs pools/filesystems present on a
system by just booting from a CD/DVD.
>
> I think the answer would be on the lines of (forced?) importing of zfs
pools
> present on the system and then using "zfs send /foo | star ...". The OP
might be looking at something convenient along the lines of ufsdump.
>
> I think there is a need of a "zfsdump" tool (script?) or even better - zfs
integration in star. Maybe Jörg should chip in :-)

As a matter of fact you nailed down exactly what I was doing.

Except star had a problem with "locking an object" or some similar error
message.  I simply tried the following :

power up the Sun machine
look at the ok prompt
type 'boot net -srv'
wait for a while until I get a SINGLE USER MODE hash prompt
type zfs import thus

.
.
.
Requesting System Maintenance Mode
SINGLE USER MODE
# zpool import
  pool: zfs0
    id: 13628474126490156099
 state: ONLINE
action: The pool can be imported using its name or numeric identifier.
        The pool may be active on on another system, but can be imported using
        the '-f' flag.
config:

        zfs0        ONLINE
          c1t9d0    ONLINE
          c1t10d0   ONLINE
          c1t11d0   ONLINE
          c1t12d0   ONLINE
          c1t13d0   ONLINE
          c1t14d0   ONLINE

then I did this

# mkdir /tmp/root/foo
# zpool import -f -R /tmp/root/foo 13628474126490156099

Then I could cd to various places in /tmp/root/foo and attempt to run star
to do a backup to tape.  That didn't go so well as I got an error about not
being able to lock an object in memory.  Also, you can't get star unless you
ftp it in from somewhere or have it on floppy/CDROM etc etc.

I reverted to good old tar like so :

tar -cvfPE /dev/rmt/0mbn .

then that blew up ( after three hours or more ) because I hit the end of the
tape and the process died.

So the long and short of it is that you can't drop a ZFS filesystem to tape
easily with any built in tools in the SXCR these days.  There is already an
RFE filed on that but I think its low priority.  You can recover a zpool
easily enough with zpool import but if you ever lose a few disks or some
disaster hits then you had better have Veritas NetBackup or similar in
place.

Dennis Clarke

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to