LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-04-2011, 07:39 AM   #1
Rowley
Member
 
Registered: Jul 2008
Distribution: Solaris 10, OpenSolaris, CentOS 5
Posts: 40

Rep: Reputation: 15
export and apply zpool configuration


I have two hosts each with 50 disks.

I configure various zpool's on host A just as I want them. I then want to take these zpool configurations and apply it to identical hardware on host B.

Anyone know if this can be done? If so how?
 
Old 07-04-2011, 11:16 AM   #2
kebabbert
Member
 
Registered: Jul 2005
Posts: 527

Rep: Reputation: 46
Why dont you just copy the same commands? There is "zpool history" or something similar which shows every command you have used on host A. Take these commands and apply them to host B.
 
Old 07-05-2011, 01:45 AM   #3
Rowley
Member
 
Registered: Jul 2008
Distribution: Solaris 10, OpenSolaris, CentOS 5
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks for taking the time to reply.

I could "copy" the commands but, there is always the very real risk when copying stuff from a terminal that mistakes will be made, particularly when dealing with hundreds of devices and file systems.

Veritas Volume Manager allows you to take whole disk groups and their volume configuration and apply that to another set of disks. I'm surprised that when the developers as Sun decided to write ZFS and its tool set, they didn't pick up that this might be something that many of their customers might want to make use of.
 
Old 07-05-2011, 01:58 AM   #4
vermaden
Member
 
Registered: Jan 2006
Location: pl_PL.lodz
Distribution: FreeBSD
Posts: 406

Rep: Reputation: 89
Quote:
Originally Posted by Rowley View Post
Thanks for taking the time to reply.

I could "copy" the commands but, there is always the very real risk when copying stuff from a terminal that mistakes will be made, particularly when dealing with hundreds of devices and file systems.

Veritas Volume Manager allows you to take whole disk groups and their volume configuration and apply that to another set of disks. I'm surprised that when the developers as Sun decided to write ZFS and its tool set, they didn't pick up that this might be something that many of their customers might want to make use of.
Probably they (at SUN) had more reliable terminals then You have
 
Old 07-05-2011, 04:15 AM   #5
kebabbert
Member
 
Registered: Jul 2005
Posts: 527

Rep: Reputation: 46
Quote:
Originally Posted by Rowley View Post
Thanks for taking the time to reply.

I could "copy" the commands but, there is always the very real risk when copying stuff from a terminal that mistakes will be made, particularly when dealing with hundreds of devices and file systems.
Export it to a text file, edit it and then apply the text file?

I dont know of any way of doing automated zfs things.

But, when you create 100s of zfs filesystems, then you just send them to host B. There is no need to create every filesystem on host B. If you send the filesystems to host B, they will be created and copied to host B.
 
  


Reply



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
How to copy a zpool safely? rsync? cp? kebabbert Solaris / OpenSolaris 28 12-02-2020 07:23 AM
LXer: DiskSuite/VolumeManager or Zpool Mirroring On Solaris: Pros and Cons LXer Syndicated Linux News 0 04-28-2009 03:30 PM
is there a way to convert a standard zpool into a raidz pool? LauMars Solaris / OpenSolaris 2 03-09-2009 02:34 PM
is there a way to convert a standard zpool into a raidz pool? (ZFS) LauMars Linux - Server 1 03-08-2009 09:11 AM
How to Apply IP setting after changing configuration files under RH 8.0 Dual-Eye Linux - Networking 1 02-12-2003 07:40 PM

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

All times are GMT -5. The time now is 01:19 PM.

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
Open Source Consulting | Domain Registration