Hello list,

Before we started changing to ZFS bootfs, we used DiskSuite mirrored ufs boot.

Very often, if we needed to grow a cluster by another machine or two, we would simply clone a running live server. Generally the procedure for this would be;

1 detach the "2nd" HDD, metaclear, and delete metadb on 2nd disk.
2 mount the 2nd HDD under /mnt, and change system/vfstab to be a single boot HDD, and no longer "mirrored", as well as host name, and IP addresses.
3 bootadm update-archive -R /mnt
4 unmount, cfgadm unconfigure, and pull out the HDD.

and generally, in about ~4 minutes, we have a new live server in the cluster.


We tried to do the same thing to day, but with a ZFS bootfs. We did:

1 zpool detach on the "2nd HDD".
2 cfgadm unconfigure the HDD, and pull out the disk.

The source server was fine, could insert new disk, attach it, and it resilvered.

However, the new destination server had lots of issues. At first, grub would give no menu at all, just the grub? command prompt.

The command: findroot(pool_zboot,0,a) would return "Error 15: No such file".

After booting a Solaris Live CD, I could "zpool import" the pool, but of course it was in Degraded mode etc.

Now it would show menu, but if you boot it, it would flash the message that the pool was last accessed by Solaris $sysid, and "panic".

After a lot of reboots, and fiddling, I managed to get miniroot to at least boot, then, only after inserting a new HDD and letting the pool become completely "good" would it let me boot into multi-user.

Is there something we should do perhaps, that will let the cloning procedure go smoothly? Should I "export" the 'now separated disk' somehow? In fact, can I mount that disk to make changes to it before pulling out the disk?

Most documentation on cloning uses "zfs send", which would be possible, but 4 minutes is hard to beat when your cluster is under heavy load.

Lund

--
Jorgen Lundman       | <lund...@lundman.net>
Unix Administrator   | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo    | +81 (0)90-5578-8500          (cell)
Japan                | +81 (0)3 -3375-1767          (home)
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to