Re: [zfs-discuss] ZFS Mirror cloning

2009-07-25 Thread Andrew Gabriel
Richard Elling wrote: That is because you had only one other choice: filesystem level copy. With ZFS I believe you will find that snapshots will allow you to have better control over this. The send/receive process is very, very similar to a mirror resilver, so you are only carrying your previous

Re: [zfs-discuss] ZFS Mirror cloning

2009-07-24 Thread Jorgen Lundman
That is because you had only one other choice: filesystem level copy. With ZFS I believe you will find that snapshots will allow you to have better control over this. The send/receive process is very, very similar to a mirror resilver, so you are only carrying your previous process forward into

Re: [zfs-discuss] ZFS Mirror cloning

2009-07-24 Thread Richard Elling
On Jul 14, 2009, at 10:45 PM, Jorgen Lundman wrote: 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

Re: [zfs-discuss] ZFS Mirror cloning

2009-07-24 Thread Andrew Gabriel
Darren J Moffat wrote: Jorgen Lundman wrote: Jorgen Lundman wrote: However, "zpool detach" appears to mark the disk as blank, so nothing will find any pools (import, import -D etc). zdb -l will show labels, For kicks, I tried to demonstrate this does indeed happen, so I dd'ed the first 1

Re: [zfs-discuss] ZFS Mirror cloning

2009-07-24 Thread Jorgen Lundman
Darren J Moffat wrote: Maybe the 2 disk mirror is a special enough case that this could be worth allowing without having to deal with all the other cases as well. The only reason I think it is a special enough cases is because it is the config we use for the root/boot pool. See 6849185 an

Re: [zfs-discuss] ZFS Mirror cloning

2009-07-24 Thread Darren J Moffat
Jorgen Lundman wrote: Jorgen Lundman wrote: However, "zpool detach" appears to mark the disk as blank, so nothing will find any pools (import, import -D etc). zdb -l will show labels, For kicks, I tried to demonstrate this does indeed happen, so I dd'ed the first 1024 1k blocks from the di

Re: [zfs-discuss] ZFS Mirror cloning

2009-07-23 Thread Fajar A. Nugraha
On Fri, Jul 24, 2009 at 9:24 AM, Jorgen Lundman wrote: >> However, "zpool detach" appears to mark the disk as blank, so nothing will >> find any pools (import, import -D etc). zdb -l will show labels, If both disks are bootable (with installboot or installgrub), removing the mirror and put in in t

Re: [zfs-discuss] ZFS Mirror cloning

2009-07-23 Thread Jorgen Lundman
Jorgen Lundman wrote: However, "zpool detach" appears to mark the disk as blank, so nothing will find any pools (import, import -D etc). zdb -l will show labels, For kicks, I tried to demonstrate this does indeed happen, so I dd'ed the first 1024 1k blocks from the disk, zpool detach it, th

Re: [zfs-discuss] ZFS Mirror cloning

2009-07-23 Thread Jorgen Lundman
Ok, so it seems that with DiskSuite, detaching a mirror does nothing to the disk you detached. However, "zpool detach" appears to mark the disk as blank, so nothing will find any pools (import, import -D etc). zdb -l will show labels, but no amount of work that we have found will bring the H

[zfs-discuss] ZFS Mirror cloning

2009-07-14 Thread Jorgen Lundman
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 d