Re: [zfs-discuss] Advice for migrating ZFS configuration

2012-03-08 Thread Paul Kraus
Lots of suggestions (not included here), but ... With the exception of Cindy's suggestion of using 4 disks and mirroring (zpool attach two new disks to existing vdevs), I would absolutely NOT do anything unless I had a known good backup of the data! I have seen too many cases described here

Re: [zfs-discuss] Advice for migrating ZFS configuration

2012-03-08 Thread Hung-Sheng Tsao (Lao Tsao 老曹) Ph.D.
just note that you can has different zpool name but with the same old mount point for export purpose -LT On 3/8/2012 8:40 AM, Paul Kraus wrote: Lots of suggestions (not included here), but ... With the exception of Cindy's suggestion of using 4 disks and mirroring (zpool attach two new

Re: [zfs-discuss] Advice for migrating ZFS configuration

2012-03-07 Thread Hung-Sheng Tsao (Lao Tsao 老曹) Ph.D.
IMHO, there is no easy way out for you 1)tape backup and restore 2)find a larger USB SATA disk, copy the data over then restore later after raidz1 setup -LT On 3/7/2012 4:38 PM, Bob Doolittle wrote: Hi, I had a single-disk zpool (export) and was given two new disks for expanded storage.

Re: [zfs-discuss] Advice for migrating ZFS configuration

2012-03-07 Thread Fajar A. Nugraha
On Thu, Mar 8, 2012 at 4:38 AM, Bob Doolittle bob.doolit...@oracle.com wrote: Hi, I had a single-disk zpool (export) and was given two new disks for expanded storage. All three disks are identically sized, no slices/partitions. My goal is to create a raidz1 configuration of the three disks,

Re: [zfs-discuss] Advice for migrating ZFS configuration

2012-03-07 Thread Cindy Swearingen
Hi Bob, Not many options because you can't attach disks to convert a non-redundant pool to a RAIDZ pool. To me, the best solution is to get one more disk (for a total of 4 disks) to create a mirrored pool. Mirrored pools provide more flexibility. See 1 below. See the options below. Thanks,

Re: [zfs-discuss] Advice for migrating ZFS configuration

2012-03-07 Thread Tomas Forsman
On 08 March, 2012 - Fajar A. Nugraha sent me these 1,9K bytes: Can somebody guide me? What's the easiest way out of this mess, so that I can move from what is now a simple two-disk zpool (less than 50% full) to a three-disk raidz configuration, starting with one unused disk? - use the

Re: [zfs-discuss] Advice for migrating ZFS configuration

2012-03-07 Thread Bob Doolittle
Perfect, thanks. Just what I was looking for. How do I know how large to make the fakedisk file? Any old enormous size will do, since mkfile -n doesn't actually allocate the blocks until needed? To be sure I understand correctly: In theory, instead of this missing disk approach I could create

Re: [zfs-discuss] Advice for migrating ZFS configuration

2012-03-07 Thread Bob Doolittle
Wait, I'm not following the last few steps you suggest. Comments inline: On 03/07/12 17:03, Fajar A. Nugraha wrote: - use the one new disk to create a temporary pool - copy the data (zfs snapshot -r + zfs send -R | zfs receive) - destroy old pool - create a three-disk raidz pool using two disks

Re: [zfs-discuss] Advice for migrating ZFS configuration

2012-03-07 Thread Cindy Swearingen
In theory, instead of this missing disk approach I could create a two-disk raidz pool and later add the third disk to it, right? No, you can't add a 3rd disk to an existing RAIDZ vdev of two disks. You would want to add another 2 disk RAIDZ vdev. See Example 4-2 in this section:

Re: [zfs-discuss] Advice for migrating ZFS configuration

2012-03-07 Thread Hung-Sheng Tsao (LaoTsao) Ph.D
read the link please it seems that afmter you create the radiz1 zpool you need to destroy the fakedisk so it will have contains data when you to the copy copy the data by following the steps in the link replace the fakedisk withnthe real disk this is a good approach that i did not know before

Re: [zfs-discuss] Advice for migrating ZFS configuration

2012-03-07 Thread Fajar A. Nugraha
On Thu, Mar 8, 2012 at 5:48 AM, Bob Doolittle bob.doolit...@oracle.com wrote: Wait, I'm not following the last few steps you suggest. Comments inline: On 03/07/12 17:03, Fajar A. Nugraha wrote: - use the one new disk to create a temporary pool - copy the data (zfs snapshot -r + zfs send -R

Re: [zfs-discuss] Advice for migrating ZFS configuration

2012-03-07 Thread Bob Doolittle
On 3/7/2012 9:04 PM, Fajar A. Nugraha wrote: Why can't I just give the old pool name to the raidz pool when I create it? Cause you can't have two pools with the same name. You either need to rename the old pool first, or rename the new pool afterwards. But in your instructions you have me

Re: [zfs-discuss] Advice for migrating ZFS configuration

2012-03-07 Thread Fajar A. Nugraha
On Thu, Mar 8, 2012 at 10:28 AM, Bob Doolittle bob.doolit...@oracle.com wrote: On 3/7/2012 9:04 PM, Fajar A. Nugraha wrote: Why can't I just give the old pool name to the raidz pool when I create it? Cause you can't have two pools with the same name. You either need to rename the old pool