[OpenIndiana-discuss] Need help to recover files on ZFS disk partition.

Gabriel de la Cruz gabriel.delacruz at gmail.com
Sat Nov 20 23:26:47 UTC 2010


I just found this on the net:


---------------------------------------------

Once a pool has been identified for import, you can import it by specifying
the name of the pool or its numeric identifier as an argument to the *zpool
import* command. For example:

# *zpool import tank*

If multiple available pools have the same name, you can specify which pool
to import using the numeric identifier. For example:

# *zpool import*
  pool: dozer
    id: 2704475622193776801
 state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:

        dozer       ONLINE
          c1t9d0    ONLINE

  pool: dozer
    id: 6223921996155991199
 state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:

        dozer       ONLINE
          c1t8d0    ONLINE
# *zpool import dozer*
cannot import 'dozer': more than one matching pool
import by numeric ID instead
# *zpool import 6223921996155991199*

If the pool name conflicts with an existing pool name, you can import the
pool under a different name. For example:

# *zpool import dozer zeepool*

This command imports the exported pool dozer using the new name zeepool. If
the pool was not cleanly exported, ZFS requires the f flag to prevent users
from accidentally importing a pool that is still in use on another system.
For example:

# *zpool import dozer*
cannot import 'dozer': pool may be in use on another system
use '-f' to import anyway
# *zpool import -f dozer*

Pools can also be imported under an alternate root by using the R option.
For more information on alternate root pools, see ZFS Alternate Root Pools.

-------------------------------------
BR



On Sun, Nov 21, 2010 at 1:22 AM, Gabriel de la Cruz <
gabriel.delacruz at gmail.com> wrote:

> Log in the Opensolaris Live CD and run "zpool import", the literature is
> very fast to read. Just follow the instructions.
> "zpool import --help" will list your options,
>
> You can read this if you don't feel like reading at the terminal, just
> check the import sections.
> http://docs.sun.com/app/docs/doc/819-2240/zpool-1m
>
> It is a very simple process. Just read carefully.
> Please ask if you have some questions
>
> I don't think you need to upgrade the pool, so if it ask you to do so, just
> say no... (I am not even sure if this happens at all, but just in case)
>
> cheers
>
>
>
>
>
> On Sun, Nov 21, 2010 at 12:40 AM, Anthony Renaud <
> anthony_renaud65 at yahoo.com> wrote:
>
>> I have a disk partition with OpenSolaris build 132 on it,trying to upgrade
>> to build 134 it became unbootable.Using the LiveCD and from it I need to
>> mount that disk partition to recover files to a pen drive.
>> It is a USB external HDD with several partitions,one of them is ZFS
>> formatted with OpenSolaris on it.Using GParted I know its device name:
>> /dev/dsk/c5t0d0p2I tried:zfs set mountpoint=legacy /dev/dsk/c5t0d0p2mount -F
>> zfs /dev/dsk/c5t0d0p2 /mnt
>> It did not work.I know it is "Linux type for mounting filesystems",with
>> Solaris the things are a little different,but now I do not have the time to
>> read literature about ZFS filesystems etc.,later I intend to do that.So,now
>> I need someone to give me advice about a straightforward method to mount my
>> disk partition filesystem from the OpenSolaris LiveCD.
>>                                                     Thanks.
>>
>>
>>
>> _______________________________________________
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss at openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>
>
>


More information about the OpenIndiana-discuss mailing list