dvl@
Developer
About 9 months ago, I posted about going from gmirror to zfsroot. Ultimately, I did a fresh install. But this time, I do not have that choice. I'm converting an existing remote server, running FreeBSD 9.2-RELEASE, from its existing gmirror setup to zfsroot.
The idea for this came from Allan Jude during a talk we had at vBSDCon.
Given that this *is* a remote server and I have no chance of getting to the console, I want to plan this out for review.
Here is the existing setup:
There is about 50G of data on the system, on two 300GB HDD:
My plan:
Items I'm concerned about:
I will post more detailed steps as they develop.
The idea for this came from Allan Jude during a talk we had at vBSDCon.
Given that this *is* a remote server and I have no chance of getting to the console, I want to plan this out for review.
Here is the existing setup:
Code:
$ cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/mirror/gm0s1b none swap sw 0 0
/dev/mirror/gm0s1a / ufs rw 1 1
/dev/mirror/gm0s1d /tmp ufs rw 2 2
/dev/mirror/gm0s1f /usr ufs rw 2 2
/dev/mirror/gm0s1e /var ufs rw 2 2
/dev/acd0 /cdrom cd9660 ro,noauto 0 0
$ gmirror status
Name Status Components
mirror/gm0 COMPLETE ada0 (ACTIVE)
ada1 (ACTIVE)
$ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/mirror/gm0s1a 2G 296M 1.5G 16% /
devfs 1.0k 1.0k 0B 100% /dev
/dev/mirror/gm0s1d 2G 528k 1.8G 0% /tmp
/dev/mirror/gm0s1f 273G 44G 207G 17% /usr
/dev/mirror/gm0s1e 9.7G 1.8G 7.1G 20% /var
/usr/jails/basejail 273G 44G 207G 17% /usr/jails/mailjail/basejail
devfs 1.0k 1.0k 0B 100% /usr/jails/mailjail/dev
fdescfs 1.0k 1.0k 0B 100% /usr/jails/mailjail/dev/fd
procfs 4.0k 4.0k 0B 100% /usr/jails/mailjail/proc
There is about 50G of data on the system, on two 300GB HDD:
Code:
ada0 at ata2 bus 0 scbus2 target 0 lun 0
ada0: <ST3320620AS 3.AAK> ATA-7 SATA 1.x device
ada0: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes)
ada0: 305245MB (625142448 512 byte sectors: 16H 63S/T 16383C)
ada0: Previously was known as ad4
ada1 at ata3 bus 0 scbus3 target 0 lun 0
ada1: <ST3320613AS CC2F> ATA-8 SATA 1.x device
ada1: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes)
ada1: 305245MB (625142448 512 byte sectors: 16H 63S/T 16383C)
ada1: Previously was known as ad6
My plan:
- remove ada1 from the gmirror
- install ZFS on ada1
- create various filesystems on ada1
- shutdown most public facing services
- copy the existing system from the gmirror to ada1 via tar | tar
Items I'm concerned about:
- getting the new fstab right to ensure the reboot happens
- getting the system to boot from ada1 next time (using nextboot(8)())
I will post more detailed steps as they develop.