On 11/23/06, James Dickens <jamesd.wi at gmail.com> wrote:> > > > On 11/23/06, Dennis Clarke <dclarke at blastwave.org> wrote: > > > > > > this is off list on purpose ? > > > > > run zpool import, it will search all attached storage and give you a > > list > > > of availible pools. then run zpool import poolname or add a -f if > > you > > > didn''t export before the install/upgrade. > > > > assume worst case > > > > someone walks up to you and drops an array on you. > > > > > > They say "its ZFS an'' I need that der stuff ''k? " all while chewing on a > > cig. > > > > what do you do ? besides run ? > > > same thing.. plug it in... run zpool import and get a list of pool... > and import, renaming the pool if necessary... > > James >and to be more complete with my answer, might as well create a /test dir zpool import [-d dir] [-D] [-f] [-o opts] [-R root] pool | id [newpool] Imports a specific pool. A pool can be identified by its name or the numeric identifier. If newpool is specified, the pool is imported using the name newpool. Otherwise, it is imported with the same name as its exported name. If a device is removed from a system without running "zpool export" first, the device appears as potentially active. It cannot be determined if this was a failed export, or whether the device is really in use from another host. To import a pool in this state, the -f option is required. -d dir Searches for devices or files in dir. The -d the pool is imported using the name newpool. Otherwise, it is imported with the same name as its exported name. If a device is removed from a system without running "zpool export" first, the device appears as potentially active. It cannot be determined if this was a failed export, or whether the device is really in use from another host. To import a pool in this state, the -f option is required. -d dir Searches for devices or files in dir. The -d option can be specified multiple times. -D Imports destroyed pool. The -f option is also required. -f Forces import, even if the pool appears to be potentially active. -o opts Comma-separated list of mount options to use when mounting datasets within the pool. See zfs(1M) for a description of dataset properties and mount options. -R root Imports pool(s) with an alternate root. See the "Alternate Root Pools" section. and do zpool import -R /test foreignarray ; zpool status foreignarray; zfs list foreignarray James Dennis> > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20061123/f6076837/attachment.html>
> On 11/23/06, James Dickens <jamesd.wi at gmail.com> wrote: >> On 11/23/06, Dennis Clarke <dclarke at blastwave.org> wrote: >> > >> > assume worst case >> > >> > someone walks up to you and drops an array on you. >> They say "its ZFS an'' I need that der stuff ''k? " all while chewing on a >> > cig. >> > >> > what do you do ? besides run ? >> >> >> same thing.. plug it in... run zpool import and get a list of pool... >> and import, renaming the pool if necessary... >>well golly gee .. that works real slick . . . 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 # besides the grammer error above it all looks perfect. I can search the source code to find the double "on on" error there and then someone else can file a bug report. Right now I think I''ll see if I can import this puppy.> and do zpool import -R /test foreignarray ; zpool status > foreignarray; zfs list foreignarray >okay .. that comes next. Dennis
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 :-) This message posted from opensolaris.org
> Excuse me if I''m mistaken, but I think the question is on the lines of howto 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 zfspools> present on the system and then using "zfs send /foo | star ...". The OPmight be looking at something convenient along the lines of ufsdump.> > I think there is a need of a "zfsdump" tool (script?) or even better - zfsintegration 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
Dennis Clarke
2007-Jan-10 16:26 UTC
[osol-discuss] Re: [zfs-discuss] bare metal ZFS ? How To ?
this is off list on purpose ?> run zpool import, it will search all attached storage and give you a list > of availible pools. then run zpool import poolname or add a -f if you > didn''t export before the install/upgrade.assume worst case someone walks up to you and drops an array on you. They say "its ZFS an'' I need that der stuff ''k? " all while chewing on a cig. what do you do ? besides run ? Dennis _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org