Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-11-12 Thread Trond Michelsen
On Sat, Nov 10, 2012 at 5:00 PM, Tim Cook t...@cook.ms wrote:
 On Sat, Nov 10, 2012 at 9:48 AM, Jan Owoc jso...@gmail.com wrote:
 On Sat, Nov 10, 2012 at 8:14 AM, Trond Michelsen tron...@gmail.com
 wrote:
 How can I replace the drive without migrating all the data to a
 different pool? It is possible, I hope?
 I had the same problem. I tried copying the partition layout and some
 other stuff but without success. I ended up having to recreate the
 pool and now have a non-mirrored root fs.
 If anyone has figured out how to mirror drives after getting the
 message about sector alignment, please let the list know :-).
 Not happening with anything that exists today.  The only way this would be
 possible is with bp_rewrite which would allow you to evacuate a vdev
 (whether it be for a situation like this, or just to shrink a pool).  What
 you're trying to do is write a block for block copy to a disk that's made up
 of a different block structure.  Not happening.

That is disappointing. I'll probably manage to find a used 2TB drive
with 512b blocksize, so I'm sure I'll be able to keep the pool alive,
but I had planned to swap all 2TB drives for 4TB drives within a year
or so. This is apparently not an option anymore. I'm also a bit
annoyed, because I cannot remember seeing any warnings (other than
performance wise) about mixing 512b and 4kB blocksize discs in a pool,
or any warnings that you'll be severely restricted if you use 512b
blocksize discs at all.

 *insert everyone saying they want bp_rewrite and the guys who have the
 skills to do so saying their enterprise customers have other needs*

bp_rewrite is what's needed to remove vdevs, right? If so, yes, being
able to remove (or replace) a vdev, would've solved my problem.
However, I don't see how this could not be desirable for enterprise
customers. 512b blocksize discs are rapidly disappearing from the
market. Enterprise discs fail ocasionally too, and if 512b blocksize
discs can't be replaced by 4kB blocksize discs, then that effectively
means that you can't replace failed drives on ZFS. I would think that
this is a desirable feature of an enterprise storage solution.

-- 
Trond Michelsen
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-11-12 Thread Trond Michelsen
On Sat, Nov 10, 2012 at 5:04 PM, Tim Cook t...@cook.ms wrote:
 On Sat, Nov 10, 2012 at 9:59 AM, Jan Owoc jso...@gmail.com wrote:
 Apparently the currently-suggested way (at least in OpenIndiana) is to:
 1) create a zpool on the 4k-native drive
 2) zfs send | zfs receive the data
 3) mirror back onto the non-4k drive

 I can't test it at the moment on my setup - has anyone tested this to
 work?
 That would absolutely work, but it's not really a fix for this situation.
 For OP to do this he'd need 42 new drives (or at least enough drives to
 provide the same capacity as what he's using) to mirror to and then mirror
 back.  The only way this is happening for most people is if they only have a
 very small pool, and have the ability to add an equal amount of storage to
 dump to.  Probably not a big deal if you've only got a handful of drives, or
 if the drives you have are small and you can take downtime.  Likely
 impossible for OP with 42 large drives.

Well, if I have to migrate, I basically have three alternatives:

1. safe way:
  a) buy 24 4TB drives,
  b) migrate everything

2. scary way
  a) buy 6 4TB drives,
  b) migrate about 12TB data to new pool
  c) split all mirror vdevs on old pool, add 4k discs to new pool
  d) migrate remaining data to new pool while holding my breath
  e) destroy old pool and reattach discs to vdevs in new pool

3. slightly less scary way
  a) buy 23 3TB drives
  b) set up new pool with 4x mirrored vdevs and 15x non-redundant vdevs
  c) migrate everything from old pool
  d) detatch 3TB discs from mirrors in old pool and attach to vdevs in new pool

I've got room for the first method, but it'll be prohibitively
expensive, even if I sell the old drives. Until 4TB drives drop below
$100 this won't be a realistic option. I don't think I've got the
nerves to do it the scary way :) The third option is a lot cheaper
than the first, but it'll still be a solid chunk of money, so I'll
probably have to think about that for a bit.


That said, I've already migrated far too many times already. I really,
really don't want to migrate the pool again, if it can be avoided.
I've already migrated from raidz1 to raidz2 and then from raidz2 to
mirror vdevs. Then, even though I already had a mix of 512b and 4k
discs in the pool, when I bought new 3TBĀ discs, I couldn't add them to
the pool, and I had to set up a new pool with ashift=12. In
retrospect, I should have built the new pool without the 2TB drives,
and had I known what I do now, I would definately have done that.

-- 
Trond Michelsen
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-11-12 Thread Marion Hakanson
tron...@gmail.com said:
 That said, I've already migrated far too many times already. I really, really
 don't want to migrate the pool again, if it can be avoided. I've already
 migrated from raidz1 to raidz2 and then from raidz2 to mirror vdevs. Then,
 even though I already had a mix of 512b and 4k discs in the pool, when I
 bought new 3TBĀ discs, I couldn't add them to the pool, and I had to set up a
 new pool with ashift=12. In retrospect, I should have built the new pool
 without the 2TB drives, and had I known what I do now, I would definately
 have done that. 

Are you sure you can't find 3TB/4TB drives with 512b sectors?  If you can
believe the User Sectors Per Drive specifications, these WD disks do:
WD4000FYYZ, WD3000FYYZ
Those are the SATA part-numbers;  There are SAS equivalents.

I also found the Hitachi UltraStar 7K3000 and 7K4000 drives claim to
support 512-byte sector sizes.

Sure, they're expensive, but what enterprise-grade drives aren't?  And,
they might solve your problem.

Regards,

Marion


___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-11-12 Thread Trond Michelsen
On Sat, Nov 10, 2012 at 6:19 PM, Jim Klimov jimkli...@cos.ru wrote:
 On 2012-11-10 17:16, Jan Owoc wrote:
 Any other ideas short of block pointer rewrite?
 A few... one is an idea of what could be the cause: AFAIK the
 ashift value is not so much per-pool as per-toplevel-vdev.
 If the pool started as a set of the 512b drives and was then
 expanded to include sets of 4K drives, this mixed ashift could
 happen...

Now I'm really confused. Turns out, my system is the opposite:

# zdb -C tank | grep ashift
ashift: 12
ashift: 12
ashift: 12
ashift: 12
ashift: 12
ashift: 12
ashift: 9
ashift: 9
ashift: 9
ashift: 9
ashift: 9
ashift: 9
ashift: 9
ashift: 9
ashift: 9
ashift: 12
ashift: 12
ashift: 12
ashift: 12
ashift: 12
ashift: 12

I had an old pool with ashift=9, and when I tried to add new disks,
zpool wouldn't let me add the new drives. So, I ended up creating a
new pool with ashift=12, and after migrating, destroyed the old pool,
and added the drives to the new. I was told at the time that as long
as the pool is created with ashift=12, new vdevs would have ashift=12
as well. Obviously, that's not the case. I did verify that ashift was
12 after creating the pool, but I apparently did not check after
adding the old drives, because this is the first time I've noticed
that there's any ashift=9 in the pool.

-- 
Trond Michelsen
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-11-12 Thread Tim Cook
On Mon, Nov 12, 2012 at 10:39 AM, Trond Michelsen tron...@gmail.com wrote:

 On Sat, Nov 10, 2012 at 5:00 PM, Tim Cook t...@cook.ms wrote:
  On Sat, Nov 10, 2012 at 9:48 AM, Jan Owoc jso...@gmail.com wrote:
  On Sat, Nov 10, 2012 at 8:14 AM, Trond Michelsen tron...@gmail.com
  wrote:
  How can I replace the drive without migrating all the data to a
  different pool? It is possible, I hope?
  I had the same problem. I tried copying the partition layout and some
  other stuff but without success. I ended up having to recreate the
  pool and now have a non-mirrored root fs.
  If anyone has figured out how to mirror drives after getting the
  message about sector alignment, please let the list know :-).
  Not happening with anything that exists today.  The only way this would
 be
  possible is with bp_rewrite which would allow you to evacuate a vdev
  (whether it be for a situation like this, or just to shrink a pool).
  What
  you're trying to do is write a block for block copy to a disk that's
 made up
  of a different block structure.  Not happening.

 That is disappointing. I'll probably manage to find a used 2TB drive
 with 512b blocksize, so I'm sure I'll be able to keep the pool alive,
 but I had planned to swap all 2TB drives for 4TB drives within a year
 or so. This is apparently not an option anymore. I'm also a bit
 annoyed, because I cannot remember seeing any warnings (other than
 performance wise) about mixing 512b and 4kB blocksize discs in a pool,
 or any warnings that you'll be severely restricted if you use 512b
 blocksize discs at all.

  *insert everyone saying they want bp_rewrite and the guys who have the
  skills to do so saying their enterprise customers have other needs*

 bp_rewrite is what's needed to remove vdevs, right? If so, yes, being
 able to remove (or replace) a vdev, would've solved my problem.
 However, I don't see how this could not be desirable for enterprise
 customers. 512b blocksize discs are rapidly disappearing from the
 market. Enterprise discs fail ocasionally too, and if 512b blocksize
 discs can't be replaced by 4kB blocksize discs, then that effectively
 means that you can't replace failed drives on ZFS. I would think that
 this is a desirable feature of an enterprise storage solution.




Enterprise customers are guaranteed equivalent replacement drives for the
life of the system.  Generally 3-5 years.  At the end of that cycle, they
buy all new hardware and simply migrate the data.  It's generally a
non-issue due to the way gear is written off.

--TIm
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-11-10 Thread Trond Michelsen
On Tue, Sep 25, 2012 at 6:42 PM, LIC mesh licm...@gmail.com wrote:
 The new drive I bought correctly identifies as 4096 byte blocksize!
 So...OI doesn't like it merging with the existing pool.

So... Any solution to this yet?

I've got a 42 drive zpool (21 mirror vdevs) with 12 2TB drives that
has 512byte blocksize. The remaining drives are 3TB with 4k blocksize,
and the pool uses ashift=12. Recently this happened to one of the 2TB
drives:

mirror-13DEGRADED 0 0 0
  c4t5000C5002AA2F8D6d0  UNAVAIL  0 0 0  cannot open
  c4t5000C5002AB4FF17d0  ONLINE   0 0 0

and even though it came back after a reboot, I'd like to swap it for a
new drive. Obviously, all new drives have 4k blocksize, so I decided
to replace both drives in the vdev with 3TB drives. The new drives are
Seagate ST3000DM001-1CH1, and there are already 12 of these in the
pool.

# iostat -En
...
c4t5000C5004DE1EFF2d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: ATA  Product: ST3000DM001-1CH1 Revision: CC43 Serial No: Z1F0TKXV
Size: 3000.59GB 3000592982016 bytes
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

c4t5000C5004DE863F2d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: ATA  Product: ST3000DM001-1CH1 Revision: CC43 Serial No: Z1F0VHTG
Size: 3000.59GB 3000592982016 bytes
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

c4t5000C5004DD3F76Bd0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: ATA  Product: ST3000DM001-1CH1 Revision: CC43 Serial No: Z1F0T1QX
Size: 3000.59GB 3000592982016 bytes
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0


When I try to replace the old drive, I get this error:

# zpool replace tank c4t5000C5002AA2F8D6d0 c4t5000C5004DE863F2d0
cannot replace c4t5000C5002AA2F8D6d0 with c4t5000C5004DE863F2d0:
devices have different sector alignment


How can I replace the drive without migrating all the data to a
different pool? It is possible, I hope?


-- 
Trond Michelsen
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-11-10 Thread Jan Owoc
On Sat, Nov 10, 2012 at 8:14 AM, Trond Michelsen tron...@gmail.com wrote:
 When I try to replace the old drive, I get this error:

 # zpool replace tank c4t5000C5002AA2F8D6d0 c4t5000C5004DE863F2d0
 cannot replace c4t5000C5002AA2F8D6d0 with c4t5000C5004DE863F2d0:
 devices have different sector alignment


 How can I replace the drive without migrating all the data to a
 different pool? It is possible, I hope?

I had the same problem. I tried copying the partition layout and some
other stuff but without success. I ended up having to recreate the
pool and now have a non-mirrored root fs.

If anyone has figured out how to mirror drives after getting the
message about sector alignment, please let the list know :-).

Jan
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-11-10 Thread Jan Owoc
On Sat, Nov 10, 2012 at 8:48 AM, Jan Owoc jso...@gmail.com wrote:
 On Sat, Nov 10, 2012 at 8:14 AM, Trond Michelsen tron...@gmail.com wrote:
 When I try to replace the old drive, I get this error:

 # zpool replace tank c4t5000C5002AA2F8D6d0 c4t5000C5004DE863F2d0
 cannot replace c4t5000C5002AA2F8D6d0 with c4t5000C5004DE863F2d0:
 devices have different sector alignment


 How can I replace the drive without migrating all the data to a
 different pool? It is possible, I hope?

 I had the same problem. I tried copying the partition layout and some
 other stuff but without success. I ended up having to recreate the
 pool and now have a non-mirrored root fs.

 If anyone has figured out how to mirror drives after getting the
 message about sector alignment, please let the list know :-).

Sorry... my question was partly answered by Jim Klimov on this list:
http://openindiana.org/pipermail/openindiana-discuss/2012-June/008546.html

Apparently the currently-suggested way (at least in OpenIndiana) is to:
1) create a zpool on the 4k-native drive
2) zfs send | zfs receive the data
3) mirror back onto the non-4k drive

I can't test it at the moment on my setup - has anyone tested this to work?

Jan
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-11-10 Thread Tim Cook
On Sat, Nov 10, 2012 at 9:48 AM, Jan Owoc jso...@gmail.com wrote:

 On Sat, Nov 10, 2012 at 8:14 AM, Trond Michelsen tron...@gmail.com
 wrote:
  When I try to replace the old drive, I get this error:
 
  # zpool replace tank c4t5000C5002AA2F8D6d0 c4t5000C5004DE863F2d0
  cannot replace c4t5000C5002AA2F8D6d0 with c4t5000C5004DE863F2d0:
  devices have different sector alignment
 
 
  How can I replace the drive without migrating all the data to a
  different pool? It is possible, I hope?

 I had the same problem. I tried copying the partition layout and some
 other stuff but without success. I ended up having to recreate the
 pool and now have a non-mirrored root fs.

 If anyone has figured out how to mirror drives after getting the
 message about sector alignment, please let the list know :-).

 Jan



Not happening with anything that exists today.  The only way this would be
possible is with bp_rewrite which would allow you to evacuate a vdev
(whether it be for a situation like this, or just to shrink a pool).  What
you're trying to do is write a block for block copy to a disk that's made
up of a different block structure.  Not happening.

*insert everyone saying they want bp_rewrite and the guys who have the
skills to do so saying their enterprise customers have other needs*


--Tim
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-11-10 Thread Tim Cook
On Sat, Nov 10, 2012 at 9:59 AM, Jan Owoc jso...@gmail.com wrote:

 On Sat, Nov 10, 2012 at 8:48 AM, Jan Owoc jso...@gmail.com wrote:
  On Sat, Nov 10, 2012 at 8:14 AM, Trond Michelsen tron...@gmail.com
 wrote:
  When I try to replace the old drive, I get this error:
 
  # zpool replace tank c4t5000C5002AA2F8D6d0 c4t5000C5004DE863F2d0
  cannot replace c4t5000C5002AA2F8D6d0 with c4t5000C5004DE863F2d0:
  devices have different sector alignment
 
 
  How can I replace the drive without migrating all the data to a
  different pool? It is possible, I hope?
 
  I had the same problem. I tried copying the partition layout and some
  other stuff but without success. I ended up having to recreate the
  pool and now have a non-mirrored root fs.
 
  If anyone has figured out how to mirror drives after getting the
  message about sector alignment, please let the list know :-).

 Sorry... my question was partly answered by Jim Klimov on this list:
 http://openindiana.org/pipermail/openindiana-discuss/2012-June/008546.html

 Apparently the currently-suggested way (at least in OpenIndiana) is to:
 1) create a zpool on the 4k-native drive
 2) zfs send | zfs receive the data
 3) mirror back onto the non-4k drive

 I can't test it at the moment on my setup - has anyone tested this to work?

 Jan



That would absolutely work, but it's not really a fix for this situation.
 For OP to do this he'd need 42 new drives (or at least enough drives to
provide the same capacity as what he's using) to mirror to and then mirror
back.  The only way this is happening for most people is if they only have
a very small pool, and have the ability to add an equal amount of storage
to dump to.  Probably not a big deal if you've only got a handful of
drives, or if the drives you have are small and you can take downtime.
 Likely impossible for OP with 42 large drives.

--Tim
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-11-10 Thread Jan Owoc
On Sat, Nov 10, 2012 at 9:04 AM, Tim Cook t...@cook.ms wrote:
 On Sat, Nov 10, 2012 at 9:59 AM, Jan Owoc jso...@gmail.com wrote:
 Sorry... my question was partly answered by Jim Klimov on this list:
 http://openindiana.org/pipermail/openindiana-discuss/2012-June/008546.html

 Apparently the currently-suggested way (at least in OpenIndiana) is to:
 1) create a zpool on the 4k-native drive
 2) zfs send | zfs receive the data
 3) mirror back onto the non-4k drive

 That would absolutely work, but it's not really a fix for this situation.
 For OP to do this he'd need 42 new drives (or at least enough drives to
 provide the same capacity as what he's using) to mirror to and then mirror
 back.  The only way this is happening for most people is if they only have a
 very small pool, and have the ability to add an equal amount of storage to
 dump to.  Probably not a big deal if you've only got a handful of drives, or
 if the drives you have are small and you can take downtime.  Likely
 impossible for OP with 42 large drives.

Yes, you are right. I missed the fact that this mirror is part of a
very large pool, so zfs send | zfs receive isn't exactly an option.

Any other ideas short of block pointer rewrite?

Jan
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-11-10 Thread Jim Klimov

On 2012-11-10 17:16, Jan Owoc wrote:

Any other ideas short of block pointer rewrite?


A few... one is an idea of what could be the cause: AFAIK the
ashift value is not so much per-pool as per-toplevel-vdev.
If the pool started as a set of the 512b drives and was then
expanded to include sets of 4K drives, this mixed ashift could
happen...

It might be possible to override the ashift value with sd.conf
and fool the OS into using 512b sectors over a 4KB native disk
(this is mostly used the other way around, though - to enforce
4KB sectors on 4KB native drives that emulate 512b sectors).
This might work, and earlier posters on the list saw no evidence
to say that 512b emulation is inherently evil and unreliable
(modulo firmware/hardware errors that can be anywhere anyway),
but this would likely make the disk slower on random writes.

Also, I am not sure how the 4KB-native HDD would process partial
overwrites of a 4KB sector with 512b pieces of data - would other
bytes remain intact or not?..

Before trying to fool a production system this way, if at all,
I believe some stress-tests with small blocks are due on some
other system.

My 2c,
//Jim Klimov

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-09-25 Thread LIC mesh
Thank you for the link!

Turns out that, even though I bought the WD20EARS and ST32000542AS
expecting a 4096 physical blocksize, they report 512.

The new drive I bought correctly identifies as 4096 byte blocksize!

So...OI doesn't like it merging with the existing pool.

Note: ST2000VX000-9YW1 reports physical blocksize of 4096B.  The other
drives that actually have 4096B blocks report 512B physical blocks.  This
is misleading, but they do it anyway.





On Mon, Sep 24, 2012 at 4:32 PM, Timothy Coalson tsc...@mst.edu wrote:

 I'm not sure how to definitively check physical sector size on
 solaris/illumos, but on linux, hdparm -I (capital i) or smartctl -i will do
 it.  OpenIndiana's smartctl doesn't output this information yet (and its
 smartctl doesn't work on SATA disks unless attached via a SAS chip).  The
 issue is complicated by having both a logical and a physical sector size,
 and as far as I am aware, on current disks, logical is always 512, which
 may be what is being reported in what you ran.  Some quick googling
 suggests that previously, it was not possible to use an existing utility to
 report the physical sector size on solaris, because someone wrote their own:


 http://solaris.kuehnke.de/archives/18-Checking-physical-sector-size-of-disks-on-Solaris.html

 So, if you want to make sure of the physical sector size, you could give
 that program a whirl (it compiled fine for me on oi_151a6, and runs, but it
 is not easy for me to attach a 4k sector disk to one of my OI machines, so
 I haven't confirmed its correctness), or temporarily transplant the spare
 in question to a linux machine (or live system) and use hdparm -I.

 Tim


 On Mon, Sep 24, 2012 at 2:37 PM, LIC mesh licm...@gmail.com wrote:

 Any ideas?


 On Mon, Sep 24, 2012 at 10:46 AM, LIC mesh licm...@gmail.com wrote:

 That's what I thought also, but since both prtvtoc and fdisk -G see the
 two disks as the same (and I have not overridden sector size), I am
 confused.
 *
 *
 *iostat -xnE:*
 c16t5000C5002AA08E4Dd0 Soft Errors: 0 Hard Errors: 323 Transport Errors:
 489
 Vendor: ATA  Product: ST32000542AS Revision: CC34 Serial No:
 %FAKESERIAL%
 Size: 2000.40GB 2000398934016 bytes
 Media Error: 207 Device Not Ready: 0 No Device: 116 Recoverable: 0
 Illegal Request: 0 Predictive Failure Analysis: 0
 c16t5000C5005295F727d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
 Vendor: ATA  Product: ST2000VX000-9YW1 Revision: CV13 Serial No:
 %FAKESERIAL%
 Size: 2000.40GB 2000398934016 bytes
 Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
 Illegal Request: 0 Predictive Failure Analysis: 0

 *zpool status:*
   pool: rspool
  state: ONLINE
   scan: resilvered 719G in 65h28m with 0 errors on Fri Aug 24 04:21:44
 2012
 config:

 NAMESTATE READ WRITE CKSUM
 rspool  ONLINE   0 0 0
   raidz1-0  ONLINE   0 0 0
 c16t5000C5002AA08E4Dd0  ONLINE   0 0 0
 c16t5000C5002ABE78F5d0  ONLINE   0 0 0
 c16t5000C5002AC49840d0  ONLINE   0 0 0
 c16t50014EE057B72DD3d0  ONLINE   0 0 0
 c16t50014EE057B69208d0  ONLINE   0 0 0
 cache
   c4t2d0ONLINE   0 0 0
 spares
   c16t5000C5005295F727d0AVAIL

 errors: No known data errors

 *root@nas:~# zpool replace rspool c16t5000C5002AA08E4Dd0
 c16t5000C5005295F727d0*
 cannot replace c16t5000C5002AA08E4Dd0 with c16t5000C5005295F727d0:
 devices have different sector alignment



 On Mon, Sep 24, 2012 at 9:23 AM, Gregg Wonderly gregg...@gmail.comwrote:

 What is the error message you are seeing on the replace?  This sounds
 like a slice size/placement problem, but clearly, prtvtoc seems to think
 that everything is the same.  Are you certain that you did prtvtoc on the
 correct drive, and not one of the active disks by mistake?

 Gregg Wonderly

 As does fdisk -G:
 root@nas:~# fdisk -G /dev/rdsk/c16t5000C5002AA08E4Dd0
 * Physical geometry for device /dev/rdsk/c16t5000C5002AA08E4Dd0
 * PCYL NCYL ACYL BCYL NHEAD NSECT SECSIZ
   608006080000255   252   512
 You have new mail in /var/mail/root
 root@nas:~# fdisk -G /dev/rdsk/c16t5000C5005295F727d0
 * Physical geometry for device /dev/rdsk/c16t5000C5005295F727d0
 * PCYL NCYL ACYL BCYL NHEAD NSECT SECSIZ
   608006080000255   252   512



 On Mon, Sep 24, 2012 at 9:01 AM, LIC mesh licm...@gmail.com wrote:

 Yet another weird thing - prtvtoc shows both drives as having the same
 sector size,  etc:
 root@nas:~# prtvtoc /dev/rdsk/c16t5000C5002AA08E4Dd0
 * /dev/rdsk/c16t5000C5002AA08E4Dd0 partition map
 *
 * Dimensions:
 * 512 bytes/sector
 * 3907029168 sectors
 * 3907029101 accessible sectors
 *
 * Flags:
 *   1: unmountable
 *  10: read-only
 *
 * Unallocated space:
 *   First 

Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-09-24 Thread LIC mesh
Yet another weird thing - prtvtoc shows both drives as having the same
sector size,  etc:
root@nas:~# prtvtoc /dev/rdsk/c16t5000C5002AA08E4Dd0
* /dev/rdsk/c16t5000C5002AA08E4Dd0 partition map
*
* Dimensions:
* 512 bytes/sector
* 3907029168 sectors
* 3907029101 accessible sectors
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*   First SectorLast
*   Sector CountSector
*  34   222   255
*
*  First SectorLast
* Partition  Tag  FlagsSector CountSector  Mount Directory
   0  400256 3907012495 3907012750
   8 1100  3907012751 16384 3907029134
root@nas:~# prtvtoc /dev/rdsk/c16t5000C5005295F727d0
* /dev/rdsk/c16t5000C5005295F727d0 partition map
*
* Dimensions:
* 512 bytes/sector
* 3907029168 sectors
* 3907029101 accessible sectors
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*   First SectorLast
*   Sector CountSector
*  34   222   255
*
*  First SectorLast
* Partition  Tag  FlagsSector CountSector  Mount Directory
   0  400256 3907012495 3907012750
   8 1100  3907012751 16384 3907029134





On Mon, Sep 24, 2012 at 12:20 AM, Timothy Coalson tsc...@mst.edu wrote:

 I think you can fool a recent Illumos kernel into thinking a 4k disk is
 512 (incurring a performance hit for that disk, and therefore the vdev and
 pool, but to save a raidz1, it might be worth it):

 http://wiki.illumos.org/display/illumos/ZFS+and+Advanced+Format+disks ,
 see Overriding the Physical Sector Size

 I don't know what you might have to do to coax it to do the replace with a
 hot spare (zpool replace? export/import?).  Perhaps there should be a
 feature in ZFS that notifies when a pool is created or imported with a hot
 spare that can't be automatically used in one or more vdevs?  The whole
 point of hot spares is to have them automatically swap in when you aren't
 there to fiddle with things, which is a bad time to find out it won't work.

 Tim

 On Sun, Sep 23, 2012 at 10:52 PM, LIC mesh licm...@gmail.com wrote:

 Well this is a new one

 Illumos/Openindiana let me add a device as a hot spare that evidently has
 a different sector alignment than all of the other drives in the array.

 So now I'm at the point that I /need/ a hot spare and it doesn't look
 like I have it.

 And, worse, the other spares I have are all the same model as said hot
 spare.

 Is there anything I can do with this or am I just going to be up the
 creek when any one of the other drives in the raidz1 fails?


 ___
 zfs-discuss mailing list
 zfs-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss



___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-09-24 Thread LIC mesh
As does fdisk -G:
root@nas:~# fdisk -G /dev/rdsk/c16t5000C5002AA08E4Dd0
* Physical geometry for device /dev/rdsk/c16t5000C5002AA08E4Dd0
* PCYL NCYL ACYL BCYL NHEAD NSECT SECSIZ
  608006080000255   252   512
You have new mail in /var/mail/root
root@nas:~# fdisk -G /dev/rdsk/c16t5000C5005295F727d0
* Physical geometry for device /dev/rdsk/c16t5000C5005295F727d0
* PCYL NCYL ACYL BCYL NHEAD NSECT SECSIZ
  608006080000255   252   512



On Mon, Sep 24, 2012 at 9:01 AM, LIC mesh licm...@gmail.com wrote:

 Yet another weird thing - prtvtoc shows both drives as having the same
 sector size,  etc:
 root@nas:~# prtvtoc /dev/rdsk/c16t5000C5002AA08E4Dd0
 * /dev/rdsk/c16t5000C5002AA08E4Dd0 partition map
 *
 * Dimensions:
 * 512 bytes/sector
 * 3907029168 sectors
 * 3907029101 accessible sectors
 *
 * Flags:
 *   1: unmountable
 *  10: read-only
 *
 * Unallocated space:
 *   First SectorLast
 *   Sector CountSector
 *  34   222   255
 *
 *  First SectorLast
 * Partition  Tag  FlagsSector CountSector  Mount Directory
0  400256 3907012495 3907012750
8 1100  3907012751 16384 3907029134
 root@nas:~# prtvtoc /dev/rdsk/c16t5000C5005295F727d0
 * /dev/rdsk/c16t5000C5005295F727d0 partition map
 *
 * Dimensions:
 * 512 bytes/sector
 * 3907029168 sectors
 * 3907029101 accessible sectors
 *
 * Flags:
 *   1: unmountable
 *  10: read-only
 *
 * Unallocated space:
 *   First SectorLast
 *   Sector CountSector
 *  34   222   255
 *
 *  First SectorLast
 * Partition  Tag  FlagsSector CountSector  Mount Directory
0  400256 3907012495 3907012750
8 1100  3907012751 16384 3907029134





 On Mon, Sep 24, 2012 at 12:20 AM, Timothy Coalson tsc...@mst.edu wrote:

 I think you can fool a recent Illumos kernel into thinking a 4k disk is
 512 (incurring a performance hit for that disk, and therefore the vdev and
 pool, but to save a raidz1, it might be worth it):

 http://wiki.illumos.org/display/illumos/ZFS+and+Advanced+Format+disks ,
 see Overriding the Physical Sector Size

 I don't know what you might have to do to coax it to do the replace with
 a hot spare (zpool replace? export/import?).  Perhaps there should be a
 feature in ZFS that notifies when a pool is created or imported with a hot
 spare that can't be automatically used in one or more vdevs?  The whole
 point of hot spares is to have them automatically swap in when you aren't
 there to fiddle with things, which is a bad time to find out it won't work.

 Tim

 On Sun, Sep 23, 2012 at 10:52 PM, LIC mesh licm...@gmail.com wrote:

 Well this is a new one

 Illumos/Openindiana let me add a device as a hot spare that evidently
 has a different sector alignment than all of the other drives in the array.

 So now I'm at the point that I /need/ a hot spare and it doesn't look
 like I have it.

 And, worse, the other spares I have are all the same model as said hot
 spare.

 Is there anything I can do with this or am I just going to be up the
 creek when any one of the other drives in the raidz1 fails?


 ___
 zfs-discuss mailing list
 zfs-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss




___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-09-24 Thread Gregg Wonderly
What is the error message you are seeing on the replace?  This sounds like a 
slice size/placement problem, but clearly, prtvtoc seems to think that 
everything is the same.  Are you certain that you did prtvtoc on the correct 
drive, and not one of the active disks by mistake?

Gregg Wonderly

 As does fdisk -G:
 root@nas:~# fdisk -G /dev/rdsk/c16t5000C5002AA08E4Dd0
 * Physical geometry for device /dev/rdsk/c16t5000C5002AA08E4Dd0
 * PCYL NCYL ACYL BCYL NHEAD NSECT SECSIZ
   608006080000255   252   512   
 You have new mail in /var/mail/root
 root@nas:~# fdisk -G /dev/rdsk/c16t5000C5005295F727d0
 * Physical geometry for device /dev/rdsk/c16t5000C5005295F727d0
 * PCYL NCYL ACYL BCYL NHEAD NSECT SECSIZ
   608006080000255   252   512   
 
 
 
 On Mon, Sep 24, 2012 at 9:01 AM, LIC mesh licm...@gmail.com wrote:
 Yet another weird thing - prtvtoc shows both drives as having the same sector 
 size,  etc:
 root@nas:~# prtvtoc /dev/rdsk/c16t5000C5002AA08E4Dd0
 * /dev/rdsk/c16t5000C5002AA08E4Dd0 partition map
 *
 * Dimensions:
 * 512 bytes/sector
 * 3907029168 sectors
 * 3907029101 accessible sectors
 *
 * Flags:
 *   1: unmountable
 *  10: read-only
 *
 * Unallocated space:
 *   First SectorLast
 *   Sector CountSector 
 *  34   222   255
 *
 *  First SectorLast
 * Partition  Tag  FlagsSector CountSector  Mount Directory
0  400256 3907012495 3907012750
8 1100  3907012751 16384 3907029134
 root@nas:~# prtvtoc /dev/rdsk/c16t5000C5005295F727d0
 * /dev/rdsk/c16t5000C5005295F727d0 partition map
 *
 * Dimensions:
 * 512 bytes/sector
 * 3907029168 sectors
 * 3907029101 accessible sectors
 *
 * Flags:
 *   1: unmountable
 *  10: read-only
 *
 * Unallocated space:
 *   First SectorLast
 *   Sector CountSector 
 *  34   222   255
 *
 *  First SectorLast
 * Partition  Tag  FlagsSector CountSector  Mount Directory
0  400256 3907012495 3907012750
8 1100  3907012751 16384 3907029134
 
 
 
 
 
 On Mon, Sep 24, 2012 at 12:20 AM, Timothy Coalson tsc...@mst.edu wrote:
 I think you can fool a recent Illumos kernel into thinking a 4k disk is 512 
 (incurring a performance hit for that disk, and therefore the vdev and pool, 
 but to save a raidz1, it might be worth it):
 
 http://wiki.illumos.org/display/illumos/ZFS+and+Advanced+Format+disks , see 
 Overriding the Physical Sector Size
 
 I don't know what you might have to do to coax it to do the replace with a 
 hot spare (zpool replace? export/import?).  Perhaps there should be a feature 
 in ZFS that notifies when a pool is created or imported with a hot spare that 
 can't be automatically used in one or more vdevs?  The whole point of hot 
 spares is to have them automatically swap in when you aren't there to fiddle 
 with things, which is a bad time to find out it won't work.
 
 Tim
 
 On Sun, Sep 23, 2012 at 10:52 PM, LIC mesh licm...@gmail.com wrote:
 Well this is a new one
 
 Illumos/Openindiana let me add a device as a hot spare that evidently has a 
 different sector alignment than all of the other drives in the array.
 
 So now I'm at the point that I /need/ a hot spare and it doesn't look like I 
 have it.
 
 And, worse, the other spares I have are all the same model as said hot spare.
 
 Is there anything I can do with this or am I just going to be up the creek 
 when any one of the other drives in the raidz1 fails?
 
 
 ___
 zfs-discuss mailing list
 zfs-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
 
 
 
 
 ___
 zfs-discuss mailing list
 zfs-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-09-24 Thread LIC mesh
That's what I thought also, but since both prtvtoc and fdisk -G see the two
disks as the same (and I have not overridden sector size), I am confused.
*
*
*iostat -xnE:*
c16t5000C5002AA08E4Dd0 Soft Errors: 0 Hard Errors: 323 Transport Errors:
489
Vendor: ATA  Product: ST32000542AS Revision: CC34 Serial No:
%FAKESERIAL%
Size: 2000.40GB 2000398934016 bytes
Media Error: 207 Device Not Ready: 0 No Device: 116 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c16t5000C5005295F727d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: ATA  Product: ST2000VX000-9YW1 Revision: CV13 Serial No:
%FAKESERIAL%
Size: 2000.40GB 2000398934016 bytes
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

*zpool status:*
  pool: rspool
 state: ONLINE
  scan: resilvered 719G in 65h28m with 0 errors on Fri Aug 24 04:21:44 2012
config:

NAMESTATE READ WRITE CKSUM
rspool  ONLINE   0 0 0
  raidz1-0  ONLINE   0 0 0
c16t5000C5002AA08E4Dd0  ONLINE   0 0 0
c16t5000C5002ABE78F5d0  ONLINE   0 0 0
c16t5000C5002AC49840d0  ONLINE   0 0 0
c16t50014EE057B72DD3d0  ONLINE   0 0 0
c16t50014EE057B69208d0  ONLINE   0 0 0
cache
  c4t2d0ONLINE   0 0 0
spares
  c16t5000C5005295F727d0AVAIL

errors: No known data errors

*root@nas:~# zpool replace rspool c16t5000C5002AA08E4Dd0
c16t5000C5005295F727d0*
cannot replace c16t5000C5002AA08E4Dd0 with c16t5000C5005295F727d0: devices
have different sector alignment



On Mon, Sep 24, 2012 at 9:23 AM, Gregg Wonderly gregg...@gmail.com wrote:

 What is the error message you are seeing on the replace?  This sounds
 like a slice size/placement problem, but clearly, prtvtoc seems to think
 that everything is the same.  Are you certain that you did prtvtoc on the
 correct drive, and not one of the active disks by mistake?

 Gregg Wonderly

 As does fdisk -G:
 root@nas:~# fdisk -G /dev/rdsk/c16t5000C5002AA08E4Dd0
 * Physical geometry for device /dev/rdsk/c16t5000C5002AA08E4Dd0
 * PCYL NCYL ACYL BCYL NHEAD NSECT SECSIZ
   608006080000255   252   512
 You have new mail in /var/mail/root
 root@nas:~# fdisk -G /dev/rdsk/c16t5000C5005295F727d0
 * Physical geometry for device /dev/rdsk/c16t5000C5005295F727d0
 * PCYL NCYL ACYL BCYL NHEAD NSECT SECSIZ
   608006080000255   252   512



 On Mon, Sep 24, 2012 at 9:01 AM, LIC mesh licm...@gmail.com wrote:

 Yet another weird thing - prtvtoc shows both drives as having the same
 sector size,  etc:
 root@nas:~# prtvtoc /dev/rdsk/c16t5000C5002AA08E4Dd0
 * /dev/rdsk/c16t5000C5002AA08E4Dd0 partition map
 *
 * Dimensions:
 * 512 bytes/sector
 * 3907029168 sectors
 * 3907029101 accessible sectors
 *
 * Flags:
 *   1: unmountable
 *  10: read-only
 *
 * Unallocated space:
 *   First SectorLast
 *   Sector CountSector
 *  34   222   255
 *
 *  First SectorLast
 * Partition  Tag  FlagsSector CountSector  Mount Directory
0  400256 3907012495 3907012750
8 1100  3907012751 16384 3907029134
 root@nas:~# prtvtoc /dev/rdsk/c16t5000C5005295F727d0
 * /dev/rdsk/c16t5000C5005295F727d0 partition map
 *
 * Dimensions:
 * 512 bytes/sector
 * 3907029168 sectors
 * 3907029101 accessible sectors
 *
 * Flags:
 *   1: unmountable
 *  10: read-only
 *
 * Unallocated space:
 *   First SectorLast
 *   Sector CountSector
 *  34   222   255
 *
 *  First SectorLast
 * Partition  Tag  FlagsSector CountSector  Mount Directory
0  400256 3907012495 3907012750
 8 1100  3907012751 16384 3907029134





 On Mon, Sep 24, 2012 at 12:20 AM, Timothy Coalson tsc...@mst.edu wrote:

 I think you can fool a recent Illumos kernel into thinking a 4k disk is
 512 (incurring a performance hit for that disk, and therefore the vdev and
 pool, but to save a raidz1, it might be worth it):

 http://wiki.illumos.org/display/illumos/ZFS+and+Advanced+Format+disks ,
 see Overriding the Physical Sector Size

 I don't know what you might have to do to coax it to do the replace with
 a hot spare (zpool replace? export/import?).  Perhaps there should be a
 feature in ZFS that notifies when a pool is created or imported with a hot
 spare that can't be automatically used in one or more vdevs?  The whole
 point of hot spares is to have them automatically swap in when you aren't
 there to fiddle with things, which is a bad time to find out it won't work.

 Tim

 On Sun, Sep 23, 2012 at 10:52 PM, LIC mesh licm...@gmail.com 

Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-09-24 Thread LIC mesh
Any ideas?

On Mon, Sep 24, 2012 at 10:46 AM, LIC mesh licm...@gmail.com wrote:

 That's what I thought also, but since both prtvtoc and fdisk -G see the
 two disks as the same (and I have not overridden sector size), I am
 confused.
 *
 *
 *iostat -xnE:*
 c16t5000C5002AA08E4Dd0 Soft Errors: 0 Hard Errors: 323 Transport Errors:
 489
 Vendor: ATA  Product: ST32000542AS Revision: CC34 Serial No:
 %FAKESERIAL%
 Size: 2000.40GB 2000398934016 bytes
 Media Error: 207 Device Not Ready: 0 No Device: 116 Recoverable: 0
 Illegal Request: 0 Predictive Failure Analysis: 0
 c16t5000C5005295F727d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
 Vendor: ATA  Product: ST2000VX000-9YW1 Revision: CV13 Serial No:
 %FAKESERIAL%
 Size: 2000.40GB 2000398934016 bytes
 Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
 Illegal Request: 0 Predictive Failure Analysis: 0

 *zpool status:*
   pool: rspool
  state: ONLINE
   scan: resilvered 719G in 65h28m with 0 errors on Fri Aug 24 04:21:44 2012
 config:

 NAMESTATE READ WRITE CKSUM
 rspool  ONLINE   0 0 0
   raidz1-0  ONLINE   0 0 0
 c16t5000C5002AA08E4Dd0  ONLINE   0 0 0
 c16t5000C5002ABE78F5d0  ONLINE   0 0 0
 c16t5000C5002AC49840d0  ONLINE   0 0 0
 c16t50014EE057B72DD3d0  ONLINE   0 0 0
 c16t50014EE057B69208d0  ONLINE   0 0 0
 cache
   c4t2d0ONLINE   0 0 0
 spares
   c16t5000C5005295F727d0AVAIL

 errors: No known data errors

 *root@nas:~# zpool replace rspool c16t5000C5002AA08E4Dd0
 c16t5000C5005295F727d0*
 cannot replace c16t5000C5002AA08E4Dd0 with c16t5000C5005295F727d0: devices
 have different sector alignment



 On Mon, Sep 24, 2012 at 9:23 AM, Gregg Wonderly gregg...@gmail.comwrote:

 What is the error message you are seeing on the replace?  This sounds
 like a slice size/placement problem, but clearly, prtvtoc seems to think
 that everything is the same.  Are you certain that you did prtvtoc on the
 correct drive, and not one of the active disks by mistake?

 Gregg Wonderly

 As does fdisk -G:
 root@nas:~# fdisk -G /dev/rdsk/c16t5000C5002AA08E4Dd0
 * Physical geometry for device /dev/rdsk/c16t5000C5002AA08E4Dd0
 * PCYL NCYL ACYL BCYL NHEAD NSECT SECSIZ
   608006080000255   252   512
 You have new mail in /var/mail/root
 root@nas:~# fdisk -G /dev/rdsk/c16t5000C5005295F727d0
 * Physical geometry for device /dev/rdsk/c16t5000C5005295F727d0
 * PCYL NCYL ACYL BCYL NHEAD NSECT SECSIZ
   608006080000255   252   512



 On Mon, Sep 24, 2012 at 9:01 AM, LIC mesh licm...@gmail.com wrote:

 Yet another weird thing - prtvtoc shows both drives as having the same
 sector size,  etc:
 root@nas:~# prtvtoc /dev/rdsk/c16t5000C5002AA08E4Dd0
 * /dev/rdsk/c16t5000C5002AA08E4Dd0 partition map
 *
 * Dimensions:
 * 512 bytes/sector
 * 3907029168 sectors
 * 3907029101 accessible sectors
 *
 * Flags:
 *   1: unmountable
 *  10: read-only
 *
 * Unallocated space:
 *   First SectorLast
 *   Sector CountSector
 *  34   222   255
 *
 *  First SectorLast
 * Partition  Tag  FlagsSector CountSector  Mount Directory
0  400256 3907012495 3907012750
8 1100  3907012751 16384 3907029134
 root@nas:~# prtvtoc /dev/rdsk/c16t5000C5005295F727d0
 * /dev/rdsk/c16t5000C5005295F727d0 partition map
 *
 * Dimensions:
 * 512 bytes/sector
 * 3907029168 sectors
 * 3907029101 accessible sectors
 *
 * Flags:
 *   1: unmountable
 *  10: read-only
 *
 * Unallocated space:
 *   First SectorLast
 *   Sector CountSector
 *  34   222   255
 *
 *  First SectorLast
 * Partition  Tag  FlagsSector CountSector  Mount Directory
0  400256 3907012495 3907012750
 8 1100  3907012751 16384 3907029134





 On Mon, Sep 24, 2012 at 12:20 AM, Timothy Coalson tsc...@mst.eduwrote:

 I think you can fool a recent Illumos kernel into thinking a 4k disk is
 512 (incurring a performance hit for that disk, and therefore the vdev and
 pool, but to save a raidz1, it might be worth it):

 http://wiki.illumos.org/display/illumos/ZFS+and+Advanced+Format+disks ,
 see Overriding the Physical Sector Size

 I don't know what you might have to do to coax it to do the replace
 with a hot spare (zpool replace? export/import?).  Perhaps there should be
 a feature in ZFS that notifies when a pool is created or imported with a
 hot spare that can't be automatically used in one or more vdevs?  The whole
 point of hot spares is to have them automatically swap in when you aren't
 there to fiddle with things, 

Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-09-24 Thread Timothy Coalson
I'm not sure how to definitively check physical sector size on
solaris/illumos, but on linux, hdparm -I (capital i) or smartctl -i will do
it.  OpenIndiana's smartctl doesn't output this information yet (and its
smartctl doesn't work on SATA disks unless attached via a SAS chip).  The
issue is complicated by having both a logical and a physical sector size,
and as far as I am aware, on current disks, logical is always 512, which
may be what is being reported in what you ran.  Some quick googling
suggests that previously, it was not possible to use an existing utility to
report the physical sector size on solaris, because someone wrote their own:

http://solaris.kuehnke.de/archives/18-Checking-physical-sector-size-of-disks-on-Solaris.html

So, if you want to make sure of the physical sector size, you could give
that program a whirl (it compiled fine for me on oi_151a6, and runs, but it
is not easy for me to attach a 4k sector disk to one of my OI machines, so
I haven't confirmed its correctness), or temporarily transplant the spare
in question to a linux machine (or live system) and use hdparm -I.

Tim

On Mon, Sep 24, 2012 at 2:37 PM, LIC mesh licm...@gmail.com wrote:

 Any ideas?


 On Mon, Sep 24, 2012 at 10:46 AM, LIC mesh licm...@gmail.com wrote:

 That's what I thought also, but since both prtvtoc and fdisk -G see the
 two disks as the same (and I have not overridden sector size), I am
 confused.
 *
 *
 *iostat -xnE:*
 c16t5000C5002AA08E4Dd0 Soft Errors: 0 Hard Errors: 323 Transport Errors:
 489
 Vendor: ATA  Product: ST32000542AS Revision: CC34 Serial No:
 %FAKESERIAL%
 Size: 2000.40GB 2000398934016 bytes
 Media Error: 207 Device Not Ready: 0 No Device: 116 Recoverable: 0
 Illegal Request: 0 Predictive Failure Analysis: 0
 c16t5000C5005295F727d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
 Vendor: ATA  Product: ST2000VX000-9YW1 Revision: CV13 Serial No:
 %FAKESERIAL%
 Size: 2000.40GB 2000398934016 bytes
 Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
 Illegal Request: 0 Predictive Failure Analysis: 0

 *zpool status:*
   pool: rspool
  state: ONLINE
   scan: resilvered 719G in 65h28m with 0 errors on Fri Aug 24 04:21:44
 2012
 config:

 NAMESTATE READ WRITE CKSUM
 rspool  ONLINE   0 0 0
   raidz1-0  ONLINE   0 0 0
 c16t5000C5002AA08E4Dd0  ONLINE   0 0 0
 c16t5000C5002ABE78F5d0  ONLINE   0 0 0
 c16t5000C5002AC49840d0  ONLINE   0 0 0
 c16t50014EE057B72DD3d0  ONLINE   0 0 0
 c16t50014EE057B69208d0  ONLINE   0 0 0
 cache
   c4t2d0ONLINE   0 0 0
 spares
   c16t5000C5005295F727d0AVAIL

 errors: No known data errors

 *root@nas:~# zpool replace rspool c16t5000C5002AA08E4Dd0
 c16t5000C5005295F727d0*
 cannot replace c16t5000C5002AA08E4Dd0 with c16t5000C5005295F727d0:
 devices have different sector alignment



 On Mon, Sep 24, 2012 at 9:23 AM, Gregg Wonderly gregg...@gmail.comwrote:

 What is the error message you are seeing on the replace?  This sounds
 like a slice size/placement problem, but clearly, prtvtoc seems to think
 that everything is the same.  Are you certain that you did prtvtoc on the
 correct drive, and not one of the active disks by mistake?

 Gregg Wonderly

 As does fdisk -G:
 root@nas:~# fdisk -G /dev/rdsk/c16t5000C5002AA08E4Dd0
 * Physical geometry for device /dev/rdsk/c16t5000C5002AA08E4Dd0
 * PCYL NCYL ACYL BCYL NHEAD NSECT SECSIZ
   608006080000255   252   512
 You have new mail in /var/mail/root
 root@nas:~# fdisk -G /dev/rdsk/c16t5000C5005295F727d0
 * Physical geometry for device /dev/rdsk/c16t5000C5005295F727d0
 * PCYL NCYL ACYL BCYL NHEAD NSECT SECSIZ
   608006080000255   252   512



 On Mon, Sep 24, 2012 at 9:01 AM, LIC mesh licm...@gmail.com wrote:

 Yet another weird thing - prtvtoc shows both drives as having the same
 sector size,  etc:
 root@nas:~# prtvtoc /dev/rdsk/c16t5000C5002AA08E4Dd0
 * /dev/rdsk/c16t5000C5002AA08E4Dd0 partition map
 *
 * Dimensions:
 * 512 bytes/sector
 * 3907029168 sectors
 * 3907029101 accessible sectors
 *
 * Flags:
 *   1: unmountable
 *  10: read-only
 *
 * Unallocated space:
 *   First SectorLast
 *   Sector CountSector
 *  34   222   255
 *
 *  First SectorLast
 * Partition  Tag  FlagsSector CountSector  Mount Directory
0  400256 3907012495 3907012750
8 1100  3907012751 16384 3907029134
 root@nas:~# prtvtoc /dev/rdsk/c16t5000C5005295F727d0
 * /dev/rdsk/c16t5000C5005295F727d0 partition map
 *
 * Dimensions:
 * 512 bytes/sector
 * 3907029168 sectors
 * 3907029101 accessible sectors
 *
 * Flags:
 *   1: 

[zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-09-23 Thread LIC mesh
Well this is a new one

Illumos/Openindiana let me add a device as a hot spare that evidently has a
different sector alignment than all of the other drives in the array.

So now I'm at the point that I /need/ a hot spare and it doesn't look like
I have it.

And, worse, the other spares I have are all the same model as said hot
spare.

Is there anything I can do with this or am I just going to be up the creek
when any one of the other drives in the raidz1 fails?
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] cannot replace X with Y: devices have different sector alignment

2012-09-23 Thread Timothy Coalson
I think you can fool a recent Illumos kernel into thinking a 4k disk is 512
(incurring a performance hit for that disk, and therefore the vdev and
pool, but to save a raidz1, it might be worth it):

http://wiki.illumos.org/display/illumos/ZFS+and+Advanced+Format+disks , see
Overriding the Physical Sector Size

I don't know what you might have to do to coax it to do the replace with a
hot spare (zpool replace? export/import?).  Perhaps there should be a
feature in ZFS that notifies when a pool is created or imported with a hot
spare that can't be automatically used in one or more vdevs?  The whole
point of hot spares is to have them automatically swap in when you aren't
there to fiddle with things, which is a bad time to find out it won't work.

Tim

On Sun, Sep 23, 2012 at 10:52 PM, LIC mesh licm...@gmail.com wrote:

 Well this is a new one

 Illumos/Openindiana let me add a device as a hot spare that evidently has
 a different sector alignment than all of the other drives in the array.

 So now I'm at the point that I /need/ a hot spare and it doesn't look like
 I have it.

 And, worse, the other spares I have are all the same model as said hot
 spare.

 Is there anything I can do with this or am I just going to be up the creek
 when any one of the other drives in the raidz1 fails?


 ___
 zfs-discuss mailing list
 zfs-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss