samedi déc. 20, 2008

Resolve OpenSolaris 2008.11 shutdown too long time

There is a bug  in OpenSolaris 2008.11, that make SMF hang for a few minutes before put SMF gdm into the maintance mode when shutdow OpenSolaris.


The fix will be available in the next OpenSolaris Release, but you can simply resolve it now by yourself. (fix is now available in snv 105)


As a root user, make a bakup of gmd script file
# cp -p /usr/sbin/gdm /usr/sbin/gdm-BUG-4887

And then edit /usr/sbin/gdm script file with your best editor (vim) and then remove all the following lines:
# GConf now needs D-Bus, so to launch AT programs it is necessary for D-Bus to
# be started with gdm.  We start D-Bus as the "gdm" user.  We do not do not
# need root privilege for this since the GUI and AT programs all run as the
# "gdm" user.
#
eval `/usr/bin/su - gdm -c /usr/bin/dbus-launch --sh-syntax --exit-with-session`
export DBUS_SESSION_BUS_ADDRESS
export DBUS_SESSION_BUS_PID


Then restart OpenSolaris

mercredi nov. 05, 2008

Upgrade OpenSolaris from snv_99 to snv_100

Today I have successfully upgrade my OpenSolaris desktop to snv_100. The first image-update attempt has failed and I was unable to reboot on the last OpenSolaris release. The pkg image-update has return "A system error [Errno 12] Not enough space was caught executing for bootadm", but the zfs list command show more than 8Go of free space in rpool ! So I used this procedure to upgrade it to snv_100:


# pfexec pkg refresh
# BUILD=`uname -v | sed s/snv_//`  
# pfexec pkg install SUNWipkg-AT-0.5-DOT-11-0.${BUILD}
# pfexec pkg install entire-AT-0.5-DOT-11-0.${BUILD}
# pfexec pkg image-update
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                641/641 11879/11879 322.04/322.04
PHASE                                        ACTIONS
Removal Phase                              5124/5124
Install Phase                              8309/8309
Update Phase                             13859/13859
PHASE                                          ITEMS
Reading Existing Index                           9/9
Indexing Packages                            641/641
pkg: A system error [Errno 12] Not enough space was caught executing /sbin/bootadm update-archive
-R /tmp/tmp01Fuv- A clone of opensolaris-5 exists and has been updated and activated. On next boot
the Boot Environment opensolaris-6 will be mounted on '/'. Reboot when ready to switch to this
updated BE.


Just Re-run bootadm


# beadm list
BE            Active Mountpoint Space  Policy Created         
--            ------ ---------- -----  ------ -------         
opensolaris-3 -      -          38.22M static 2008-09-22 14:45
opensolaris-4 -      -          14.08M static 2008-10-24 17:37
opensolaris-5 N      /          20.45M static 2008-10-31 14:05
opensolaris-6 R      -          11.84G static 2008-11-05 15:54
# beadm mount opensolaris-6 /a
# bootadm update-archive -f -R /a
Creating boot_archive for /a
updating /a/platform/i86pc/boot_archive
updating /a/platform/i86pc/amd64/boot_archive
# beadm unmount opensolaris-6


Then Reboot to last opensolaris release.


# uname -a
SunOS opensolaris 5.11 snv_100 i86pc i386 i86pc Solaris
# beadm list
BE            Active Mountpoint Space  Policy Created          
--            ------ ---------- -----  ------ -------          
opensolaris-3 -      -          98.04M static 2008-09-22 14:45
opensolaris-4 -      -          14.08M static 2008-10-24 17:37
opensolaris-5 -      -          97.79M static 2008-10-31 14:05
opensolaris-6 NR     /          12.20G static 2008-11-05 15:54


About

Jerome Blanchet

Search

Categories
Archives
« avril 2014
lun.mar.mer.jeu.ven.sam.dim.
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today