bhanu prakash
2010-Oct-26 14:40 UTC
[zfs-discuss] Moving the 17 zones from one LUN to another LUN
Hi Team, There 17 zones on the machine T5120. I want to move all the zones which are ZFS filesystem to another new LUN. Can you give me the steps to proceed this. Regards, Bhanu -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20101026/12d22830/attachment.html>
Mike Gerdts
2010-Oct-26 17:32 UTC
[zfs-discuss] Moving the 17 zones from one LUN to another LUN
On Tue, Oct 26, 2010 at 9:40 AM, bhanu prakash <bhanu.sysadm at gmail.com> wrote:> Hi Team, > > > There 17 zones on the machine T5120. I want to move all the zones which are > ZFS filesystem to another new LUN. > > Can you give me the steps to proceed this.If the only thing on the source lun is the pool that contains the zones and the new LUN is at least as big as the old LUN: zpool replace <pool> <oldlun> <newlun> The above can be done while the zones are booted. Depending on the characteristics of the server and workloads, the workloads may feel a bit sluggish during this time due to increased I/O activity. If that works for you, stop reading now. In the event that the scenario above doesn''t apply, read on. Assuming all the zones are under oldpool/zones, oldpool/zones is mounted at /zones, and you have done "zpool create newpool <newlun>" Be sure to test this procedure - I didn''t! zfs create newlun/zones # optionally, shut down the zones zfs snapshot -r oldpool/zones at phase1 zfs send -r oldpool/zones at phase1 | zfs receive newpool/zones at phase1 # If you did not shut down the zones above, shut them down now. # If the zones were shut down, skip the next two commands zfs snapshot -r oldpool/zones at phase2 zfs send -rI oldpool/zones at phase1 oldpool/zones at phase2 \ | zfs receive newpool/zones at phase2 # Adjust mount points and restart the zones zfs set mountpoint=none oldpool/zones zfs set mountpoint=/zones newpool/zones for zone in $zonelist zoneadm -z $zone boot ; done At such a time that you are comfortable that the zone data moved over ok... zfs destroy -r oldpool/zones Again, verify the procedure works on a test/lab/whatever box before trying it for real. -- Mike Gerdts http://mgerdts.blogspot.com/
bhanu prakash
2010-Oct-27 14:27 UTC
[zfs-discuss] Moving the 17 zones from one LUN to another LUN
Hi Mike, Thanks for the information... Actually the requirement is like this. Please let me know whether it matches for the below requirement or not. *Question*: The SAN team will assign the new LUN?s on EMC DMX4 (currently IBM Hitache is there). We need to move the 17 containers which are existed on the server * Host1* to new LUN?s?. Please give me the steps to do this activity. Regards, Bhanu -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20101027/4aac9cf5/attachment.html>
Mike Gerdts
2010-Oct-27 14:53 UTC
[zfs-discuss] Moving the 17 zones from one LUN to another LUN
On Wed, Oct 27, 2010 at 9:27 AM, bhanu prakash <bhanu.sysadm at gmail.com> wrote:> Hi Mike, > > > Thanks for the information... > > Actually the requirement is like this. Please let me know whether it matches > for the below requirement or not. > > Question: > > The SAN team will assign the new LUN?s on EMC DMX4 (currently IBM Hitache is > there). We need to move the 17 containers which are existed on the > server?Host1?to new LUN?s?. > > > Please give me the steps to do this activity.Without knowing the layout of the storage, it is impossible to give you precise instructions. This sounds like it is a production Solaris 10 system in an enterprise environment. In most places that I''ve worked, I would be hesitant to provide the required level of detail on a public mailing list. Perhaps you should open a service call to get the assistance you need. -- Mike Gerdts http://mgerdts.blogspot.com/
Brian Wilson
2010-Oct-27 16:51 UTC
[zfs-discuss] Moving the 17 zones from one LUN to another LUN
On Oct 27, 2010, at 9:53 AM, Mike Gerdts wrote:> On Wed, Oct 27, 2010 at 9:27 AM, bhanu prakash > <bhanu.sysadm at gmail.com> wrote: >> Hi Mike, >> >> >> Thanks for the information... >> >> Actually the requirement is like this. Please let me know whether >> it matches >> for the below requirement or not. >> >> Question: >> >> The SAN team will assign the new LUN?s on EMC DMX4 (currently IBM >> Hitache is >> there). We need to move the 17 containers which are existed on the >> server Host1 to new LUN?s?. >> >> >> Please give me the steps to do this activity. > > Without knowing the layout of the storage, it is impossible to give > you precise instructions. This sounds like it is a production Solaris > 10 system in an enterprise environment. In most places that I''ve > worked, I would be hesitant to provide the required level of detail on > a public mailing list. Perhaps you should open a service call to get > the assistance you need. >I have to agree, specific commands are difficult without being on the system and seeing exactly what you''re using. I''m actually in the middle of the opposite migration - from a DMX 3 to a Hitachi USP-VM. Lots of variables, it just depends. Feel free to contact me offlist if you like. I can tell you that it''s possible, just that the procedures and downtimes vary wildly depending on the variables. (multipathing software, volume manager/filesystems, HBAs, etc) cheers, Brian ----------------------------------------------------------------------------------- Brian Wilson, Solaris SE, UW-Madison DoIT Room 3114 CS&S 608-263-8047 bfwilson(a)doit.wisc.edu ''I try to save a life a day. Usually it''s my own.'' - John Crichton -----------------------------------------------------------------------------------> -- > Mike Gerdts > http://mgerdts.blogspot.com/ > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss