Please can anyone tell me how to handle with a LUN that is expanded (on a RAID array or SAN storage)? and grow the filesystem without data-loss? How does ZFS looks at the volume. In other words how can I grow the filesystem after LUN expansion. Do I need to format/type/autoconfigre/label on the specific device? This message posted from opensolaris.org
Theo Bongers wrote:> Please can anyone tell me how to handle with a LUN that is expanded (on a RAID array or SAN storage)? and grow the filesystem without data-loss? > How does ZFS looks at the volume. In other words how can I grow the filesystem after LUN expansion. > Do I need to format/type/autoconfigre/label on the specific device?I believe that if you have given ZFS the whole disk, then it will automatically detect that the LUN has grown when it opens the device. You can cause this to happen by rebooting the machine, or running ''zpool export <poolname>; zpool import <poolname>''. --matt
On Thu, Aug 31, 2006 at 09:54:25AM -0700, Matthew Ahrens wrote:> Theo Bongers wrote: > >Please can anyone tell me how to handle with a LUN that is expanded (on a > >RAID array or SAN storage)? and grow the filesystem without data-loss? > >How does ZFS looks at the volume. In other words how can I grow the > >filesystem after LUN expansion. > >Do I need to format/type/autoconfigre/label on the specific device? > > I believe that if you have given ZFS the whole disk, then it will > automatically detect that the LUN has grown when it opens the device. > You can cause this to happen by rebooting the machine, or running ''zpool > export <poolname>; zpool import <poolname>''.I think a ''zpool online <device>'' should also work, since it triggers a vdev_reopen(). But this requires that the underlying driver correctly detects the LUN expansion and reflects this in the ldi_get_size() call. I''m not sure if all drivers properly handle this case. - Eric -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock
Ok, it''s clear but doesn''t give me any real solid ground. Maybe I tell more about the hardware etc. It''s a Sun X4200 running Solaris 10 X68 connecting through fiberchannel to a StorageTek D280 RAID storage. Maybe this makes the picture more complete. Greets, This message posted from opensolaris.org
It''s a really interesting question. I used to have the issue on UFS, and the answer was "use VxVM or ZFS". Mmmm. Does it really work on ZFS ? This message posted from opensolaris.org
Eric Schrock wrote:> On Thu, Aug 31, 2006 at 09:54:25AM -0700, Matthew Ahrens wrote: >> Theo Bongers wrote: >>> Please can anyone tell me how to handle with a LUN that is expanded (on a >>> RAID array or SAN storage)? and grow the filesystem without data-loss? >>> How does ZFS looks at the volume. In other words how can I grow the >>> filesystem after LUN expansion. >>> Do I need to format/type/autoconfigre/label on the specific device? >> I believe that if you have given ZFS the whole disk, then it will >> automatically detect that the LUN has grown when it opens the device. >> You can cause this to happen by rebooting the machine, or running ''zpool >> export <poolname>; zpool import <poolname>''. > > I think a ''zpool online <device>'' should also work, since it triggers a > vdev_reopen(). But this requires that the underlying driver correctly > detects the LUN expansion and reflects this in the ldi_get_size() call. > I''m not sure if all drivers properly handle this case.I''m not sure that sd does, at this point. This is one of the projects that the Beijing driver group are working on. I know that they have a plan, but how far along that plan is, I do not know. James C. McPherson
Jim, how can we find out whether your suspicion wrt sd is correct? How about other drivers (are others relevant?) IHAC who''s interested in this feature. Thx Michael This message posted from opensolaris.org
Did we ever get a reply to this?, As somebody mentioned, the generic answer was "use ZFS", but i never got to know how. I havent tried it myself but i was curious to know since i will be implementing ZFS shortly. This message posted from opensolaris.org