Steve,
Steve Gaede wrote:
> I'm trying to Jumpstart a v120 with Solaris 10 8/07 using existing
> partitioning and using Jumpstart to set up SVM for a mirrored
> root filesystem. I want to use existing partitioning so that my
> partitioning on this server matches others. Because you
> cannot give start:size sizing in cylinders in *all* Jumpstart
> profile commands (most notably the mirror variant of the
> filesys line), I can't use Jumpstart *and* its ability to set
> up mirroring to partition the disk at the same time (my partitioning
> is by cylinder, which doesn't give integer MB numbers, which
> is what filesys mirror requires).
>
The reason why you can't specify size in mirrors for jumpstart is that
the two disks may have different geometry so the cylinder size and
number of cylinders are different.
> I believe that what I should be able to do in the profile
> file is the following:
>
> partitioning existing
> filesys mirror:d0 c1t0d0s0 c1t1d0s0 /
> filesys c1t0d0s1 existing swap
> filesys c1t0d0s2 existing overlap
> filesys c1t0d0s6 existing /mnt
> metadb c1t0d0s7
> #
> filesys c1t1d0s1 existing swap
> filesys c1t1d0s2 existing overlap
> filesys c1t1d0s6 existing /mnt2
>
You shouldn't specifiy c1t0d0s2 and c1t1d0s2 in your jumpstart profile.
They represent the while disk.
> This causes the check script to fail in the following way:
>
> js# ./check
> Validating rules...
> Validating profile Profiles/profile.mirror...
> expr: syntax error
> ./check: test: argument expected
>
> Although "existing" isn't officially allowed in the filesys mirror
> line, I modify the line to look like this:
>
> filesys mirror:d0 c1t0d0s0 c1t1d0s0 existing /
>
> And check gives me a reasonable error at least:
>
> js# ./check
> Validating rules...
> Validating profile Profiles/profile.mirror...
>
> Error in file "Profiles/profile.mirror", line 48
> filesys mirror:d0 c1t0d0s0 c1t1d0s0 existing /
> ERROR: Size "existing" is invalid
>
Check script doesn't accept this because it doesn't know which
'existing' slice to use (c1t0d0s0 or c1t1d0s0).
> Finally, I resort to giving a size to the filesys mirror line
> that's the nearest integral number of megabytes for the
> partition; check is happy, but now the install fails in
> the install process:
>
> Checking rules.ok file...
> Using begin script: install_begin
> Using finish script: patch_finish
> Executing SolStart preinstall phase...
> Executing begin script "install_begin"...
> Begin script install_begin execution completed.
>
> ERROR: Field 3 - Existing partitioning requires a size of "existing"
> Solaris installation program exited.
>
Once it failed, run the jumpstart in dryrun mode to provide more debug
information and it will tell you which jumpstart line has the problem.
# /usr/sbin/install.d/pfinstall -D <name of the profile>
(Usually your config files directory will be mounted under /tmp/<xxx>
directory)
> So apparently with "check" not allowing me to give a filesys mirror
> line in the profile without a size (despite it being in the user manual
> example),
> and without being able to specify the size in cylinders, my best bet is to
> set up SVM for mirroring the root filesystem after install (or in a finish
> script).
>
> Does anybody think that there's a way to make this work?
>
It should work. If your disks are different use the smaller slice
between c1t0d0s0 or c1t1d0s0 as the primary submirror for your mirror.
How do you convert the size from cylinders to MB? For example fdisk
command will tell you the size of a cylinder
# fdisk /dev/rdsk/c1d0p0
Total disk size is 30400 cylinders
Cylinder size is 16065 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Active Solaris2 7 30399 30393 100
2 Diagnostic 1 6 6 0
In this case, So the cylinder size is 16065 * 512 = 8225280 bytes and
which is between 7 and 8 MB.
The size of Solaris partition is 30393 * 8225280 = 238409 MB
- Sundar
> Steve
>
>
> This message posted from opensolaris.org
> _______________________________________________
> install-discuss mailing list
> install-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/install-discuss
>