SLAC CPE Software Engineering Group
Stanford Linear Accelerator Center
System Admin

Solaris Live Upgrade

 

SLAC Detailed
SLAC Computing
Software Home
Software Detailed
 

 

 

 

Replacing broken mirror disk in Solaris-10 Server –

  • Replace the broken mirror disk.
  • Reboot the Server if required.
  • lustatus

 

Boot Environment           Is       Active Active    Can    Copy     

Name                       Complete Now    On Reboot Delete Status   

-------------------------- -------- ------ --------- ------ --------

Primary                    yes      yes    yes       no     -        

Secondary                  yes      no     no        yes    -    

 

  • ludelete Secondary 

 

ERROR: mount: /dev/dsk/c1t1d0s0 is not this fstype

ERROR: cannot mount mount point </.alt.tmp.b-eyc.mnt/> device </dev/dsk/c1t1d0s0>

ERROR: failed to mount file system </dev/dsk/c1t1d0s0> on </.alt.tmp.b-eyc.mnt/>

ERROR: cannot mount boot environment by icf file </etc/lu/ICF.2>

ERROR: Cannot mount BE <Secondary>.

Unable to delete boot environment.

bash-3.00# lustatus

Boot Environment           Is       Active Active    Can    Copy     

Name                       Complete Now    On Reboot Delete Status   

-------------------------- -------- ------ --------- ------ ----------

Primary                    yes      yes    yes       no     -        

Secondary                  yes      no     no        yes    -   

 

  • df /

    /                  (/dev/dsk/c1t0d0s0 ): 7527960 blocks   842788 files

  • echo | format

 

Searching for disks...done

 

AVAILABLE DISK SELECTIONS:

       0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>

          /pci@1c,600000/scsi@2/sd@0,0

     1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>

         /pci@1c,600000/scsi@2/sd@1,0

Specify disk (enter its number): Specify disk (enter its number):

 

  • df /

 

/                  (/dev/dsk/c1t0d0s0 ): 7527960 blocks   842788 files

 

  • prtvtoc /dev/rdsk/c1t0d0s2  | fmthard -s - /dev/rdsk/c1t1d0s2

fmthard:  New volume table of contents now in place.

# prtvtoc /dev/dsk/c1t1d0s2

* /dev/dsk/c1t1d0s2 partition map

*

* Dimensions:

*     512 bytes/sector

*     424 sectors/track

*      24 tracks/cylinder

*   10176 sectors/cylinder

*   14089 cylinders

*   14087 accessible cylinders

*

* Flags:

*   1: unmountable

*  10: read-only

*

* Unallocated space:

*       First     Sector    Last

*       Sector     Count    Sector

*           0  16780224  16780223

*

*                          First     Sector    Last

* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory

       0      2    00   16780224  16780224  33560447

       1      3    01          0  16780224  16780223

       2      5    00          0 143349312 143349311

       3      4    00   33560448   8395200  41955647

       4      7    00   41955648  16780224  58735871

       5      0    00   58735872  16780224  75516095

       6      0    00   75516096  67792512 143308607

       7      0    00  143308608     40704 143349311

  • ludelete Secondary   

 

ERROR: mount: /dev/dsk/c1t1d0s0 is not this fstype

ERROR: cannot mount mount point </.alt.tmp.b-8Pc.mnt/> device </dev/dsk/c1t1d0s0>

ERROR: failed to mount file system </dev/dsk/c1t1d0s0> on </.alt.tmp.b-8Pc.mnt/>

ERROR: cannot mount boot environment by icf file </etc/lu/ICF.2>

ERROR: Cannot mount BE <Secondary>.

Unable to delete boot environment.

 

  • rm -f /etc/lutab
  • rm -f /etc/lu/ICF.* /etc/lu/INODE.* /etc/lu/vtoc.* 
  • rm -f /etc/lu/.??* 
  • rm -f /etc/lu/tmp/*

 

  • lustatus

 

ERROR: No boot environments are configured on this system

ERROR: cannot determine list of all boot environment names

 

  • swap -l

 

swapfile             dev  swaplo blocks   free

/dev/dsk/c1t0d0s1   32,25     16 16780208 16780208

 

  • cat /etc/vfstab | grep c1t0d0 | awk '{print $1, $3}'

 

/dev/dsk/c1t0d0s1 –

/dev/dsk/c1t0d0s0 /

/dev/dsk/c1t0d0s4 /var

/dev/dsk/c1t0d0s6 /scratch

/dev/dsk/c1t0d0s5 /scswork

/dev/dsk/c1t0d0s3 /usr/vice/cache

 

  • lucreate -c Primary -n Secondary -m /:/dev/dsk/c1t1d0s0:ufs -m /var:/dev/dsk/c1t1d0s4:ufs -m /scratch:/dev/dsk/c1t1d0s6:ufs -m /scswork:/dev/dsk/c1t1d0s5:ufs -m /usr/vice/cache:/dev/dsk/c1t1d0s3:ufs -m -:/dev/dsk/c1t1d0s1:swap

 

Discovering physical storage devices

Discovering logical storage devices

Cross referencing storage devices with boot environment configurations

Determining types of file systems supported

Validating file system requests

Preparing logical storage devices

Preparing physical storage devices

Configuring physical storage devices

Configuring logical storage devices

Analyzing system configuration.

No name for current boot environment.

Current boot environment is named <Primary>.

Creating initial configuration for primary boot environment <Primary>.

The device </dev/dsk/c1t0d0s0> is not a root device for any boot environment; cannot get BE ID.

PBE configuration successful: PBE name <Primary> PBE Boot Device </dev/dsk/c1t0d0s0>.

Comparing source boot environment <Primary> file systems with the file

system(s) you specified for the new boot environment. Determining which

file systems should be in the new boot environment.

Updating boot environment description database on all BEs.

Searching /dev for possible boot environment filesystem devices

                            

Updating system configuration files.

The device </dev/dsk/c1t1d0s0> is not a root device for any boot environment; cannot get BE ID.

Creating configuration for boot environment <Secondary>.

Source boot environment is <Primary>.

Creating boot environment <Secondary>.

Creating file systems on boot environment <Secondary>.

Creating <ufs> file system for </> in zone <global> on </dev/dsk/c1t1d0s0>.

Creating <ufs> file system for </scratch> in zone <global> on </dev/dsk/c1t1d0s6>.

Creating <ufs> file system for </scswork> in zone <global> on </dev/dsk/c1t1d0s5>.

Creating <ufs> file system for </usr/vice/cache> in zone <global> on </dev/dsk/c1t1d0s3>.

Creating <ufs> file system for </var> in zone <global> on </dev/dsk/c1t1d0s4>.

Mounting file systems for boot environment <Secondary>.

Calculating required sizes of file systems for boot environment <Secondary>.

Populating file systems on boot environment <Secondary>.

Checking selection integrity.

Integrity check OK.

Populating contents of mount point </>.

Populating contents of mount point </scratch>.

Populating contents of mount point </scswork>.

Populating contents of mount point </usr/vice/cache>.

Populating contents of mount point </var>.

Copying.

Creating shared file system mount points.

Creating compare databases for boot environment <Secondary>.

Creating compare database for file system </var>.

Creating compare database for file system </usr/vice/cache>.

Creating compare database for file system </scswork>.

Creating compare database for file system </scratch>.

Creating compare database for file system </>.

Updating compare databases on boot environment <Secondary>.

Making boot environment <Secondary> bootable.

Population of boot environment <Secondary> successful.

Creation of boot environment <Secondary> successful.

  • lustatus

Boot Environment           Is       Active Active    Can    Copy     

Name                       Complete Now    On Reboot Delete Status   

-------------------------- -------- ------ --------- ------ ----------

Primary                    yes      yes    yes       no     -        

Secondary                  yes      no     no        yes    -        

 

 



 

Programmers' Guides, Users' Guides, Requirements, Design, Papers, Administration, How-To, Hardware, IOC, Database

 

[SLAC CPE Software Engineering Group][ SLAC Home Page]

 


Created by: Jingchen Zhou, 27-Aug-2003