I have an OpenSolaris snv_101 box with ZFS on it. (Sun Ultra 20 M2) zpool name is rpool. The I have a 2nd hard drive in the box that I am trying to recover the ZFS data from (long story but that HD became unbootable after installing IPS on the machine) Both drives have a pool named "rpool", so I can''t import the rpool from the 2nd drive. root at hyperion:~# zpool status pool: rpool state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 c2t0d0s0 ONLINE 0 0 0 errors: No known data errors root at hyperion:~# zpool import pool: rpool id: 6530745808930953819 state: ONLINE action: The pool can be imported using its name or numeric identifier. config: rpool ONLINE c2t1d0s0 ONLINE If I run ''zpool import rpool'' I get "cannot import ''rpool'': pool already exists" (which makes sense) How can I import the rpool from the 2nd hard drive and have it mount on a different partition or something so I can recover the data from it? Thanks, Josh
On 5 Jan 2009, at 17:59, Josh Rivel wrote:> How can I import the rpool from the 2nd hard drive and have it mount > on > a different partition or something so I can recover the data from it?You rename it as you import it, eg: zpool import 6530745808930953819 newname Cheers, Chris
I was able to do ''zfs import rpool monkey'' but then I can''t seem to mount the data anywhere to get the data off. I imported it, then did ''zfs set mountpoint=/monkey monkey'' and did a ''zfs mount monkey'' but I don''t see anything from /export/zones, etc. I''m sure there''s a simple workaround for this and that I''m just missing the obvious here.... Thanks. Josh Rivel wrote:> I have an OpenSolaris snv_101 box with ZFS on it. (Sun Ultra 20 M2) > zpool name is rpool. The > > I have a 2nd hard drive in the box that I am trying to recover the ZFS > data from (long story but that HD became unbootable after installing IPS > on the machine) > > Both drives have a pool named "rpool", so I can''t import the rpool from > the 2nd drive. > > root at hyperion:~# zpool status > pool: rpool > state: ONLINE > scrub: none requested > config: > > NAME STATE READ WRITE CKSUM > rpool ONLINE 0 0 0 > c2t0d0s0 ONLINE 0 0 0 > > errors: No known data errors > > root at hyperion:~# zpool import > pool: rpool > id: 6530745808930953819 > state: ONLINE > action: The pool can be imported using its name or numeric identifier. > config: > > rpool ONLINE > c2t1d0s0 ONLINE > > If I run ''zpool import rpool'' I get "cannot import ''rpool'': pool already > exists" (which makes sense) > > How can I import the rpool from the 2nd hard drive and have it mount on > a different partition or something so I can recover the data from it? > > Thanks, > Josh > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
On 05 January, 2009 - Josh Rivel sent me these 1,2K bytes:> I have an OpenSolaris snv_101 box with ZFS on it. (Sun Ultra 20 M2) > zpool name is rpool. The > > I have a 2nd hard drive in the box that I am trying to recover the ZFS > data from (long story but that HD became unbootable after installing IPS > on the machine) > > Both drives have a pool named "rpool", so I can''t import the rpool from > the 2nd drive. > > root at hyperion:~# zpool status > pool: rpool > state: ONLINE > scrub: none requested > config: > > NAME STATE READ WRITE CKSUM > rpool ONLINE 0 0 0 > c2t0d0s0 ONLINE 0 0 0 > > errors: No known data errors > > root at hyperion:~# zpool import > pool: rpool > id: 6530745808930953819 > state: ONLINE > action: The pool can be imported using its name or numeric identifier. > config: > > rpool ONLINE > c2t1d0s0 ONLINE > > If I run ''zpool import rpool'' I get "cannot import ''rpool'': pool already > exists" (which makes sense) > > How can I import the rpool from the 2nd hard drive and have it mount on > a different partition or something so I can recover the data from it?root at somemachine:~# zpool missing command usage: zpool command args ... where ''command'' is one of the following: ... import [-d dir] [-D] import [-o mntopts] [-o property=value] ... [-d dir | -c cachefile] [-D] [-f] [-R root] -a import [-o mntopts] [-o property=value] ... [-d dir | -c cachefile] [-D] [-f] [-R root] <pool | id> [newpool] give a new name at newpool.. /Tomas -- Tomas ?gren, stric at acc.umu.se, http://www.acc.umu.se/~stric/ |- Student at Computing Science, University of Ume? `- Sysadmin at {cs,acc}.umu.se
Seemingly Similar Threads
- USB sticks show on one set of devices in zpool, different devices in format
- zfs list extentions related to pNFS
- Problems mounting ZFS after install
- SUMMARY: mounting datasets from a read-only pool with aid of tmpfs
- OpenSolaris better Than Solaris10u6 with requards to ARECA Raid Card