wildness

To content | To menu | To search

Sunday, May 2 2010

Solaris SUN Cluster: Live update

As I've recently tried the patching of a sun cluster with Zones/ZFS/global filesystem and everything running, I've noticed that not so much people have tried this, so I might share the experience here ;)

So read the complete article to see how it behaves ;)

Continue reading...

Friday, March 6 2009

ZFS: Howto dump & restore filesystem in the incremental way

As I have done in the past with UFS, and as already explained here in the "Migrate partition with minimal downtime..." article, I'll explain how to migrate a ZFS volume with minimum downtime.

What could be done during working hours without impact on the mounted filesystem:

  • Take a snapshot of the volume to copy:

zfs snapshot vs4f8-pool/test@v1

  • Send this snapshot accross the new ZFS volume:

zfs send vs4f8-pool/test@v1 | zfs receive vs4f8-pool/newtest

When the outage time has come, just issue following commands:

zfs snapshot vs4f8-pool/test@v2
zfs send -I vs4f8-pool/test@v1 vs4f8-pool/test@v2 | zfs receive vs4f8-pool/newtest

The last command should be as quick as hell... As your downtime. You could now restore the option on the "newtest" volume and start ot use it.

This same procedure could also be used to migrate volume across network, as the zfs send and receive commands could be piped with ssh.