Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révisionLes deux révisions suivantes |
solaris [2008/11/23 10:38] – gerard | solaris [2011/07/13 14:41] – [Commandes pour changer la configuration du serveur X (Ultra5, 10, SB100)] gerard |
---|
| |
====== Infodocs ====== | ====== Infodocs ====== |
| * PDF en local [[file:///net/fury/donnees/provisoire/logiciels/solaris/47.16/Contents.html|Solaris 10 System Administrator Collection]] |
| * [[http://blogs.sun.com/DanX/entry/solaris_ipv6_tunnel_setup|Solaris IPv6 tunnel setup]] |
* [[http://blogs.sun.com/toddjobson/|Performance and Capacity Planning]] | * [[http://blogs.sun.com/toddjobson/|Performance and Capacity Planning]] |
* Gestion de ressources sous Solaris 10 [[http://daniel.polombo.fr/2008/03/gestion-de-ressources-sous-solaris-10/|Lien externe]], [[http://blogs.sun.com/robertlor/entry/virtualization_and_resource_management_in|Postgres and Solaris Virtualization]], [[http://forum.java.sun.com/thread.jspa?messageID=10171916&tstart=0|Solaris Zones - capped memory??]] | * Gestion de ressources sous Solaris 10 [[http://daniel.polombo.fr/2008/03/gestion-de-ressources-sous-solaris-10/|Lien externe]], [[http://blogs.sun.com/robertlor/entry/virtualization_and_resource_management_in|Postgres and Solaris Virtualization]], [[http://forum.java.sun.com/thread.jspa?messageID=10171916&tstart=0|Solaris Zones - capped memory??]] |
* [[http://www.brandonhutchinson.com/Miscellaneous_Solaris_notes.html|Miscellaneous Solaris notes]] | * [[http://www.brandonhutchinson.com/Miscellaneous_Solaris_notes.html|Miscellaneous Solaris notes]] |
* [[http://prefetch.net/blog/index.php/2008/03/21/findingsetting-nvalias-nvram-obp-settings-from-a-running-solaris-os/|Finding/setting nvalias (nvram) OBP settings from a running Solaris O/S]] | * [[http://prefetch.net/blog/index.php/2008/03/21/findingsetting-nvalias-nvram-obp-settings-from-a-running-solaris-os/|Finding/setting nvalias (nvram) OBP settings from a running Solaris O/S]] |
| |
| |
| |
| |
| |
====== Tips ====== | ====== Tips ====== |
[[http://www.cmi.univ-mrs.fr/UFR/intranet/reseau/solaris-tips.html]] | ===== modifier grub dans opensolaris (boot zfs) ===== |
| Avant le boot zfs, il suffisait de booter sur un cd, de monter la partition ufs contenant le /. Avec zfs, il faut récupérer le pool, et accéder à /rpool/boot/grub/menu.lst |
| |
| Lorsqu'on boote sur le LiveCD, on a: |
| <code> |
| jack@opensolaris:~$ pfexec zpool import |
| pool: rpool |
| id: 7697179275706784463 |
| state: ONLINE |
| status: The pool was last accessed by another system. |
| action: The pool can be imported using its name or numeric identifier and |
| the '-f' flag. |
| see: http://www.sun.com/msg/ZFS-8000-EY |
| config: |
| |
| rpool ONLINE |
| c3d0s0 ONLINE |
| jack@opensolaris:~$ pfexec zpool import -f rpool |
| cannot mount '/opt/jdsbld': failed to create mountpoint |
| cannot mount '/usr/local': failed to create mountpoint |
| jack@opensolaris:~$ zfs list |
| NAME USED AVAIL REFER MOUNTPOINT |
| rpool 17.7G 1.84G 50K /rpool |
| rpool/ROOT 10.5G 1.84G 18K legacy |
| rpool/ROOT/opensolaris 6.37M 1.84G 8.72G / |
| rpool/ROOT/opensolaris-5 196M 1.84G 8.72G / |
| rpool/ROOT/opensolaris-nv 10.3G 1.84G 8.72G / |
| rpool/dump 511M 1.84G 511M - |
| rpool/export 5.51G 1.84G 19K /export |
| rpool/export/home 5.51G 1.84G 24.3M /export/home |
| rpool/export/home/henry 5.49G 1.84G 5.49G /export/home/henry |
| rpool/jdsbld 18K 1.84G 18K /opt/jdsbld |
| rpool/local 719M 1.84G 719M /usr/local |
| rpool/swap 557M 1.84G 557M - |
| </code> |
| /rpool est donc directement accessible: |
| <code> |
| jack@opensolaris:~$ cat /rpool/boot/grub/menu.lst |
| splashimage /boot/grub/splash.xpm.gz |
| background 215ECA |
| timeout 30 |
| default 3 |
| #---------- ADDED BY BOOTADM - DO NOT EDIT ---------- |
| #---------------------END BOOTADM-------------------- |
| |
| title Windows |
| rootnoverify (hd0,0) |
| chainloader +1 |
| |
| # Unknown partition of type 5 found on /dev/rdsk/c3d0p0 partition: 2 |
| # It maps to the GRUB device: (hd0,1) . |
| title opensolaris-5 |
| findroot (pool_rpool,2,a) |
| bootfs rpool/ROOT/opensolaris-5 |
| kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS |
| module$ /platform/i86pc/$ISADIR/boot_archive |
| #============ End of LIBBE entry ============= |
| title opensolaris |
| findroot (pool_rpool,2,a) |
| bootfs rpool/ROOT/opensolaris |
| kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS |
| module$ /platform/i86pc/$ISADIR/boot_archive |
| #============ End of LIBBE entry ============= |
| title opensolaris-nv |
| findroot (pool_rpool,2,a) |
| bootfs rpool/ROOT/opensolaris-nv |
| kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS |
| module$ /platform/i86pc/$ISADIR/boot_archive |
| #============ End of LIBBE entry ============= |
| </code> |
| par contre, pour accéder à passwd/shadow, il faut monter manuellement le dataset zfs correspondant. |
| * http://wiki.genunix.org/wiki/index.php/ZFS_rpool_Upgrade_and_GRUB |
| * http://www.sun.com/bigadmin/content/submitted/zfs_root_clone.jsp |
| |
| |
| ===== Générer un core sur un kernel pour analyse ===== |
| en cas de problème, et qu'on soit obligé de faire un ''break'' (STOP <A>), il vaut mieux générer un core du kernel pour analyse ultérieure à la hotline sun: |
| <code> |
| sc> break -c |
| Are you sure you want to send a break to the system [y/n]? y |
| Enter |
| SC Alert: SC Request to send Break to host. |
| #. to return to ALOM. |
| Debugging requested; hardware watchdog suspended. |
| Type 'go' to resume |
| {1b} ok sync |
| |
| panic[cpu27]/thread=2a101901cc0: sync initiated |
| |
| sched: software trap 0x7f |
| pid=0, pc=0xf0246438, sp=0x2a101900ec1, tstate=0x4400001402, context=0x0 |
| g1-g7: 10528d0, 1, 186c400, 0, 0, 0, 2a101901cc0 |
| |
| 00000000fee79cd0 unix:sync_handler+144 (1822400, 1f, 0, 1, 1, 108d800) |
| %l0-3: 0000000001856e88 000000000188f340 000000000188f000 000000000000017f |
| %l4-7: 0000000001872c00 0000000000000000 000000000186c400 000000000000001f |
| 00000000fee79da0 unix:vx_handler+80 (fee7b958, 182fed0, a, 1822400, 182ffd8, f025a159) |
| %l0-3: 000000000182ffd8 0000000000000000 0000000000000001 0000000000000001 |
| %l4-7: 0000000001822c00 00000000f0200000 0000000001000000 000000000101b59c |
| 00000000fee79e50 unix:callback_handler+20 (fee7b958, f01221c0, 0, 0, 0, 0) |
| %l0-3: 0000000000000016 00000000fee79701 00000000f0200000 00000000fff78000 |
| %l4-7: 0000000001009008 0000000000000000 0000000000000000 00000000f01237f0 |
| |
| syncing file systems... done |
| dumping to /dev/md/dsk/d1, offset 1718288384, content: kernel |
| 5% done |
| |
| |
| </code> |
| la commande sync déclenche le dump du kernel à l'endroit prévu |
| |
| ===== utilisation de snoop pour debuger un client dhcp ===== |
| [[http://docs.sun.com/app/docs/doc/806-5529/6jehkcs8f?a=view|Troubleshooting DHCP Client Configuration Problems]] |
| |
| ===== autres outils ===== |
| * [[http://www.informit.com/articles/printerfriendly.aspx?p=1161980|tools to assist in diagnosing and determining system configuration, development, and performance problems]], extrait du livre "Solaris Application Programming |
| |
| ===== réparer un mirroir SVM ===== |
| * [[http://docs.sun.com/app/docs/doc/816-4520/6manpieqm?l=en&a=view|How to Recover a System Using a Solaris Volume Manager Configuration]] |
| * [[http://sunsolve.sun.com/search/document.do?assetkey=1-62-202794-1|202794 : Solaris[TM] Volume Manager Software and Solstice DiskSuite[TM] Software: Mounting Metadevices ]] |
| * [[http://sunsolve.sun.com/search/document.do?assetkey=1-61-207913-1|207913: Solstice DiskSuite[TM] software - Unable to boot from a DiskSuite-controlled system disk]] |
| |
| ---- |
| |
| ===== Anciennes notes ===== |
| |
| |
| * [[http://www.cmi.univ-mrs.fr/UFR/intranet/reseau/solaris-tips.html]] |
| |
| |
===== Sauver un fs en cours d'utilisation ===== | ===== Sauver un fs en cours d'utilisation ===== |
</code> | </code> |
| |
====== Commandes pour changer la configuration du serveur X (Ultra5, 10, SB100) ====== | ===== Ajouter un menu dans gdm ===== |
| * [[http://fluxbox.sourceforge.net/docs/en/faq.php#gdm|How do I add fluxbox to my GDM sessions menu]] |
| * [[http://library.gnome.org/admin/gdm/stable/configuration.html.en|GNOME Display Manager Reference Manual]] |
| * [[http://www.ezunix.org/index.php?title=Configure_automatic_login_on_Solaris_and_OpenSolaris_with_GDM|utilisation de .Xclient]] |
| |
| ====== Commandes pour changer la configuration du serveur X (Ultra5, 10, SB100) ====== |
| <code> |
m64config -propt # pour connaitre la configuration actuelle | m64config -propt # pour connaitre la configuration actuelle |
m64config -res \? # les configs possibles | m64config -res \? # les configs possibles |
/dev/fbs/m640 SUNWm64_config | /dev/fbs/m640 SUNWm64_config |
| |
| </code> |
| |
====== Une comparaison des outils entre Linux et Solaris ====== | ====== Une comparaison des outils entre Linux et Solaris ====== |
====== SFE ====== | ====== SFE ====== |
| |
* [[http://opensolaris.org/os/project/jds/contributing/building/#jds-build-solaris-packages|Building Solaris Packages]] | * [[http://opensolaris.org/os/project/jds/contributing/building/#jds-build-solaris-packages|Building Solaris Packages]] ou [[http://sourceforge.net/apps/mediawiki/pkgbuild/index.php?title=Pkgbuild_on_OpenSolaris|Pkgbuild on OpenSolaris]] |
| |
| |
| |
===== le fichier .pkgtoolrc ===== | ===== le fichier .pkgtoolrc ===== |
| |
| |
| |
</code> | </code> |
installra les packages dans /local/apps/test1234 (Attention, il faut sourcer ce fichier à chaque modif, en se reloggant par exemple) | installra les packages dans /local/apps/test1234 (Attention, il faut sourcer ce fichier à chaque modif, en se reloggant par exemple) |
| |
| ====== SourceJuicer ====== |
| * [[http://blogs.sun.com/jucr/entry/source_juicer_screencast|demo]] |
| * [[http://blogs.sun.com/weber/entry/contribute_to_opensolaris_sourcejuicer|webcast]] |
| * [[http://blogs.sun.com/simons/entry/how_to_contribute_a_package|Lien externe]] |
| |
====== SVM ====== | ====== SVM ====== |
===== Ressources ===== | ===== Ressources ===== |
* [[http://users.cs.fiu.edu/~tho01/psg/sol.html|Volume Management]] | * [[http://users.cs.fiu.edu/~tho01/psg/sol.html|Volume Management]] |
| |
| |
| |