Skip to content

Instantly share code, notes, and snippets.

@nevion
Created March 3, 2015 03:05
Show Gist options
  • Save nevion/179eade4f8b42773126f to your computer and use it in GitHub Desktop.
Save nevion/179eade4f8b42773126f to your computer and use it in GitHub Desktop.
(parted) print all
Model: ATA WDC WD6401AALS-0 (scsi)
Disk /dev/sda: 1250263728s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 2048s 209713151s 209711104s primary ext4 boot, type=83
Model: ATA TOSHIBA DT01ACA3 (scsi)
Disk /dev/sdb: 5860533168s
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: pmbr_boot
Number Start End Size File system Name Flags
1 2048s 5860532223s 5860530176s TOSH_Z2T5W48AS
Model: ATA TOSHIBA DT01ACA3 (scsi)
Disk /dev/sdc: 5860533168s
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: pmbr_boot
Number Start End Size File system Name Flags
1 2048s 5860532223s 5860530176s TOSH_Z2T4D24AS
Model: ATA Hitachi HDS72303 (scsi)
Disk /dev/sdd: 5860533168s
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 2048s 5860515839s 5860513792s zfs
9 5860515840s 5860532223s 16384s
Model: ATA TOSHIBA DT01ACA3 (scsi)
Disk /dev/sde: 5860533168s
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 2048s 5860515839s 5860513792s zfs
9 5860515840s 5860532223s 16384s
Model: ATA WDC WD40EFRX-68W (scsi) #don't mind this guy, he's temporary
Disk /dev/sdf: 7814037168s
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 2048s 7814037134s 7814035087s xfs WD40EFRX-68WT0N0
Model: ATA Hitachi HDS72303 (scsi)
Disk /dev/sdg: 5860533168s
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 2048s 5860533134s 5860531087s TOSHITA_5X0AE63A
Model: ATA TOSHIBA DT01ACA3 (scsi)
Disk /dev/sdh: 5860533168s
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 2048s 5860533134s 5860531087s tosh_Z2T5X8AAS
Model: ATA TOSHIBA DT01ACA3 (scsi)
Disk /dev/sdi: 5860533168s
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 2048s 5860533134s 5860531087s TOSH_Z2T25ZYAS
Model: ATA TOSHIBA DT01ACA3 (scsi)
Disk /dev/sdj: 5860533168s
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 2048s 5860515839s 5860513792s zfs
9 5860515840s 5860532223s 16384s
Model: ATA TOSHIBA DT01ACA3 (scsi)
Disk /dev/sdk: 5860533168s
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: pmbr_boot
Number Start End Size File system Name Flags
1 2048s 5860532223s 5860530176s TOSH_Z2T44J4AS
Model: ATA WDC WD30EFRX-68A (scsi)
Disk /dev/sdl: 5860533168s
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 2048s 5860533134s 5860531087s WCC1T0804382
Model: ATA TOSHIBA DT01ACA3 (scsi)
Disk /dev/sdm: 5860533168s
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: pmbr_boot
Number Start End Size File system Name Flags
1 2048s 5860532223s 5860530176s TOSH_Z2T5P7MAS
Model: ATA ST3000DM001-9YN1 (scsi)
Disk /dev/sdn: 5860533168s
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 2048s 5860533134s 5860531087s
Model: ATA WDC WD30EFRX-68A (scsi)
Disk /dev/sdo: 5860533168s
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 2048s 5860533134s 5860531087s WD-WCC1T0781750
@nevion
Copy link
Author

nevion commented Mar 4, 2015

sgdisk -b /root/scsi-0ATA_TOSHIBA_DT01ACA3_Z2T5W48AS.gpt.backup /dev/disk/by-id/scsi-0ATA_TOSHIBA_DT01ACA3_Z2T5W48AS
sgdisk -R /dev/disk/by-id/scsi-0ATA_TOSHIBA_DT01ACA3_Z2T5W48AS /dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T4D24AS
sgdisk -G /dev/disk/by-id/scsi-0ATA_TOSHIBA_DT01ACA3_Z2T5W48AS
partprobe
zdb -l /dev/disk/by-id/scsi-0ATA_TOSHIBA_DT01ACA3_Z2T5W48AS
--------------------------------------------
LABEL 0
--------------------------------------------
failed to unpack label 0
--------------------------------------------
LABEL 1
--------------------------------------------
failed to unpack label 1
--------------------------------------------
LABEL 2
--------------------------------------------
    version: 5000
    name: 'storage'
    state: 1
    txg: 12051787
    pool_guid: 18405946887743981906
    errata: 0
    hostid: 2831216751
    hostname: 'globalhawk'
    top_guid: 98709332956160999
    guid: 14419488228501462420
    vdev_children: 2
    vdev_tree:
        type: 'raidz'
        id: 0
        guid: 98709332956160999
        nparity: 2
        metaslab_array: 30
        metaslab_shift: 37
        ashift: 12
        asize: 21004107120640
        is_log: 0
        create_txg: 4
        children[0]:
            type: 'disk'
            id: 0
            guid: 6339672892164796
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T3B8LAS-part1'
            whole_disk: 1
            DTL: 34
            create_txg: 4
        children[1]:
            type: 'disk'
            id: 1
            guid: 14549786761647193227
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T44J4AS-part1'
            whole_disk: 0
            DTL: 4269
            create_txg: 4
        children[2]:
            type: 'disk'
            id: 2
            guid: 7272105023046033440
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T4615AS-part1'
            whole_disk: 0
            DTL: 8195
            create_txg: 4
        children[3]:
            type: 'disk'
            id: 3
            guid: 12001441393190676952
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T4D24AS-part1'
            whole_disk: 0
            DTL: 8201
            create_txg: 4
        children[4]:
            type: 'disk'
            id: 4
            guid: 10976772185152087831
            path: '/dev/disk/by-id/scsi-35000039ff4c2959c'
            phys_path: '/dev/gpt/TOSH_Z2T5P7MAS'
            whole_disk: 1
            not_present: 1
            DTL: 73
            create_txg: 4
        children[5]:
            type: 'disk'
            id: 5
            guid: 14419488228501462420
            path: '/dev/disk/by-id/ata-TOSHIBA_DT01ACA300_Z2T5W48AS-part1'
            phys_path: '/dev/gpt/TOSH_Z2T5W48AS'
            whole_disk: 1
            DTL: 70
            create_txg: 4
        children[6]:
            type: 'disk'
            id: 6
            guid: 13636846573961515177
            path: '/dev/disk/by-id/scsi-35000039ff4c2aff9'
            phys_path: '/dev/gpt/TOSH_Z2T5X8AAS'
            whole_disk: 1
            not_present: 1
            DTL: 61
            create_txg: 4
    features_for_read:
        com.delphix:hole_birth
        com.delphix:embedded_data
--------------------------------------------
LABEL 3
--------------------------------------------
failed to unpack label 3

@nevion
Copy link
Author

nevion commented Mar 4, 2015

Also from a healthy drive in the pool:

zdb -l scsi-SATA_TOSHIBA_DT01ACA3_Z2T4D24AS-part1
--------------------------------------------
LABEL 0
--------------------------------------------
    version: 5000
    name: 'storage'
    state: 0
    txg: 12052298
    pool_guid: 18405946887743981906
    errata: 0
    hostname: 'globalhawk'
    top_guid: 98709332956160999
    guid: 12001441393190676952
    vdev_children: 2
    vdev_tree:
        type: 'raidz'
        id: 0
        guid: 98709332956160999
        nparity: 2
        metaslab_array: 30
        metaslab_shift: 37
        ashift: 12
        asize: 21004107120640
        is_log: 0
        create_txg: 4
        children[0]:
            type: 'disk'
            id: 0
            guid: 6339672892164796
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T3B8LAS-part1'
            whole_disk: 1
            DTL: 34
            create_txg: 4
        children[1]:
            type: 'disk'
            id: 1
            guid: 14549786761647193227
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T44J4AS-part1'
            whole_disk: 0
            DTL: 4269
            create_txg: 4
        children[2]:
            type: 'disk'
            id: 2
            guid: 7272105023046033440
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T4615AS-part1'
            whole_disk: 0
            DTL: 8195
            create_txg: 4
        children[3]:
            type: 'disk'
            id: 3
            guid: 12001441393190676952
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T4D24AS-part1'
            whole_disk: 0
            DTL: 8201
            create_txg: 4
        children[4]:
            type: 'disk'
            id: 4
            guid: 10976772185152087831
            path: '/dev/disk/by-id/scsi-35000039ff4c2959c'
            phys_path: '/dev/gpt/TOSH_Z2T5P7MAS'
            whole_disk: 1
            not_present: 1
            DTL: 73
            create_txg: 4
        children[5]:
            type: 'disk'
            id: 5
            guid: 14419488228501462420
            path: '/dev/disk/by-id/scsi-0ATA_TOSHIBA_DT01ACA3_Z2T5W48AS'
            phys_path: '/dev/gpt/TOSH_Z2T5W48AS'
            whole_disk: 1
            not_present: 1
            DTL: 70
            create_txg: 4
        children[6]:
            type: 'disk'
            id: 6
            guid: 13636846573961515177
            path: '/dev/disk/by-id/scsi-35000039ff4c2aff9'
            phys_path: '/dev/gpt/TOSH_Z2T5X8AAS'
            whole_disk: 1
            not_present: 1
            DTL: 61
            create_txg: 4
    features_for_read:
        com.delphix:hole_birth
        com.delphix:embedded_data
--------------------------------------------
LABEL 1
--------------------------------------------
    version: 5000
    name: 'storage'
    state: 0
    txg: 12052298
    pool_guid: 18405946887743981906
    errata: 0
    hostname: 'globalhawk'
    top_guid: 98709332956160999
    guid: 12001441393190676952
    vdev_children: 2
    vdev_tree:
        type: 'raidz'
        id: 0
        guid: 98709332956160999
        nparity: 2
        metaslab_array: 30
        metaslab_shift: 37
        ashift: 12
        asize: 21004107120640
        is_log: 0
        create_txg: 4
        children[0]:
            type: 'disk'
            id: 0
            guid: 6339672892164796
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T3B8LAS-part1'
            whole_disk: 1
            DTL: 34
            create_txg: 4
        children[1]:
            type: 'disk'
            id: 1
            guid: 14549786761647193227
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T44J4AS-part1'
            whole_disk: 0
            DTL: 4269
            create_txg: 4
        children[2]:
            type: 'disk'
            id: 2
            guid: 7272105023046033440
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T4615AS-part1'
            whole_disk: 0
            DTL: 8195
            create_txg: 4
        children[3]:
            type: 'disk'
            id: 3
            guid: 12001441393190676952
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T4D24AS-part1'
            whole_disk: 0
            DTL: 8201
            create_txg: 4
        children[4]:
            type: 'disk'
            id: 4
            guid: 10976772185152087831
            path: '/dev/disk/by-id/scsi-35000039ff4c2959c'
            phys_path: '/dev/gpt/TOSH_Z2T5P7MAS'
            whole_disk: 1
            not_present: 1
            DTL: 73
            create_txg: 4
        children[5]:
            type: 'disk'
            id: 5
            guid: 14419488228501462420
            path: '/dev/disk/by-id/scsi-0ATA_TOSHIBA_DT01ACA3_Z2T5W48AS'
            phys_path: '/dev/gpt/TOSH_Z2T5W48AS'
            whole_disk: 1
            not_present: 1
            DTL: 70
            create_txg: 4
        children[6]:
            type: 'disk'
            id: 6
            guid: 13636846573961515177
            path: '/dev/disk/by-id/scsi-35000039ff4c2aff9'
            phys_path: '/dev/gpt/TOSH_Z2T5X8AAS'
            whole_disk: 1
            not_present: 1
            DTL: 61
            create_txg: 4
    features_for_read:
        com.delphix:hole_birth
        com.delphix:embedded_data
--------------------------------------------
LABEL 2
--------------------------------------------
    version: 5000
    name: 'storage'
    state: 0
    txg: 12052298
    pool_guid: 18405946887743981906
    errata: 0
    hostname: 'globalhawk'
    top_guid: 98709332956160999
    guid: 12001441393190676952
    vdev_children: 2
    vdev_tree:
        type: 'raidz'
        id: 0
        guid: 98709332956160999
        nparity: 2
        metaslab_array: 30
        metaslab_shift: 37
        ashift: 12
        asize: 21004107120640
        is_log: 0
        create_txg: 4
        children[0]:
            type: 'disk'
            id: 0
            guid: 6339672892164796
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T3B8LAS-part1'
            whole_disk: 1
            DTL: 34
            create_txg: 4
        children[1]:
            type: 'disk'
            id: 1
            guid: 14549786761647193227
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T44J4AS-part1'
            whole_disk: 0
            DTL: 4269
            create_txg: 4
        children[2]:
            type: 'disk'
            id: 2
            guid: 7272105023046033440
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T4615AS-part1'
            whole_disk: 0
            DTL: 8195
            create_txg: 4
        children[3]:
            type: 'disk'
            id: 3
            guid: 12001441393190676952
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T4D24AS-part1'
            whole_disk: 0
            DTL: 8201
            create_txg: 4
        children[4]:
            type: 'disk'
            id: 4
            guid: 10976772185152087831
            path: '/dev/disk/by-id/scsi-35000039ff4c2959c'
            phys_path: '/dev/gpt/TOSH_Z2T5P7MAS'
            whole_disk: 1
            not_present: 1
            DTL: 73
            create_txg: 4
        children[5]:
            type: 'disk'
            id: 5
            guid: 14419488228501462420
            path: '/dev/disk/by-id/scsi-0ATA_TOSHIBA_DT01ACA3_Z2T5W48AS'
            phys_path: '/dev/gpt/TOSH_Z2T5W48AS'
            whole_disk: 1
            not_present: 1
            DTL: 70
            create_txg: 4
        children[6]:
            type: 'disk'
            id: 6
            guid: 13636846573961515177
            path: '/dev/disk/by-id/scsi-35000039ff4c2aff9'
            phys_path: '/dev/gpt/TOSH_Z2T5X8AAS'
            whole_disk: 1
            not_present: 1
            DTL: 61
            create_txg: 4
    features_for_read:
        com.delphix:hole_birth
        com.delphix:embedded_data
--------------------------------------------
LABEL 3
--------------------------------------------
    version: 5000
    name: 'storage'
    state: 0
    txg: 12052298
    pool_guid: 18405946887743981906
    errata: 0
    hostname: 'globalhawk'
    top_guid: 98709332956160999
    guid: 12001441393190676952
    vdev_children: 2
    vdev_tree:
        type: 'raidz'
        id: 0
        guid: 98709332956160999
        nparity: 2
        metaslab_array: 30
        metaslab_shift: 37
        ashift: 12
        asize: 21004107120640
        is_log: 0
        create_txg: 4
        children[0]:
            type: 'disk'
            id: 0
            guid: 6339672892164796
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T3B8LAS-part1'
            whole_disk: 1
            DTL: 34
            create_txg: 4
        children[1]:
            type: 'disk'
            id: 1
            guid: 14549786761647193227
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T44J4AS-part1'
            whole_disk: 0
            DTL: 4269
            create_txg: 4
        children[2]:
            type: 'disk'
            id: 2
            guid: 7272105023046033440
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T4615AS-part1'
            whole_disk: 0
            DTL: 8195
            create_txg: 4
        children[3]:
            type: 'disk'
            id: 3
            guid: 12001441393190676952
            path: '/dev/disk/by-id/scsi-SATA_TOSHIBA_DT01ACA3_Z2T4D24AS-part1'
            whole_disk: 0
            DTL: 8201
            create_txg: 4
        children[4]:
            type: 'disk'
            id: 4
            guid: 10976772185152087831
            path: '/dev/disk/by-id/scsi-35000039ff4c2959c'
            phys_path: '/dev/gpt/TOSH_Z2T5P7MAS'
            whole_disk: 1
            not_present: 1
            DTL: 73
            create_txg: 4
        children[5]:
            type: 'disk'
            id: 5
            guid: 14419488228501462420
            path: '/dev/disk/by-id/scsi-0ATA_TOSHIBA_DT01ACA3_Z2T5W48AS'
            phys_path: '/dev/gpt/TOSH_Z2T5W48AS'
            whole_disk: 1
            not_present: 1
            DTL: 70
            create_txg: 4
        children[6]:
            type: 'disk'
            id: 6
            guid: 13636846573961515177
            path: '/dev/disk/by-id/scsi-35000039ff4c2aff9'
            phys_path: '/dev/gpt/TOSH_Z2T5X8AAS'
            whole_disk: 1
            not_present: 1
            DTL: 61
            create_txg: 4
    features_for_read:
        com.delphix:hole_birth
        com.delphix:embedded_data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment