Michael Phua - PTS
2006-Sep-29 05:43 UTC
[zfs-discuss] How to make an extended LUN size known to ZFS and Solaris
Hi, Our customer has an Sun Fire X4100 with Solaris 10 using ZFS and a HW RAID array (STK D280). He has extended a LUN on the storage array and want to make this new size known to ZFS and Solaris. Does anyone know if this can be done and how it can be done. Cheers! Warm regards. Michael Phua -- ============================================================================== ______ /_____/\ /_____\\ \ MICHAEL PHUA /_____\ \\ / SUN Microsystems - APAC PTS /_____/ \/ / / Block 750, Technopark at Chai Chee /_____/ / \//\ #04-04 Chai Chee Road Singapore 469000 \_____\//\ / / Phone (65) 395-9546 | FAX (65) 242-7166 \_____/ / /\ / Email: mphua at Singapore.Sun.COM \_____/ \\ \ SWAN : 88546 MS: CSIN05 \_____\ \\ \_____\/ ===============================================================================
James McPherson
2006-Sep-29 05:53 UTC
[zfs-discuss] How to make an extended LUN size known to ZFS and Solaris
On 9/29/06, Michael Phua - PTS <Michael.Phua at sun.com> wrote:> Our customer has an Sun Fire X4100 with Solaris 10 using ZFS and a HW RAID > array (STK D280). > He has extended a LUN on the storage array and want to make this new size > known to ZFS and Solaris. > Does anyone know if this can be done and how it can be done.Hi Michael, the customer needs to export the pool which contains the lun, run devfsadm, then re-import the port. That''s the high level summary, there''s probably some more in the archives on really detailed specifics but I can''t recall them at the moment. The reasoning behind the sequence of operations is that the lun''s inquiry data is read on pool import or creation, and not at any other time. At least, that''s how it is at the moment, perhaps Eric, Matt, Mark or Bill might have some project underway to make this a bit easier. cheers, James C. McPherson -- Solaris kernel software engineer, system admin and troubleshooter http://www.jmcp.homeunix.com/blog Find me on LinkedIn @ http://www.linkedin.com/in/jamescmcpherson
Matthew Ahrens
2006-Oct-03 23:38 UTC
[zfs-discuss] How to make an extended LUN size known to ZFS and Solaris
Michael Phua - PTS wrote:> Hi, > > Our customer has an Sun Fire X4100 with Solaris 10 using ZFS and a HW RAID > array (STK D280). > > He has extended a LUN on the storage array and want to make this new size > known to ZFS and Solaris. > > Does anyone know if this can be done and how it can be done.Unfortunately, there''s no good way to do this at the moment. When you give ZFS the whole disk, we put a EFI label on the disk and make one big slice for our use. However, when the LUN grows, that slice stays the same size. ZFS needs to write a new EFI label describing the new size, before it can use the new space. I''ve filed bug 6475340 to track this issue. As a workaround, it *should* be possible to manually relabel the device with format(1m), but unfortunately bug 4967547 (a problem with format) prevents this from working correctly. --matt