Flar Image creation

-------------------------------------------------------------------------------------
Note: RAID 1 should not have been enabled in the machine in which flar image is being
created since we need two hard disk
-------------------------------------------------------------------------------------

1) Execute following to identify the available disk

# format

2) Select the second disk number and indentify the free slice in the corresponding
partition

3) Once the corresponding partion is identified, create newfs as follows

# newfs /dev/dsk/c1t1d0s6

c1t1d0s6 differ from hard disks.

4) Then create a data disk to hold the flar image

# mkdir /data

5) Now mount the /data to the newfs. Enter:

# mount /dev/dsk/c1t1d0s6 /data

6) Then create exclude file list, that needs to be excluded from the flar

# echo "/opt" > /tmp/exclude.txt
# echo "/data" >> /tmp/exclude.txt

the above two directories are example

7) Now to start with flar creation process, enter:

# flarcreate -n "Solaris 5.10 Archive" -a "Cisco" -c -I -X /tmp/exclude.txt -R / /data/sol10lca.flar

output should be
*****************

Full Flash
No integrity check. Option "-I" set.
Running precreation scripts...
Precreation scripts done.
Determining the size of the archive...
cpio: File size of "etc/mnttab" has decreased by 127
4074554 blocks
1 error(s)
The archive will be approximately 1.09GB.
Creating the archive...
4074553 blocks
Archive creation complete.
Running postcreation scripts...
Postcreation scripts done.

Running pre-exit scripts...
Pre-exit scripts done.


------------------------------------------------javascript:void(0)-------------------------------------