Discussion:
migrate from freeBSD to Linux
martinoff
2014-02-02 19:50:18 UTC
Permalink
Aloha



I have a zfs pool in freebsd and want to migrate to zol but I have some
problems



This is my pool

[code] zpool status

pool: data

state: ONLINE

scan: scrub repaired 0 in 3h11m with 0 errors on Tue Jul 30 05:47:09 2013

config:



NAME STATE READ WRITE CKSUM

data ONLINE 0 0 0

gpt/disk1 ONLINE 0 0 0

gpt/disk2 ONLINE 0 0 0



errors: No known data errors[/code]

this zdb -C

[code] zdb -C data



MOS Configuration:

version: 5000

name: 'data'

state: 0

txg: 2989241

pool_guid: 6443248701440510437

hostid: 4243740396

hostname: 'hp.server.com'

vdev_children: 2

vdev_tree:

type: 'root'

id: 0

guid: 6443248701440510437

children[0]:

type: 'disk'

id: 0

guid: 5678030687779391050

path: '/dev/gpt/disk1'

phys_path: '/dev/gpt/disk1'

whole_disk: 1

metaslab_array: 33

metaslab_shift: 34

ashift: 12

asize: 3000586993664

is_log: 0

DTL: 160

create_txg: 4

children[1]:

type: 'disk'

id: 1

guid: 2636475361422113179

path: '/dev/gpt/disk2'

phys_path: '/dev/gpt/disk2'

whole_disk: 1

metaslab_array: 30

metaslab_shift: 34

ashift: 12

asize: 3000586993664

is_log: 0

DTL: 161

create_txg: 4

features_for_read:[/code]





I cant export it and import by gpt or gptid but not from diskid

[code] zpool import -d /dev/gpt

pool: data

id: 6443248701440510437

state: ONLINE

action: The pool can be imported using its name or numeric identifier.

config:



data ONLINE

gpt/disk1 ONLINE

gpt/disk2 ONLINE

[/code]



Gptid

[code] zpool import -d /dev/gptid

pool: data

id: 6443248701440510437

state: ONLINE

action: The pool can be imported using its name or numeric identifier.

config:



data ONLINE

gptid/7fce9a51-e9ba-11e2-a573-3cd92b0b000e ONLINE

gptid/7bf1c36b-e9ba-11e2-a573-3cd92b0b000e ONLINE

[/code]



And from disked



[code]

zpool import -d /dev/diskid/

pool: data

id: 6443248701440510437

state: ONLINE

status: One or more devices contains corrupted data.

action: The pool can be imported using its name or numeric identifier.

see: http://illumos.org/msg/ZFS-8000-4J

config:



data ONLINE

diskid/DISK-WD-WCC1T0611102p1 ONLINE

2636475361422113179 UNAVAIL corrupted data

[/code]



When I try from zol I get corrupted data from both disk



Thanks in advance










-------------------------------------------
illumos-zfs
Archives: https://www.listbox.com/member/archive/182191/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182191/23047029-187a0c8d
Modify Your Subscription: https://www.listbox.com/member/?member_id=23047029&id_secret=23047029-2e85923f
Powered by Listbox: http://www.listbox.com
Gary
2014-02-24 06:15:58 UTC
Permalink
this Ars article is one of the better ZOL writeups I've seen;
http://t.co/buumyp1Z0U



-------------------------------------------
illumos-zfs
Archives: https://www.listbox.com/member/archive/182191/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182191/23047029-187a0c8d
Modify Your Subscription: https://www.listbox.com/member/?member_id=23047029&id_secret=23047029-2e85923f
Powered by Listbox: http://www.listbox.com
Fajar A. Nugraha
2014-02-24 07:45:51 UTC
Permalink
Post by martinoff
Aloha
I have a zfs pool in freebsd and want to migrate to zol but I have some
problems
to clarify: by "zol" do you mean zfs on linux? or something else?
Post by martinoff
I cant export it and import by gpt or gptid but not from diskid
[code] zpool import -d /dev/gpt
pool: data
id: 6443248701440510437
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
data ONLINE
gpt/disk1 ONLINE
gpt/disk2 ONLINE
[/code]
Gptid
[code] zpool import -d /dev/gptid
pool: data
id: 6443248701440510437
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
data ONLINE
gptid/7fce9a51-e9ba-11e2-a573-3cd92b0b000e ONLINE
gptid/7bf1c36b-e9ba-11e2-a573-3cd92b0b000e ONLINE
[/code]
And from disked
[code]
zpool import -d /dev/diskid/
pool: data
id: 6443248701440510437
state: ONLINE
status: One or more devices contains corrupted data.
action: The pool can be imported using its name or numeric identifier.
see: http://illumos.org/msg/ZFS-8000-4J
data ONLINE
diskid/DISK-WD-WCC1T0611102p1 ONLINE
2636475361422113179 UNAVAIL corrupted data
[/code]
When I try from zol I get corrupted data from both disk
I don't recall any linux distro having /dev/diskid.
Post by martinoff
From a glance, it seems like you have whole disk vs partition problem. If
you DO mean zfs on linux, what do you get when running

zpool import -d /dev
zpool import -d /dev/disk/by-path
zpool import -d /dev/disk/by-id
--
Fajar



-------------------------------------------
illumos-zfs
Archives: https://www.listbox.com/member/archive/182191/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182191/23047029-187a0c8d
Modify Your Subscription: https://www.listbox.com/member/?member_id=23047029&id_secret=23047029-2e85923f
Powered by Listbox: http://www.listbox.com
martinoff
2014-02-24 10:00:48 UTC
Permalink
Post by Fajar A. Nugraha
Post by martinoff
Aloha
I have a zfs pool in freebsd and want to migrate to zol but I have some
problems
to clarify: by "zol" do you mean zfs on linux? or something else?
Post by martinoff
I cant export it and import by gpt or gptid but not from diskid
[code] zpool import -d /dev/gpt
pool: data
id: 6443248701440510437
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
data ONLINE
gpt/disk1 ONLINE
gpt/disk2 ONLINE
[/code]
Gptid
[code] zpool import -d /dev/gptid
pool: data
id: 6443248701440510437
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
data ONLINE
gptid/7fce9a51-e9ba-11e2-a573-3cd92b0b000e ONLINE
gptid/7bf1c36b-e9ba-11e2-a573-3cd92b0b000e ONLINE
[/code]
And from disked
[code]
zpool import -d /dev/diskid/
pool: data
id: 6443248701440510437
state: ONLINE
status: One or more devices contains corrupted data.
action: The pool can be imported using its name or numeric identifier.
see: http://illumos.org/msg/ZFS-8000-4J
data ONLINE
diskid/DISK-WD-WCC1T0611102p1 ONLINE
2636475361422113179 UNAVAIL corrupted data
[/code]
When I try from zol I get corrupted data from both disk
I don't recall any linux distro having /dev/diskid.
From a glance, it seems like you have whole disk vs partition problem.
If you DO mean zfs on linux, what do you get when running
zpool import -d /dev
zpool import -d /dev/disk/by-path
zpool import -d /dev/disk/by-id
--Fajar>illumos-zfs | Archives | Modify Your Subscription >
yes with zol i mean zfs on linux (0.6.2 and compiled from source with no
difference.Same result, corrupted data)
thanks but i already destroy it and build it again

this time i create the pool on linux and i was able to import it
succesfully in freeBSD and OpenIndiana

and yes you are right for the diskid, the output is from /dev/disk/by-id

thanks for your answer

--
gstef


-------------------------------------------
illumos-zfs
Archives: https://www.listbox.com/member/archive/182191/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182191/23047029-187a0c8d
Modify Your Subscription: https://www.listbox.com/member/?member_id=23047029&id_secret=23047029-2e85923f
Powered by Listbox: http://www.listbox.com

Continue reading on narkive:
Loading...