LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 09-01-2017, 01:46 PM   #1
dfreybur
LQ Newbie
 
Registered: Aug 2017
Location: Austin, TX, US
Posts: 11

Rep: Reputation: Disabled
ZFS migration big LUN to several smaller LUNs


Does anyone know how to migrate a ZFS zpool from one big LUN to several smaller ones?

We have a 2 TB database mount. Our new Netapp provisioned 4 LUNs of 512 GB. The same total size but not by individual LUN.

On VXVM I could use vxevac and it would move the data to as many LUNs as needed -

vxevac ... big_lun new_1 new_2 new_3 new_4

Or I could build a plex witht he several new LUNs, mirror, sync, break the mirror.

On the Linux/HPUX/AIX LVMs that use logical partitions I could wrote a loop that live migrates the logical partitions one at a time until they had all been moved off the big LUN.

On ZFS "zpool -z database attach old new" does not allow several new devices.

I would very much like to be able to do this as a live migration. I've already migrated the boot points of my local zones live with zpool attach/detach, but that LUN was provisioned explicitly by size.

A trade off I see - If I let Netapp allocate the LUNs it can monitor them all together as a database. I can provision by hand to exact size but then it does not know they form a set.
 
Old 09-01-2017, 05:40 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
Have a look to "shadow migration".
 
1 members found this post helpful.
Old 09-04-2017, 10:12 AM   #3
dfreybur
LQ Newbie
 
Registered: Aug 2017
Location: Austin, TX, US
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jlliagre View Post
Have a look to "shadow migration".
Thanks! According to that document the source needs to be read-only, so it's a "dead migration" rather than a "live migration". Not clear how it's better than shutting down Oracle and doing a move or copy to a new mount point. The copy speed would be similar with a small number of large files.

Did I read it wrong that the source needs to be read-only? If the destination needs to be read-only that at least lets me sync alive then only have the database down time as a cycle not as a copy.
 
Old 09-04-2017, 02:51 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
You didn't read it wrong.

The source need indeed to be set in read-only mode. However, the destination will be in read-write mode as soon as you start the shadow migration and all data will be accessible from it.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fiber san, LUN id, big storage problem PoleStar Linux - Server 1 04-16-2014 08:13 AM
zfs zpool lun resize frankerooney Linux - Server 1 04-14-2014 04:15 PM
Newly Resized Luns not Showing correct LUN Size RHel 5.3 Doknik Linux - Software 3 07-12-2012 11:02 AM
Cannot mount filesystem using label after LUN migration taytc77 Red Hat 1 10-21-2008 03:24 AM
The big question, and a few smaller ones... redkazan Linux - Newbie 7 01-07-2004 02:09 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 06:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration