Sun Microsystems, Inc.  Sun System Handbook - ISO 3.4 June 2011 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1009400.1
Update Date:2010-08-03
Keywords:

Solution Type  Technical Instruction Sure

Solution  1009400.1 :   Loopback file driver (lofi) & CDROM : How to access CDROM images via lofi.  


Related Items
  • Sun Enterprise 250 Server
  •  
Related Categories
  • GCS>Sun Microsystems>Servers>Midrange V and Netra Servers
  •  

PreviouslyPublishedAs
212997


Description
To allow access to CDROM images without the additional CDROM library hardware and to also allow burning of the images on a as needed basis.
Overview OR gerenal outline of the procedure is listed below:-
 - Setup Hardware.
- Install Solaris[TM] OS ( Solaris[TM] 8 2/02 and above. REMINDER: Solaris[TM] 8 is EOL  )
- Install Recommended patches for Solaris OS
- Install CD Read/Write software from Solaris supplement CDROM
- Create CDROM images.
- Create device file to link the CDROM images.
- Edit the dfstab file to share the images.
- Create a Startup file to maintain device file link(s).
- reboot.
- Create a MOTD file that points users to instructions for burning and using images.


Steps to Follow
Procedure to access & burn CDROM images via lofi :
(1) Setup Hardware.
    Example of system setup - Hardware Configuration:
      ? Sun Ultra 60
? 1 - 9.0G drive (Internal c0t0d0)
? 1 - 4.2G drive (Internal c0t1d0)
? 1 - Onboard CDROM drive (Internal)
? 1 - Yamaha CDROM burner (External)
? 1 - 4mm dat tape drive (External)
(2) Install Solaris OS ( Solaris[TM] 8 2/02 and above )
    Be sure to keep in mind the amount of space needed for CDROM images.
(3) Install the recommended patch cluster located on sunsolve.
(4) Install CD Read/Write software from Solaris supplement CDROM
e.g. "CD Read/Write 1.0" software from Solaris 8 2/02 supplement CDROM.
(5) Create CDROM images
    (5-1) Create image source directory and image mount points.
          Example:
            # mkdir /image_source
     # mkdir /images/gen_tk
# mkdir /images/clust_tk
# mkdir /images/VTS-v3
    (5-2) Create images.
Mount appropriate CD in CDROM drive, create image using
mkisofs command.
          Example:
     # mkisofs -r -v -o /image_source/gen_tk.img /cdrom/gen_tk
# mkisofs -r -v -o /image_source/clust_tk.img /cdrom/clust_tk
# mkisofs -r -v -o /image_source/VTS-v3.img /cdrom/cdrom
(6) Create device file to link the CDROM images
    Example:
      # lofiadm -a /image_source/gen_tk.img /dev/lofi/1
# lofiadm -a /image_source/clust_tk.img /dev/lofi/2
# lofiadm -a /image_source/VTS-v3.img /dev/lofi/3
(7) Edit the dfstab file to share the images
    (7-1) Test mount the images:
          Example:
     # mount -F hsfs -o ro /dev/lofi/1 /images/gen_tk
# mount -F hsfs -o ro /dev/lofi/2 /images/clust_tk
# mount -F hsfs -o ro /dev/lofi/3 /images/VTS-v3
    (7-2) Share out the image mounts by editing the /etc/dfstab file
          :::::::::::::
/etc/dfstab
:::::::::::::
          share -F nfs -o ro /images/gen_tk
share -F nfs -o ro /images/clust_tk
share -F nfs -o ro /images/VTS-v3
(8) Create a Startup file to maintain device file link(s)
     ? At this point the association of the device file and the image is temporary.
If a reboot is done the images will not mount. lofi will forget the associations. 
       To make this a static configuration create the following script/file.
         :::::::::::::::::::
/etc/rc2.d/S94lofi
:::::::::::::::::::
#!/bin/sh
#
  lofiadm -a /image_source/gen_tk.img /dev/lofi/1
lofiadm -a /image_source/clust_tk.img /dev/lofi/2
lofiadm -a /image_source/VTS-v3.img /dev/lofi/3
mount -F hsfs -o ro /dev/lofi/1 /images/gen_tk
mount -F hsfs -o ro /dev/lofi/2 /images/clust_tk
mount -F hsfs -o ro /dev/lofi/3 /images/VTS-v3
(9) Reboot
    Verify with df -k and share AFTER booting

(10) Create a MOTD file that points users to instructions for burning and using images.

    Refer to Technical Instruction <Document: 1018811.1> for instructions for CDROM burning.
      Technical Instruction <Document: 1018811.1>      
Title: Solaris[TM] 8/9 Operating System: CD-ROM Burning made easier


Product
High-End Servers
Entry Level Servers
Desktops & Workstations

lofi, mount iso image, access CDROM Images, CDROM
Previously Published As
80650

Change History
Date: 2009-01-20
The product High-End Servers, Entry Level Servers & Desktops & Workstations in the product statement are too broad and will not be found in a product based search. Please place specific versions of the product according to the product nomenclature database swordfish (http://krep.emea.sun.com/stats/swordfish/) to resolve this issue.
Date: 2006-03-03
User Name: 25440
Action: Approved
Comment: Publishing.
Version: 7
Date: 2006-03-03
User Name: 25440
Action: Accept
Comment:
Version: 0
Date: 2006-03-03
User Name: 119902
Action: Approved
Comment: I have reviewed this document, made a couple of minor changes and submit it to the workflow.

Attachments
This solution has no attachment
  Copyright © 2011 Sun Microsystems, Inc.  All rights reserved.
 Feedback