如何使用Ubuntu和ZEVO将磁盘连接到现有的ZFS zpool镜像?


2

是否可以将第三个HDD附加到已创建的由两个具有ZEVO的HDD组成的镜像上?

Ubuntu的

我运行具有本机ZFS支持的Ubuntu虚拟机。当我连接第三个硬盘时,它可以正常工作。

OS X狮子

当我将池导入Lion时,ZEVO争辩说,一个池丢失了,即使它在那里并且此刻也被重新分配了。


在Ubuntu上:

$ zpool status Toshiba_ZFS

pool: Toshiba_ZFS
state: ONLINE
status: One or more devices is currently being resilvered.  The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Sun Aug 19 15:03:18 2012
12.1G scanned out of 598G at 14.4M/s, 11h33m to go
929M resilvered, 2.02% done

config:

NAME        STATE     READ WRITE CKSUM
Toshiba_ZFS  ONLINE       0     0     0
  mirror-0  ONLINE       0     0     0
    sdd     ONLINE       0     0     0
    sdc     ONLINE       0     0     0
    sdb5    ONLINE       0     0     5  (resilvering)

在Mac OS X(Lion)上:

$ zpool status Toshiba_ZFS

pool: Toshiba_ZFS
state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Sun Aug 19 15:03:18 2012
1,52Gi scanned out of 598Gi at 24,0Mi/s, 7h4m to go
242Mi resilvered, 0,25% done
config:

NAME                                           STATE     READ WRITE CKSUM
Toshiba_ZFS                                    DEGRADED     0     0     0
  mirror-0                                     DEGRADED     0     0     0
    GPTE_1C3475D8-AB6F-3547-AE5D-571C2389DCC7  ONLINE       0     0     0  at disk3s1
    GPTE_11059782-DA42-654B-8577-431C1B80814C  ONLINE       0     0     0  at disk5s1
    16494388674814556229                       UNAVAIL      0     0     0  was /dev/sdb5

出于某些原因,ZEVO将这些池存储在/ dev / dsk /中,但是由于我的第三个硬盘还没有一个池,并且将被附加到现有的zfs镜像池中,因此它不会被识别

$diskutil info disk2s5

Device Identifier:        disk2s5
Device Node:              /dev/disk2s5
Part of Whole:            disk2
Device / Media Name:      tank

Volume Name:              Not applicable (no file system)

Mounted:                  Not applicable (no file system)

File System:              None

Partition Type:           FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF
OS Can Be Installed:      No
Media Type:               Generic
Protocol:                 USB
SMART Status:             Not Supported

Total Size:               751.6 GB (751591690240 Bytes) (exactly 1467952520 512-Byte-Blocks)
Volume Free Space:        Not applicable (no file system)
Device Block Size:        512 Bytes

Read-Only Media:          No
Read-Only Volume:         Not applicable (no file system)
Ejectable:                Yes

Whole:                    No
Internal:                 No[/code]

$ zpool attach Toshiba_ZFS disk3s1 disk2s5
cannot open 'disk2s5': no such device in /dev/dsk
must be a full path or shorthand device name

如何使用ZEVO附加另一个磁盘?

编辑:这是来自控制台应用程序的一些日志信息:

20.08.12 09:52:01,000 kernel: ZFSLabelScheme:start: 0xffffff801160e700 created proxy         disk for pool 'Toshiba_ZFS'
20.08.12 09:52:01,000 kernel: ZFSLabelScheme:start: 'Toshiba_ZFS' critical mass with 1     vdev(s) (skip import)
20.08.12 09:52:01,000 kernel: ZFSLabelScheme:probe: label 'Toshiba_ZFS', vdev     8248481474682216015
20.08.12 09:52:01,000 kernel: zfsx_vdm_open: couldn't find vdevMedia for 'sde5'
20.08.12 09:52:01,000 kernel: ldi_open_by_name: Toshiba_ZFS /dev/sde5 error 2, flag 3
20.08.12 09:52:01,000 kernel: zfsx_vdm_open: 'Toshiba_ZFS' disk3s1
20.08.12 09:52:01,000 kernel: zfsx_vdm_open: 'Toshiba_ZFS' disk5s1
20.08.12 09:52:02,000 kernel: zfsx_vdm_open: couldn't find vdevMedia for 'sde5'
20.08.12 09:52:02,000 kernel: ldi_open_by_name: Toshiba_ZFS /dev/sde5 error 2, flag 3
20.08.12 09:52:02,000 kernel: zfsx_mount: '/Volumes/Toshiba_ZFS'
20.08.12 09:52:07,235 com.tenscomplement.zfs.delegate: taking GPTE_11059782-DA42-654B-    8577-431C1B80814C online in pool 'Toshiba_ZFS'
20.08.12 09:52:17,239 com.tenscomplement.zfs.delegate: post mount fsgetpath: err 2, using "/.vol/234881038/2" instead
20.08.12 09:52:17,239 com.tenscomplement.zfs.delegate: post mount processing "/.vol/234881038/2"

与分区表分开:

$ sudo parted /dev/sdb
GNU Parted 2.3
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p                                                                
Model: External RAID (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name                  Flags
 1      20.5kB  210MB   210MB   fat32        EFI System Partition  boot
 2      210MB   58.6GB  58.3GB               Macintosh HD
 3      58.7GB  59.3GB  650MB   hfs+         Recovery HD
 4      59.3GB  248GB   189GB   hfs+         Backups
 5      248GB   1000GB  752GB   zfs          Apple_HFS_Untitled_4

尽管被GreenBytes收购,Zevo仍正式支持产品zevo.zendesk.com/home。我会去那里寻求帮助,因为它是封闭的产品。
亚历克斯(Alex)

或者,您可以等待GreenBytes社区版,或切换到MacZFS(maczfs.org)
Alex

已经给支持小组写了一封电子邮件。
2012年

Answers:


0

找到了解决方法。您将必须将当前zpool设备的分区表复制到要附加的设备,然后随机化分区的唯一GUID(应为两个)。然后,将设备添加到zpool镜像,并将未分配的磁盘空间格式化为HFS +或任何您喜欢的格式。这一切都发生在带有gdisk的 Linux中,并且分开了,但是Mac OS X Zevos ZFS端口可以正确识别。

$ zpool status Toshiba_ZFS
NAME                                           STATE     READ WRITE CKSUM
Toshiba_ZFS                                    ONLINE      0     0     0
  mirror-0                                     ONLINE      0     0     0
    GPTE_1C3475D8-AB6F-3547-AE5D-571C2389DCC7  ONLINE      0     0     0  at disk4s1
    GPTE_11059782-DA42-654B-8577-431C1B80814C  ONLINE      0     0     0  at disk3s1
    GPTE_79E12ED8-31EE-384C-B115-2759039256C0  ONLINE      0     0     0  at disk2s1

$ diskutil list 
/dev/disk2
#:                       TYPE NAME                    SIZE       IDENTIFIER
0:      GUID_partition_scheme                        *1.0 TB     disk2
1:                        ZFS                         750.1 GB   disk2s1
2: 6A945A3B-1DD2-11B2-99A6-080020736631               8.4 MB     disk2s2
3:          Apple_CoreStorage                         60.5 GB    disk2s3
4:                 Apple_Boot Recovery HD             650.0 MB   disk2s4
5:                        EFI                         209.7 MB   disk2s5
6:                  Apple_HFS Backups                 188.4 GB   disk2s6

$ gdisk /dev/disk2
GPT fdisk (gdisk) version 0.8.2

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/disk2: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): B51307F7-D090-E64A-ADDF-800BFE2EA9AB
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 32-sector boundaries
Total free space is 526309 sectors (257.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
1            2048      1465131007   698.6 GiB   BF01  zfs
2      1465131008      1465147391   8.0 MiB     BF07  
3      1465147392      1583354079   56.4 GiB    AF05  Macintosh_HD
4      1583616224      1584885759   619.9 MiB   AB00  Recovery HD
5      1584885760      1585295359   200.0 MiB   EF00  EFI System Partition
6      1585295360      1953262983   175.5 GiB   AF00  

0

…由于某些原因,zevo将池存储在/ dev / dsk /中

在新的ZEVO知识库(2012-09-14)中,磁盘设备名称提供了说明。

当Ten's Complement出售ZEVO时,发表了类似的解释。

如何使用Zevo将磁盘连接到现有的zfs zpool镜像?

…Ubuntu…当我连接第三个硬盘时,它可以正常工作,但是当我将池导入Lion时…

在知识库中,创建ZFS池提供了三个与镜像有关的示例。

从ZEVO和OS X的角度来看,从ZEVO 开始与ZFS相关的例程要比从Ubuntu 开始更好。引用 ZEVO Community Edition 1.1快速入门指南:

…ZEVO使用标准的ZFS磁盘格式(v28),因此与其他平台上的ZFS二进制兼容。但是,此版本不支持与其他平台的直接互换。...。

当Ten's Complement出售ZEVO时,发表了类似的注释。

起点

http://zevo.getgreenbytes.com链接到知识库,支持论坛等。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.