Нужна помощь сообщества. GEOM: mirror/data2tb1: the primary GPT table is corrupt or invalid

Status
Not open for further replies.

miklems

Cadet
Joined
Jun 4, 2014
Messages
6
Всех приветствую.
Прошу помощи. 3 день бьюсь, не могу понять сам как сделать.
Создал зеркало из двух WD GREEN дисков в zfs. Записал на них данные. После перезагрузки в логе написал:
GEOM: ada1: the primary GPT table is corrupt or invalid.
GEOM: ada1: using the secondary instead -- recovery strongly advised.
GEOM: ada2: the primary GPT table is corrupt or invalid.
GEOM: ada2: using the secondary instead -- recovery strongly advised.
GEOM_MIRROR: Device mirror/data2tb1 launched (2/2).
GEOM: mirror/data2tb1: the primary GPT table is corrupt or invalid.
GEOM: mirror/data2tb1: using the secondary instead -- recovery strongly advised.
Уже удалил из зеркала один диск.
В итоге:
[root@freenas ~]# gmirror status
Name Status Components mirror/data2tb1 COMPLETE ada0 (ACTIVE)
[root@freenas ~]# gmirror list
Geom name: data2tb1
State: COMPLETE
Components: 1
Balance: load
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 2
ID: 3453053569
Providers: 1.
Name: mirror/data2tb1
Mediasize: 2000398933504 (1.8T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
Consumers: 1.
Name: ada0
Mediasize: 2000398934016 (1.8T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: NONE
GenID: 0
SyncID: 2
ID: 2626708509

Вопрос в том, как мне с диска достать данные. Помогите пожалуйста.

 

miklems

Cadet
Joined
Jun 4, 2014
Messages
6
Спасибо, что откликнулись.
Дело в том, что zpool пул не видит, соответственно статус ничего не выводит.
Почитал. Интересно. Зеркало через gmirror делал сам freenas, я всего лишь сделал 2 диска в zfs в зеркало в WebGUI freenas.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Какая версия FreeNAS? Сколько память? FreeNAS сейчас находится внутри виртуальной машины или установлен прямо на компьютер?

Напиши результаты 'gpart recover /dev/ada1' и 'zpool import'.
 

miklems

Cadet
Joined
Jun 4, 2014
Messages
6
1 - FreeNAS-9.2.1.5-RELEASE-x64 (80c1d35)

2 - 16237MB

3 - комп мать - asus h87m-pro

4 - [root@freenas ~]# gpart recover /dev/ada1
gpart: arg0 'ada1': Invalid argument
[root@freenas ~]#

5-
[root@freenas ~]# zpool import
pool: myzfs id: 568223015727033927
state: UNAVAIL
status: One or more devices are missing from the system.
action: The pool cannot be imported. Attach the missing
devices and try again.
ee: http://illumos.org/msg/ZFS-8000-6X
config: myzfs UNAVAIL missing device
mirror/data2tb1 ONLINE
Additional devices are known to be part of this pool, though their
exact configuration cannot be determined.
[root@freenas ~]#
 

miklems

Cadet
Joined
Jun 4, 2014
Messages
6
gpart list :

Geom name: ada0
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 156301487
first: 63
entries: 4
scheme: MBR
Providers:
1. Name: ada0s1
Mediasize: 988291584 (942M)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 32256
Mode: r0w0e0
rawtype: 165
length: 988291584
offset: 32256
type: freebsd
index: 1
end: 1930319
start: 63
2. Name: ada0s2
Mediasize: 988291584 (942M)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 988356096
Mode: r1w0e1
attrib: active
rawtype: 165
length: 988291584
offset: 988356096
type: freebsd
index: 2
end: 3860639
start: 1930383
3. Name: ada0s3
Mediasize: 1548288 (1.5M)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 1976647680
Mode: r0w0e0
rawtype: 165
length: 1548288
offset: 1976647680
type: freebsd
index: 3
end: 3863663
start: 3860640
4. Name: ada0s4
Mediasize: 21159936 (20M)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 1978195968
Mode: r1w1e2
rawtype: 165
length: 21159936
offset: 1978195968
type: freebsd
index: 4
end: 3904991
start: 3863664
Consumers:
1. Name: ada0
Mediasize: 80026361856 (74G)
Sectorsize: 512
Mode: r2w1e4

Geom name: ada0s1
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 1930256
first: 0
entries: 8
scheme: BSD
Providers:
1. Name: ada0s1a
Mediasize: 988283392 (942M)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 40448
Mode: r0w0e0
rawtype: 0
length: 988283392
offset: 8192
type: !0
index: 1
end: 1930256
start: 16
Consumers:
1. Name: ada0s1
Mediasize: 988291584 (942M)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 32256
Mode: r0w0e0

Geom name: ada0s2
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 1930256
first: 0
entries: 8
scheme: BSD
Providers:
1. Name: ada0s2a
Mediasize: 988283392 (942M)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 988364288
Mode: r1w0e1
rawtype: 0
length: 988283392
offset: 8192
type: !0
index: 1
end: 1930256
start: 16
Consumers:
1. Name: ada0s2
Mediasize: 988291584 (942M)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 988356096
Mode: r1w0e1


[root@freenas ~]# zpool import -f -R /mnt -o rdonly=on myzfs
cannot import 'myzfs': one or more devices is currently unavailable
 

miklems

Cadet
Joined
Jun 4, 2014
Messages
6
Пишет вот что:
[root@freenas ~]# zpool import -F -R /mnt -o rdonly=on myzfs
cannot import 'myzfs': one or more devices is currently unavailable
 
Status
Not open for further replies.
Top