IT dragons tamed since 2006 (with 748 solutions and growing)

[login]
[join]

your IP[54.80.131.187]




If you thought this solution was helpfull, please login and vote. Not a member? click here

ID758
TitleHow to create a Solaris 10 x86 recovery DVD UFS or ZFS root filesystem
Byjohn
Keywordsrecovery UFS ZFS
CategorySolaris 10
Votes0
Views16
Score16
Date2017-05-24
Body
How to create a Solaris 10 x86 recovery DVDwith ZFS root filesystem

This step by step guide will help you create a bootable Solaris 10 x86 recovery DVD. This is for
Solaris 10 u11.

You will need a dual layer DVD burner and dual layer recordable DVD's

You will need either a spare disk or at least 10 gigs on a separate partition


In this case my spare disk is c0t2d0s4

Mount your scratch disk

# newfs /dev/rdsk/c0t2d0s4 # mount /dev/dsk/c0t2d0s4 /mnt # mkdir /mnt/DVD (this is for the DVD build) # mkdir /mnt/MR (this is for the miniroot build)
Put a solaris 10 install disk into the drive and create the build files
# vold& # cd /cdrom/cdrom0 # find . –depth –print | cpio –pdm /mnt/DVD # cd /mnt/DVD/Solaris_10/Product # rm –rf SUNW*
Note: wasted space and we need to fit on a single DVD Extract the miniroot
# /boot/solaris/bin/root_archive unpackmedia /mnt/DVD /mnt/MR
Modify the miniroot
# touch /mnt/MR/.tmp_proto/.preinstall # cd /mnt/MR/etc # rm sysidcfg # vi sysidcfg system_locale=en_US terminal=xterm timezone=GMT0 name_service=NONE timeserver=localhost root_password= DBYd501nKLh/g: (from shadow file) security_policy=NONE network_interface=primary { hostname=daps1 ip_address=192.168.1.100 default_route=192.168.1.1 netmask=255.255.255.0 protocol_ipv6=no }
Note: I can’t remember the command to define Kerberos, so the system will prompt you during install
# vi /mnt/MR/usr/sbin/install.d/profind
Find the section that looks like this and add lines
cdrom() { # Factory JumpStart is only allowed with factory # stub images, indicated by the file /tmp/.preinstall # if [ -f /tmp/.preinstall ]; then mount -o ro -F lofs ${CD_CONFIG_DIR} ${SI_CONFIG_DIR}>/dev/null 2>&1 if [ $? -eq 0 ]; then verify_config "defaults" "CDROM" fi fi # Added to profind gettext "<<< using CD default >>>";echo rmdir ${SI_CONFIG_DIR} ln -s /cdrom/.install_config ${SI_CONFIG_DIR} exit 0 # End of profind modifications }
Compile the miniroot
# /boot/solaris/bin/root_archive packmedia /mnt/DVD /mnt/MR # rm –rf /mnt/MR/*
Note: once you run the packmedia operation the files in /mnt/MR are modified and can no longer be used to compile another miniroot Modify the jumpstart - UFS ===========================
# cd /mnt/DVD/.install_config # vi flasharchive install_type flash_install archive_location local_file /cdrom/flasharchive fdisk all solaris all partitioning explicit filesys rootdisk.s0 16000 / filesys rootdisk.s1 2048 swap filesys rootdisk.s3 103000 /var filesys rootdisk.s4 free /var/spool/kodak_library/document_storage
note: the numbers for the slices are megs, just duplicate what you have for your install which can be found in format, partition, print. See dracko article #765 for greater detail http://dracko.net/index.php?s=page&n=show_post&id=765 Modify the jumpstart - ZFS ==========================
# cd /mnt/DVD/.install_config # vi flasharchive install_type flash_install archive_location local_file /cdrom/flasharchive fdisk rootdisk solaris all partitioning explicit pool space0 auto 4g 0 any bootenv installbe bename zfsroot dataset /var
##########end modify jumpstart
# rm rules.ok rules # echo "any - - flasharchive -" > rules # /mnt/DVD/Solaris_10/Misc/jumpstart_sample/check
The resulting output from the last command should look similar to: Validating rules... Validating profile flashinstall_profile... The custom JumpStart configuration is ok. Create your flash archive
# flarcreate –n “the archive name” –R / -a “author” –c –e “my archive” –x /mnt /mnt/DVD/flasharchive
Note: purists will want to boot to single user mode, and then mount the scratch drive Create the ISO
/usr/bin/mkisofs -N -D -R -U -l -J -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -c .catalog -V "my archive name" -o /mnt/my_archive.iso /mnt/DVD
Burn it
# cdrw –i /mnt/my_archive.iso
Boot it When you boot select “custom jumpstart install”
SharediggDigg this solutiondel.icio.usPost to del.icio.usSlashdotSlashdot it!email to a friend
PrintPrint This Solution Print
If you thought this solution was helpfull, please login and vote. Not a member? click here


Latest News

Thanks to Dave for hosting this site!

Registered User Area

[login]
[new user]


Paying the Rent



Advanced Search:

Choose body, keywords, title, or all to include in search 
words to include in search 
and(+)

Choose body, keywords, title, or all to include in search 
additional words to include in search 
not(-)

Choose body, keywords, title, or all to exclude in search 
words to exclude from search 


catagory
order by






diggDigg Dracko
del.icio.usPost to del.icio.us
SlashdotSlashdot us!




Don't forget to vote!
Powered by John Core
Bye!

Dracko by John Core

me

View John Core's profile on LinkedIn


Certifications
security logo saber ccsa logo ccna-logo hbss veritas

Technologies
oracle_logo
solaris_logo linux-logo openstack_logo vbox_logo splunk storagetek_logo sun_logo oraclevm_logo brocade_logo bsd_logo

Languages
c-logo bash-logo php-logo

Employers
PlanetPayment Medecision AWi PennStateHershey DISA DLA cim Sun

Consulting
KMBS PNC FBI CCS PTD Sentinel