LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices



Reply
 
Search this Thread
Old 03-24-2006, 03:25 PM   #1
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
mirror root from jumpstart: flash image, sol9


I'm preparing a jumpstart setup to install from flash archive of the root filesystem. The system I'm cloning has / mirrored, and the clones will as well. All hardware will be identical.
I've got 'filesys' statements in my profile to configure root, swap, and metadb partitions identically to the original machine.
My question is, will the md configuration already on / be enough to configure the mirror on the clone systems, or do I need additional information in profile for this to occur?
 
Old 03-24-2006, 04:14 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Ouch, questions in this forum are becoming tougher ...

I've no idea about that one, but I believe the answer is in or around this page:
http://docs.sun.com/app/docs/doc/817...kv6kibf?a=view
 
Old 03-24-2006, 05:54 PM   #3
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Original Poster
Rep: Reputation: 31
That's exactly the right doc, thanks.
I know people are on the edge of their seats now, so:
The answer is that 'flar' excludes RAID information from the archive, so it will have to be configured from the jumpstart profile.
Alterantely it appears you can create an ebe with RAID(using Solaris Live Upgrade) and then install the archive.
 
Old 03-24-2006, 07:47 PM   #4
javier.e.menendez
Member
 
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
I've done what you are trying to do but I thought it was a new feature in 10 (unless you want to use post-install scripts). When you opened the thread, you mentioned solaris 9. Please let me know if it works in 9 and if so, what release of 9 you are running. If running 10, you can also try wanboot (jumpstart over http/https) which uses flash.

I know that sometimes sun buries new features in later releases of a version. That is what I read (that is a 10 feature only) in a class that sun offers called sa-225 (solaris 10 features for experienced administrators) and I was told that you can't mix solaris 10 servers with solaris 9 flash images (not supported at least).

Good luck.
 
Old 03-24-2006, 08:02 PM   #5
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Original Poster
Rep: Reputation: 31
I am on 9,will report back if/when it works. Here is the quote from the document jiliagre referred to above:

Quote:
Starting in the Solaris 9 9/04 release, you can create and install Solaris Flash archives created from a master system that has RAID-1 volumes configured.
Quote:
The Solaris Flash creation software removes all RAID-1 volume information from the archive to keep the integrity of the clone system. With custom JumpStart you can rebuild the RAID-1 volumes by using a JumpStart profile.
The given jumpstart profile examples look something like this:
filesys mirror:d30 c1t0d0s0 c1t1d0s0 /
metadb c1t0d0s3 size 8192 count 3
metadb c1t1d0s3 size 8192 count 3
 
Old 03-24-2006, 08:11 PM   #6
javier.e.menendez
Member
 
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
That is what I mean, later version of 9. Good to know. Let me know how it goes. On monday, I can send you my procedure. Works great in 10. Have not tried it in 9 at all.

I also have all the steps for wanboot; that is cool since you
can add authentication to it and you don't need a separate boot
server for every subnetwork (http instead of rarp/tftp/nfs). I set it up without it but worksgreat. You need a client with obp version 4.14 or higher to avoid using the cdrom to start on the client (worked on an old u-60 with the cdrom) but also did it from the obp in a sun blade 1500 (new parameters added to the
ok prompt).

Again, good luck.
 
Old 03-27-2006, 12:38 PM   #7
javier.e.menendez
Member
 
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
Rhell, as promised, here it goes. This is a procedure that I wrote in 10 to do the same thing you are trying to do in 9. Works in 10, verified, no typos.

Hope it helps,

Jumpstart for solaris 10

Step # 1:

Create a file system on the second drive, mount it and start copying
the software from the first cd by running the setup_install_server
script. This one was mounted on /jumpstart. I used cds, could have used dvds
as well.

# cd /cdrom/cdrom0/s0/Solaris_10/Tools

# ./setup_install_server /jumpstart

Verifying target directory...
Calculating the required disk space for the Solaris_10 product
Calculating space required for the installation boot image
Copying the CD image to disk...
Copying Install Boot Image hierarchy...
Install Server setup complete

Step # 2:

From the second cd, add additional software to the image.

# cd /cdrom/cdrom0/Solaris_10/Tools

# ./add_to_install_server /jumpstart

Step # 3:

From the third cd, repeat the previous step

# cd /cdrom/cdrom0/Solaris_10/Tools

# ./add_to_install_server /jumpstart

Step # 4:

Add the software from the fourth cd.

# cd /cdrom/cdrom0/Solaris_10/Tools

# ./add_to_install_server /jumpstart

Step # 5:

Move the jumpstart_sample directory to /jumpstart (optional step)

# cd /jumpstart/Solaris_10/Misc/jumpstart_sample

# cp -r * /jumpstart

# cd /jumpstart

Step # 6:

Edit the necessary files (spanky is the name of the client)

# echo hostname spanky - ./spanky.conf - > rules

# vi spanky.conf

install_type initial_install
system_type standalone
partitioning explicit
filesys c0t0d0s0 free /
filesys c0t0d0s1 500 swap
filesys mirror:d10 c0t0d0s7 c0t1d0s7 1000 /export/home
filesys c0t0d0s6 100
filesys c0t1d0s6 free
metadb c0t0d0s5 size 8192
metadb c0t1d0s5 size 8192
package SUNWscman add nfs://bravo6/packages retry 3

# vi sysidcfg

network_interface=PRIMARY {protocol_ipv6=yes
netmask=255.255.255.0
default_route=10.28.6.130}
security_policy=NONE
name_service=NONE
timezone=US/Eastern
system_locale=en_US
timeserver=localhost
root_password=s0bicL4x9DePE

# ./check

Validating rules...
Validating profile ./spanky.conf...
The custom JumpStart configuration is ok.

Step # 7:

Add the client to your server

# more /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
10.28.6.2 bravo6 bravo6. loghost
10.28.6.3 spanky

# more /etc/ethers
8:0:20:e5:c3:30 spanky

# cd /jumpstart/Solaris_10/Tools

./add_install_client -c bravo6:/jumpstart -p bravo6:/jumpstart \
spanky sun4u

Final Step:

Boot the client from the network

ok boot net - install
 
Old 03-27-2006, 12:39 PM   #8
javier.e.menendez
Member
 
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
By the way, I forgot, I used the example of /export/home to mirror, you could have done /, swap and other file systems as well.

A promise is a promise.
 
Old 03-27-2006, 01:26 PM   #9
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Original Poster
Rep: Reputation: 31
I've got sol-10 to setup next, so I can make use of this even if it won't work for 9.
Thanks, will report my findings for the committee. I'm sorting the various hacks of the previous tenant as I go, so this may take a while.
 
Old 03-27-2006, 01:28 PM   #10
javier.e.menendez
Member
 
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
Rhell, just noticed that I pasted the handout for jumpstart with mirroring without flash. To use a flash image, first create it with the flarcreate command and then change spanky.conf (profile file) to be like this. You'll have to remove some lines but modify the two that I put in here to specify how to retrieve the image.

Ex: vi spanky.conf

install_type flash_install
archive_location nfs 10.28.6.2:/jumpstart/flash_archive1

Note: 10.28.6.2 was my server here. Sorry, I'm in a rush.
 
Old 03-27-2006, 01:44 PM   #11
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Original Poster
Rep: Reputation: 31
I was actually just awake enough to catch that, but thanks.
I would never mindlessly copy something. O;-)
 
Old 04-10-2006, 05:52 PM   #12
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Original Poster
Rep: Reputation: 31
Well, to follow up, it works on Solaris 9 9/04 release. I archived root, copied the archive to the jumpstart server, then installed from the archive.

I grabbed the whole root, though there are options to fine tune this:
Quote:
flar create –n testbox –c testbox.flar
As mentioned, flar will exclude metadisk information, so I set up the mirror in the jumpstart profile:
Quote:
# profile keywords profile values
# ----------------- -----------------
install_type flash_install
archive_location nfs nn.nn.nn.nn:/jumpstart/flash_archive/testbox.flar
partitioning explicit
# filesys designates sizes in Mb
filesys rootdisk.s1 512 swap
# metadb designates sizes in blocks
# normally, we would have metadb on slice 3 of other drives as well
metadb c0t0d0s3 size 8192 count 3
filesys mirror:d30 c0t0d0s0 c0t0d0s4 3072 /
This is only a test box, so my submirrors are on the same drive. Normally they should be on separate drives(and controllers, if possible)
Refer to Javier's example in post #7 for a true redundant mirror.
flar belongs to the SUNWinst package.
Thanks to jiliagre and Javier for pointing me in the right direction.

>>>edited for spelling, not content

Last edited by RHELL; 04-10-2006 at 06:04 PM.
 
  


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
Mirror the root disk fayez Linux - Hardware 1 08-23-2005 07:32 PM
Flash image (.swf) in Linux nebu Linux - Software 2 07-01-2005 03:51 PM
Jumpstart issues with solaris 10 genlee Solaris / OpenSolaris 0 04-05-2005 12:05 PM
Creating root mirror vanibhat Linux - Hardware 2 11-29-2004 10:34 AM
How to make mirror image of linux partion to one1 HDD TO 2 HDD raj_1 Linux - General 2 11-04-2004 02:45 AM


All times are GMT -5. The time now is 09:05 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration