Recent Changes - Search:

PoolTransfer

Random notes

 * Use 'screen'
 * Use 'usbconfig' to determine disk speeds
 * Use 'diskinfo -t' to determine sector size
 * Do some quick timing tests on the new pool

Create USB pool

zpool create -o ashift=12 -f usb ada? ada? ada? ada? ada? ada?

Remove existing snapshots:

zfs destroy [email protected]_19.48.04--1m
zfs destroy [email protected]_08.40.47--1m
zfs destroy [email protected]_06.00.00--1m
zfs destroy storage/[email protected]_08.40.47--1m
zfs destroy storage/[email protected]_06.00.00--1m
zfs destroy storage/tbla/[email protected]_19.48.04--1m
zfs destroy storage/tbla/[email protected]_08.40.47--1m
zfs destroy storage/tbla/[email protected]_06.00.00--1m
zfs destroy storage/tbla/[email protected]_19.48.04--1m
zfs destroy storage/tbla/[email protected]_08.40.47--1m
zfs destroy storage/tbla/[email protected]_06.00.00--1m
zfs destroy storage/tbla/[email protected]_19.48.04--1m
zfs destroy storage/tbla/[email protected]_08.40.47--1m
zfs destroy storage/tbla/[email protected]_06.00.00--1m
zfs destroy storage/tbla/[email protected]_08.40.47--1m
zfs destroy storage/tbla/[email protected]_06.00.00--1m
zfs destroy storage/tbla/[email protected]_19.48.04--1m
zfs destroy storage/tbla/[email protected]_08.40.47--1m
zfs destroy storage/tbla/[email protected]_06.00.00--1m

Create new snapshots

zfs snapshot storage/[email protected]
zfs snapshot storage/tbla/[email protected]
zfs snapshot storage/tbla/[email protected]
zfs snapshot storage/tbla/[email protected]
zfs snapshot storage/tbla/[email protected]
zfs snapshot storage/tbla/[email protected]

Copy snapshots to new pool

zfs send -R storage/[email protected] | pv | zfs receive usb/tbla
zfs send -R storage/tbla/[email protected] | pv | zfs receive usb/tbla/backup
zfs send -R storage/tbla/[email protected] | pv | zfs receive usb/tbla/camera
zfs send -R storage/tbla/[email protected] | pv | zfs receive usb/tbla/documents
zfs send -R storage/tbla/[email protected] | pv | zfs receive usb/tbla/music
zfs send -R storage/tbla/[email protected] | pv | zfs receive usb/tbla/video

Unmount old filesystems

zfs unmount -a
/usr/local/etc/rc.d/sickbeard stop
/usr/local/etc/rc.d/sabnzbd stop

Create new snapshots

zfs snapshot storage/[email protected]
zfs snapshot storage/tbla/[email protected]
zfs snapshot storage/tbla/[email protected]
zfs snapshot storage/tbla/[email protected]
zfs snapshot storage/tbla/[email protected]
zfs snapshot storage/tbla/[email protected]

Copy incremental snapshots to new pool

zfs send -i -R storage/[email protected] storage/[email protected] | pv | zfs receive usb/tbla
zfs send -i -R storage/tbla/[email protected] storage/tbla/[email protected] | pv | zfs receive usb/tbla/backup
zfs send -i -R storage/tbla/[email protected] storage/tbla/[email protected] | pv | zfs receive usb/tbla/camera
zfs send -i -R storage/tbla/[email protected] storage/tbla/[email protected] | pv | zfs receive usb/tbla/documents
zfs send -i -R storage/tbla/[email protected] storage/tbla/[email protected] | pv | zfs receive usb/tbla/music
zfs send -i -R storage/tbla/[email protected] storage/tbla/[email protected] | pv | zfs receive usb/tbla/video

Ensure data is present and safe

Store old history

zpool history > /root/zfs_history3

Destroy old filesystems

zfs destroy storage
zfs destroy storage/tbla
zfs destroy storage/tbla/backup
zfs destroy storage/tbla/camera
zfs destroy storage/tbla/documents
zfs destroy storage/tbla/music
zfs destroy storage/tbla/video

Destroy old pool

zpool destroy storage

Create new pool

zpool create -o ashift=12 -f storage raidz ada5 ada6 ada7 raidz ada8 ada0 ada1 raidz ada9 ada10 ada2

Create new snapshots

zfs snapshot usb/[email protected]
zfs snapshot usb/tbla/[email protected]
zfs snapshot usb/tbla/[email protected]
zfs snapshot usb/tbla/[email protected]
zfs snapshot usb/tbla/[email protected]
zfs snapshot usb/tbla/[email protected]

Copy back filesystems

zfs send -R usb/[email protected] | pv | zfs receive storage/tbla
zfs send -R usb/tbla/[email protected] | pv | zfs receive storage/tbla/backup
zfs send -R usb/tbla/[email protected] | pv | zfs receive storage/tbla/camera
zfs send -R usb/tbla/[email protected] | pv | zfs receive storage/tbla/documents
zfs send -R usb/tbla/[email protected] | pv | zfs receive storage/tbla/music
zfs send -R usb/tbla/[email protected] | pv | zfs receive storage/tbla/video
Page last modified by brett on January 22, 2014, at 05:55 AM