LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   mirror root from jumpstart: flash image, sol9 (https://www.linuxquestions.org/questions/solaris-opensolaris-20/mirror-root-from-jumpstart-flash-image-sol9-428111/)

RHELL 03-24-2006 02:25 PM

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?

jlliagre 03-24-2006 03:14 PM

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

RHELL 03-24-2006 04:54 PM

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.

javier.e.menendez 03-24-2006 06:47 PM

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.

RHELL 03-24-2006 07:02 PM

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

javier.e.menendez 03-24-2006 07:11 PM

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. ;)

javier.e.menendez 03-27-2006 11:38 AM

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

javier.e.menendez 03-27-2006 11:39 AM

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.

RHELL 03-27-2006 12:26 PM

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.

javier.e.menendez 03-27-2006 12:28 PM

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.

RHELL 03-27-2006 12:44 PM

I was actually just awake enough to catch that, but thanks.
I would never mindlessly copy something. O;-)

RHELL 04-10-2006 04:52 PM

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


All times are GMT -5. The time now is 06:03 PM.