Before we start, let's define some acronyms. FreeBSD: Free B erkeley S oftware D istribution ZFS: Z ettabyte F ile S ystem ZPOOL: Z FS POOL DEV: DEV ice VDEV: V irtual DEV ice GEOM: disk GEOM etry BHYVE: B SD HY per V isor ZVOL: Z FS VOL ume *** I have been tinkering with FreeBSD, ZFS, GEOM, BHYVE, and other interesting technologies. *** Let's experiment on how to change the capacity of each VDEV of a ZPOOL without losing data and no downtime with ZFS. To do so, you need a set of disks that are bigger. Example, if the ZPOOL has 2 mirror VDEVs with 2 10GB disks each (total: 4 10GB disks), and you want to upgrade to 20 GB disks, than you need 4 20GB disks for the upgrade. Figure 1: Live upgrade of disks in a ZPOOL ZPOOL tank ZPOOL tank VDEV mirror-0 VDEV mirror-0 DEV /dev/vtbd1 DEV /dev/vtbd9 DEV /dev/vtbd2 ---> DEV /dev/vtbd10 VDEV mirror-1
Comments
Professional trading signals delivered to your mobile phone daily.
Follow our trades NOW & earn up to 270% a day.