[zfs-discuss] changing vdev types

2011-06-01 Thread Matt Harrison
Hi list, I've got a pool thats got a single raidz1 vdev. I've just some more disks in and I want to replace that raidz1 with a three-way mirror. I was thinking I'd just make a new pool and copy everything across, but then of course I've got to deal with the name change. Basically, what is

Re: [zfs-discuss] changing vdev types

2011-06-01 Thread Eric Sproul
On Wed, Jun 1, 2011 at 2:54 PM, Matt Harrison iwasinnamuk...@genestate.com wrote: Hi list, I've got a pool thats got a single raidz1 vdev. I've just some more disks in and I want to replace that raidz1 with a three-way mirror. I was thinking I'd just make a new pool and copy everything

Re: [zfs-discuss] changing vdev types

2011-06-01 Thread Matt Harrison
On 01/06/2011 20:45, Eric Sproul wrote: On Wed, Jun 1, 2011 at 2:54 PM, Matt Harrison iwasinnamuk...@genestate.com wrote: Hi list, I've got a pool thats got a single raidz1 vdev. I've just some more disks in and I want to replace that raidz1 with a three-way mirror. I was thinking I'd just

Re: [zfs-discuss] changing vdev types

2011-06-01 Thread Eric Sproul
On Wed, Jun 1, 2011 at 3:47 PM, Matt Harrison iwasinnamuk...@genestate.com wrote: Thanks Eric, however seeing as I can't have two pools named 'tank', I'll have to name the new one something else. I believe I will be able to rename it afterwards, but I just wanted to check first. I'd have to

Re: [zfs-discuss] changing vdev types

2011-06-01 Thread Cindy Swearingen
Hi Matt, You have several options in terms of migrating the data but I think the best approach is to do something like I have described below. Thanks, Cindy 1. Create snapshots of the file systems to be migrated. If you want to capture the file system properties, then see the zfs.1m man page

Re: [zfs-discuss] changing vdev types

2011-06-01 Thread Matt Harrison
On 01/06/2011 20:52, Eric Sproul wrote: On Wed, Jun 1, 2011 at 3:47 PM, Matt Harrison iwasinnamuk...@genestate.com wrote: Thanks Eric, however seeing as I can't have two pools named 'tank', I'll have to name the new one something else. I believe I will be able to rename it afterwards, but I

Re: [zfs-discuss] changing vdev types

2011-06-01 Thread Matt Harrison
On 01/06/2011 20:53, Cindy Swearingen wrote: Hi Matt, You have several options in terms of migrating the data but I think the best approach is to do something like I have described below. Thanks, Cindy 1. Create snapshots of the file systems to be migrated. If you want to capture the file

Re: [zfs-discuss] changing vdev types

2011-06-01 Thread Tomas Ögren
On 01 June, 2011 - Eric Sproul sent me these 0,8K bytes: On Wed, Jun 1, 2011 at 2:54 PM, Matt Harrison iwasinnamuk...@genestate.com wrote: Hi list, I've got a pool thats got a single raidz1 vdev. I've just some more disks in and I want to replace that raidz1 with a three-way mirror. I

Re: [zfs-discuss] changing vdev types

2011-06-01 Thread Paul Kraus
On Wed, Jun 1, 2011 at 3:57 PM, Matt Harrison iwasinnamuk...@genestate.com wrote: On 01/06/2011 20:52, Eric Sproul wrote: What files would those be?  Usually the pool name (and therefore the dataset names) doesn't matter-- only mountpoints matter to most things on the system, but maybe you

Re: [zfs-discuss] changing vdev types

2011-06-01 Thread Freddie Cash
On Wed, Jun 1, 2011 at 12:45 PM, Eric Sproul espr...@omniti.com wrote: On Wed, Jun 1, 2011 at 2:54 PM, Matt Harrison iwasinnamuk...@genestate.com wrote: Hi list, I've got a pool thats got a single raidz1 vdev. I've just some more disks in and I want to replace that raidz1 with a

Re: [zfs-discuss] changing vdev types

2011-06-01 Thread Roy Sigurd Karlsbakk
Since you can't mix vdev types in a single pool, you'll have to create a new pool. But you can use zfs send/recv to move the datasets, so your mountpoints and other properties will be preserved. Last I checked, mixing different VDEV types in a pool was possible, but not really recommended.

Re: [zfs-discuss] changing vdev types

2011-06-01 Thread Freddie Cash
On Wed, Jun 1, 2011 at 2:34 PM, Freddie Cash fjwc...@gmail.com wrote: On Wed, Jun 1, 2011 at 12:45 PM, Eric Sproul espr...@omniti.com wrote: On Wed, Jun 1, 2011 at 2:54 PM, Matt Harrison iwasinnamuk...@genestate.com wrote: Hi list, I've got a pool thats got a single raidz1 vdev. I've