Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente |
solaris [2008/12/17 12:55] – gerard | solaris [2017/08/25 09:56] (Version actuelle) – modification externe 127.0.0.1 |
---|
====== Distributions utilisées sur les machines du labo ====== | ====== Distributions utilisées sur les machines du labo ====== |
| depuis 2011, deux machines sont maintenues |
| * antigone [[reserve:opensolaris|Solaris 11 Express]] (ex [[reserve:opensolaris]]) |
| * fury Solaris 10 |
| |
| |
* Solaris <del>8 et</del> 10 | * Solaris <del>8 et</del> 10 |
* [[http://opensolaris.org/os/downloads/|Solaris Express]] sur portables (dellgh) | * [[http://opensolaris.org/os/downloads/|Solaris Express]] sur portables (dellgh) |
* [[reserve:Opensolaris]] (dite Indiana) sur ultra20 et prtables delljm et dellcp | * [[reserve:Opensolaris]] (dite Indiana) sur ultra20 et portables delljm et dellcp |
* [[http://www.genunix.org|nexenta]] testée puis deinstallée | * [[http://www.genunix.org|nexenta]] testée puis de-installée |
| |
| |
| |
====== 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 ====== |
| ===== 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 ===== | ===== 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: | 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> | </code> |
la commande sync déclenche le dump du kernel à l'endroit prévu | 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 ===== | ===== réparer un mirroir SVM ===== |
| |
* [[http://www.cmi.univ-mrs.fr/UFR/intranet/reseau/solaris-tips.html]] | * [[http://www.cmi.univ-mrs.fr/UFR/intranet/reseau/solaris-tips.html]] |
| |
| |
| |
</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]] |
| |
| |
| |