Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@mowa219-gjp4-8570p-freebsd:~ # gdisk /dev/da1
- GPT fdisk (gdisk) version 1.0.9
- Partition table scan:
- MBR: not present
- BSD: not present
- APM: not present
- GPT: not present
- Creating new GPT entries in memory.
- Command (? for help): n
- Partition number (1-128, default 1):
- First sector (34-30277598, default = 2048) or {+-}size{KMGTP}:
- Last sector (2048-30277598, default = 30275583) or {+-}size{KMGTP}:
- Current type is A503 (FreeBSD UFS)
- Hex code or GUID (L to show codes, Enter = A503): a504
- Changed type of partition to 'FreeBSD ZFS'
- Command (? for help): w
- Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
- PARTITIONS!!
- Do you want to proceed? (Y/N): y
- OK; writing new GUID partition table (GPT) to /dev/da1.
- Warning: The kernel may continue to use old or deleted partitions.
- You should reboot or remove the drive.
- The operation has completed successfully.
- root@mowa219-gjp4-8570p-freebsd:~ # gpart show -l da1
- => 34 30277565 da1 GPT (14G)
- 34 2014 - free - (1.0M)
- 2048 30273536 1 FreeBSD ZFS (14G)
- 30275584 2015 - free - (1.0M)
- root@mowa219-gjp4-8570p-freebsd:~ # lsblk da1
- DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
- da1 0:190 14G GPT - -
- <FREE> -:- 1.0M - - -
- da1p1 0:191 14G freebsd-zfs gpt/FreeBSD%20ZFS <ZFS>
- <FREE> -:- 1.0M - - -
- root@mowa219-gjp4-8570p-freebsd:~ # glabel stop "FreeBSD ZFS"
- glabel: Label FreeBSD ZFS is invalid.
- root@mowa219-gjp4-8570p-freebsd:~ # glabel stop FreeBSD\ ZFS
- glabel: Label FreeBSD ZFS is invalid.
- root@mowa219-gjp4-8570p-freebsd:~ # glabel stop FreeBSD%20ZFS
- root@mowa219-gjp4-8570p-freebsd:~ # gpart show -l da1
- => 34 30277565 da1 GPT (14G)
- 34 2014 - free - (1.0M)
- 2048 30273536 1 FreeBSD ZFS (14G)
- 30275584 2015 - free - (1.0M)
- root@mowa219-gjp4-8570p-freebsd:~ # lsblk da1
- DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
- da1 0:190 14G GPT - -
- <FREE> -:- 1.0M - - -
- da1p1 0:191 14G freebsd-zfs gpt/FreeBSD <ZFS>
- <FREE> -:- 1.0M - - -
- root@mowa219-gjp4-8570p-freebsd:~ # lsblk
- DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
- ada0 0:119 932G GPT - -
- ada0p1 0:121 260M efi gpt/efiboot0 -
- <FREE> -:- 1.0M - - -
- ada0p2 0:123 16G freebsd-swap gpt/swap0 SWAP
- ada0p2.eli 1:48 16G freebsd-swap - SWAP
- ada0p3 0:125 915G freebsd-zfs gpt/zfs0 <ZFS>
- ada0p3.eli 0:131 915G zfs - -
- <FREE> -:- 708K - - -
- da0 0:160 29G GPT - -
- <FREE> -:- 1.0M - - -
- da0p1 0:164 29G freebsd-zfs gpt/cache-august <ZFS>
- da1 0:190 14G GPT - -
- <FREE> -:- 1.0M - - -
- da1p1 0:191 14G freebsd-zfs gpt/FreeBSD <ZFS>
- <FREE> -:- 1.0M - - -
- root@mowa219-gjp4-8570p-freebsd:~ # glabel stop FreeBSD
- glabel: Label FreeBSD is invalid.
- root@mowa219-gjp4-8570p-freebsd:~ # glabel clear /dev/da1p1
- Can't clear metadata on /dev/da1p1: Invalid argument.
- glabel: Not fully done.
- root@mowa219-gjp4-8570p-freebsd:~ # tail -f -n 0 /var/log/messages
- Jun 14 02:33:04 mowa219-gjp4-8570p-freebsd kernel: ugen0.5: <Kingston DataTraveler 3.0> at usbus0 (disconnected)
- Jun 14 02:33:04 mowa219-gjp4-8570p-freebsd kernel: umass1: at uhub0, port 8, addr 12 (disconnected)
- Jun 14 02:33:04 mowa219-gjp4-8570p-freebsd kernel: da1 at umass-sim1 bus 1 scbus4 target 0 lun 0
- Jun 14 02:33:04 mowa219-gjp4-8570p-freebsd kernel: da1: <Kingston DataTraveler 3.0 PMAP> s/n 08606E6B6446BFB138159554 detached
- Jun 14 02:33:04 mowa219-gjp4-8570p-freebsd kernel: (da1:umass-sim1:1:0:0): Periph destroyed
- Jun 14 02:33:04 mowa219-gjp4-8570p-freebsd kernel: umass1: detached
- Jun 14 02:33:07 mowa219-gjp4-8570p-freebsd kernel: ugen0.5: <Kingston DataTraveler 3.0> at usbus0
- Jun 14 02:33:07 mowa219-gjp4-8570p-freebsd kernel: umass1 on uhub0
- Jun 14 02:33:07 mowa219-gjp4-8570p-freebsd kernel: umass1: <Kingston DataTraveler 3.0, class 0/0, rev 3.00/1.10, addr 14> on usbus0
- Jun 14 02:33:07 mowa219-gjp4-8570p-freebsd kernel: da1 at umass-sim1 bus 1 scbus4 target 0 lun 0
- Jun 14 02:33:07 mowa219-gjp4-8570p-freebsd kernel: da1: <Kingston DataTraveler 3.0 PMAP> Removable Direct Access SPC-4 SCSI device
- Jun 14 02:33:07 mowa219-gjp4-8570p-freebsd kernel: da1: Serial Number 08606E6B6446BFB138159554
- Jun 14 02:33:07 mowa219-gjp4-8570p-freebsd kernel: da1: 400.000MB/s transfers
- Jun 14 02:33:07 mowa219-gjp4-8570p-freebsd kernel: da1: 14784MB (30277632 512 byte sectors)
- Jun 14 02:33:07 mowa219-gjp4-8570p-freebsd kernel: da1: quirks=0x2<NO_6_BYTE>
- ^C
- root@mowa219-gjp4-8570p-freebsd:~ # glabel clear /dev/da1p1
- Can't clear metadata on /dev/da1p1: Invalid argument.
- glabel: Not fully done.
- root@mowa219-gjp4-8570p-freebsd:~ # glabel clear -v /dev/da1p1
- Can't clear metadata on /dev/da1p1: Invalid argument.
- glabel: Not fully done.
- root@mowa219-gjp4-8570p-freebsd:~ # glabel clear -v /dev/da1
- Can't clear metadata on /dev/da1: Invalid argument.
- glabel: Not fully done.
- root@mowa219-gjp4-8570p-freebsd:~ # lsblk
- DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
- ada0 0:119 932G GPT - -
- ada0p1 0:121 260M efi gpt/efiboot0 -
- <FREE> -:- 1.0M - - -
- ada0p2 0:123 16G freebsd-swap gpt/swap0 SWAP
- ada0p2.eli 1:48 16G freebsd-swap - SWAP
- ada0p3 0:125 915G freebsd-zfs gpt/zfs0 <ZFS>
- ada0p3.eli 0:131 915G zfs - -
- <FREE> -:- 708K - - -
- da0 0:160 29G GPT - -
- <FREE> -:- 1.0M - - -
- da0p1 0:164 29G freebsd-zfs gpt/cache-august <ZFS>
- da1 0:190 14G GPT - -
- <FREE> -:- 1.0M - - -
- da1p1 0:193 14G freebsd-zfs gpt/FreeBSD%20ZFS <ZFS>
- <FREE> -:- 1.0M - - -
- root@mowa219-gjp4-8570p-freebsd:~ # gpart modify -i 1 -l cache2-august da1
- da1p1 modified
- root@mowa219-gjp4-8570p-freebsd:~ # lsblk da1
- DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
- da1 0:190 14G GPT - -
- <FREE> -:- 1.0M - - -
- da1p1 0:193 14G freebsd-zfs gpt/cache2-august <ZFS>
- <FREE> -:- 1.0M - - -
- root@mowa219-gjp4-8570p-freebsd:~ # zpool add august cache gpt/cache2-august
- root@mowa219-gjp4-8570p-freebsd:~ # zpool status -v
- pool: august
- state: ONLINE
- status: One or more devices has been taken offline by the administrator.
- Sufficient replicas exist for the pool to continue functioning in a
- degraded state.
- action: Online the device using 'zpool online' or replace the device with
- 'zpool replace'.
- scan: scrub repaired 0B in 02:44:47 with 0 errors on Sun Dec 12 06:14:24 2021
- config:
- NAME STATE READ WRITE CKSUM
- august ONLINE 0 0 0
- ada0p3.eli ONLINE 0 0 0
- cache
- gpt/cache-august ONLINE 0 0 0
- gpt/duracell OFFLINE 0 0 0
- gpt/cache2-august ONLINE 0 0 0
- errors: No known data errors
- root@mowa219-gjp4-8570p-freebsd:~ # zpool iostat -v
- capacity operations bandwidth
- pool alloc free read write read write
- ------------------- ----- ----- ----- ----- ----- -----
- august 752G 160G 15 33 837K 850K
- ada0p3.eli 752G 160G 15 33 837K 850K
- cache - - - - - -
- gpt/cache-august 28.7G 96.4M 17 0 811K 34.9K
- gpt/duracell 12.8G 2.57G 14 0 691K 23.8K
- gpt/cache2-august 36K 14.4G 0 0 23.8K 3.43K
- ------------------- ----- ----- ----- ----- ----- -----
- root@mowa219-gjp4-8570p-freebsd:~ #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement