Systemverwaltung Solaris 10
Transcrição
Systemverwaltung Solaris 10
Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Systemverwaltung Solaris 10 Rolf M Dietze Aug-2008 Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automounter, autoFS OBP zfs Systemboot Sparc-Solaris Systemboot x86/x64-Solaris Solaris Installation, Nevada Build 95 Service Management Facility Loopback File Driver Device Filesystem Graphiken, Tabellen und Übersichten, mit freundlicher Genehmigung des Springer-Verlages aus: OpenSolaris für Anwender Administratoren und Rechenzentren, Dietze, Heuser, Schilling, März 2006. LABs, Copyrighted: Rolf Diezte Einzelne Folien mit freundlicher Genehmigung des Sprinter-Verlages aus Opensolaris für Anwender, Administratoren und Rechenzentern, 5/2008 Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Administration von Festplatten Administration von Festplatten Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun s0 s1 s3 s4 data s5 data s6 BBLK SBLK data BBLK data BBLK data SBLK data BBLK data BBLK data SBLK data BBLK data BBLK SBLK data BBLK data BBLK SBLK data BBLK Solaris Disklabel data data s7 Label HD MBR Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun BBLK data data data BBLK data SBLK data BBLK data BBLK data SBLK data BBLK SBLK data BBLK data BBLK SBLK data BBLK PC Disklabel data Unix−Label s0 s1 s6 PC−Label HD MBR Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun format # format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c1t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107> /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w500507620743b44e,0 1. c1t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107> /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100002037f8a403,0 2. c3t0d0 <SEAGATE-ST39102FCSUN9.0G-0D29-8.43GB> /pci@8,700000/pci@1/SUNW,qlc@4/fp@0,0/ssd@w2200002037260fe2,0 3. c3t1d0 <SEAGATE-ST39102FCSUN9.0G-1129-8.43GB> /pci@8,700000/pci@1/SUNW,qlc@4/fp@0,0/ssd@w22000020371b6762,0 - hit space for more or s to select ...... Specify disk (enter its number): 3<CR> selecting c3t1d0 Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun format FORMAT MENU: disk type partition current format repair label analyze defect backup verify inquiry volname !<cmd> quit format> Rolf M Dietze: Systemverwaltung Solaris 10 - select a disk select (define) a disk type select (define) a partition table describe the current disk format and analyze the disk repair a defective sector write label to the disk surface analysis defect list management search for backup labels read and display labels show vendor, product and revision set 8-character volume name execute <cmd>, then return Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun format format> inq Vendor: SEAGATE Product: ST39102FCSUN9.0G Revision: 1129 format> cur Current Disk = c3t1d0 <SEAGATE-ST39102FCSUN9.0G-1129-8.43GB> /pci@8,700000/pci@1/SUNW,qlc@4/fp@0,0/ssd@w22000020371b6762,0 format> Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun format format> p PARTITION MENU: 0 - change ‘0’ partition 1 - change ‘1’ partition 2 - change ‘2’ partition 3 - change ‘3’ partition 4 - change ‘4’ partition 5 - change ‘5’ partition 6 - change ‘6’ partition expand - expand label to use whole disk select - select a predefined table modify - modify a predefined partition table name - name the current table print - display the current table label - write partition map and label to the disk !<cmd> - execute <cmd>, then return quit Rolf M partition> Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun format partition> p Current partition table (original): Total disk sectors available: 17672849 + 16384 (reserved sectors Part Tag 0 usr 1 unassigned 2 unassigned 3 unassigned 4 unassigned 5 unassigned 6 unassigned 8 reserved Flag wm wm wm wm wm wm wm wm partition> Rolf M Dietze: Systemverwaltung Solaris 10 First Sector 34 0 0 0 0 0 0 17672850 Size 8.43GB 0 0 0 0 0 0 8.00MB Last Sector 17672849 0 0 0 0 0 0 17689233 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun format partition> 0 Part Tag 0 usr Flag wm First Sector 34 Size 8.43GB Last Sector 17672849 Enter partition id tag[usr]: ? Expecting one of the following: (abbreviations ok): unassigned boot root swap usr backup stand var home alternates reserved Enter partition id tag[usr]: Enter partition permission flags[wm]: Enter new starting Sector[34]: Enter partition size[8388608b, 8388641e, 4096mb, 4gb, 0tb]: 2g partition> Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun format partition> p Current partition table (original): Total disk sectors available: 17672849 + 16384 (reserved sectors Part Tag 0 usr 1 unassigned 2 unassigned 3 unassigned 4 unassigned 5 unassigned 6 unassigned 8 reserved Flag wm wm wm wm wm wm wm wm partition> Rolf M Dietze: Systemverwaltung Solaris 10 First Sector 34 0 0 0 0 0 0 17672850 Size 2.00GB 0 0 0 0 0 0 8.00MB Last Sector 4194337 0 0 0 0 0 0 17689233 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun format partition> 1 Part Tag 1 unassigned Flag wm First Sector 0 Size 0 Last Sector 0 Enter partition id tag[usr]: ? Expecting one of the following: (abbreviations ok): unassigned boot root swap usr backup stand var home alternates reserved Enter partition id tag[usr]: Enter partition permission flags[wm]: Enter new starting Sector[4194338]: Enter partition size[0b, 4194337e, 0mb, 0gb, 0tb]: 2g partition> Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun format partition> p Current partition table (unnamed): Total disk sectors available: 17672849 + 16384 (reserved sectors Part Tag Flag First Sector Size Last Sector 0 usr wm 34 2.00GB 4194337 1 usr wm 4194338 2.00GB 8388641 2 unassigned wm 0 0 0 3 usr wm 8388642 2.00GB 12582945 4 usr wm 12582946 2.00GB 16777249 5 unassigned wm 0 0 0 6 unassigned wm 0 0 0 8 reserved wm 17672850 8.00MB 17689233 partition> lab Ready to label disk, continue? y partition> Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun newfs, fmthard # newfs /dev/rdsk/c3t1d0s2 /dev/rdsk/c3t1d0s2: I/O error # newfs /dev/rdsk/c3t1d0s1 newfs: construct a new file system /dev/rdsk/c3t1d0s1: (y/n)? y Warning: 2048 sector(s) in last cylinder unallocated /dev/rdsk/c3t1d0s1: 4194304 sectors in 683 cylinders of 48 trac 2048.0MB in 43 cyl groups (16 c/g, 48.00MB/g, 11648 i/g) super-block backups (for fsck -F ufs -o b=#) at: 32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 7874 3248288, 3346720, 3445152, 3543584, 3642016, 3740448, 3838880, 4035744, 4134176 # mount /dev/dsk/c3t1d0s1 /mnt # df -h .... /dev/dsk/c3t1d0s1 1.9G 2.0M Rolf M Dietze: Systemverwaltung Solaris 10 1.9G 1% /mnt Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun prtvtoc/fmthard # prtvtoc /dev/rdsk/c3t1d0s2 * /dev/rdsk/c3t1d0s2 partition map * 512 bytes/sector * Dimensions: * 17689267 sectors * 17689200 accessible sectors .... * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 4 00 34 4194304 4194337 1 4 00 4194338 4194304 8388641 3 4 00 8388642 4194304 12582945 4 4 00 12582946 4194304 16777249 8 11 00 17672850 16384 17689233 Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun fmthard # prtvtoc /dev/rdsk/c3t1d0s2 | fmthard -s - /dev/rdsk/c3t2d0s2 fmthard: New volume table of contents now in place. Mit Schleife über alle Platten an einem Controler: # for i in /dev/rdsk/c2t*d0s2 > do > prtvtoc /dev/rdsk/c3t1d0s2 | fmthard > done fmthard: New volume table of contents fmthard: New volume table of contents .... fmthard: New volume table of contents Rolf M Dietze: Systemverwaltung Solaris 10 -s - /dev/rdsk/$i now in place. now in place. now in place. Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun /etc/vfstab #device device #to mount to fsck # fd /proc /dev/dsk/c1t0d0s1 /dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 /dev/dsk/c1t0d0s6 /dev/rdsk/c1t0d0s6 /dev/dsk/c1t0d0s5 /dev/rdsk/c1t0d0s5 /devices sharefs ctfs objfs swap - Rolf M Dietze: Systemverwaltung Solaris 10 mount point FS type fsck pass mount mount at boot options /dev/fd /proc / /export /opt /devices /etc/dfs/sharetab /system/contract /system/object /tmp fd proc swap ufs ufs ufs devfs sharefs ctfs objfs tmpfs 1 2 2 - no no no no yes yes no no no no yes - Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun FS Check # fsck /dev/rdsk/c3t1d0s1 ** /dev/rdsk/c3t1d0s1 ** Last Mounted on /mnt ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3a - Check Connectivity ** Phase 3b - Verify Shadows/ACLs ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cylinder Groups 2 files, 9 used, 2031774 free (14 frags, 253970 blocks, 0.0% fra ***** FILE SYSTEM WAS MODIFIED ***** Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Softraid Softraid, traditional Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SDS Kommandos metainit d102 1 3 c1t0d0s0 c1t1d0s0 c1t2d0s0 ^ ^ ^ ^ ^ ^ | | | Platte 1 Platte 2 Platte 3 | | Anzahl der Platten im Stripe | Anzahl der Platten im Concat Metadevicename Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SDS Kommandos metainit ^ Kommando d101 3 1 c1t0d0s0 1 c1t1d0s0 1 c1t2d0s0 1 ^ ^ ^ ^ ^ ^ | | | Platte 1 Platte 2 Platte 3 | | Anzahl der Platten im Stripe | Anzahl der Platten im Concat Metadevicename Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SDS Kommandos I metainit(1M): Erzeugen von Metadevices I metaclear(1M): Löschen von Metadevices I metareplace(1M): Ersetzen von Devices I metatach(1M): Anhaengen eines Submirrors I metadetach(1M): Abhaengen eines Submirrors I metadb(1M): Adminsitration der Statedatabases Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SDS Kommandos # metadb -c 3 -a -f /dev/rdsk/c4t6d0s0 # metadb flags a u a u a u first blk 16 8208 16400 Rolf M Dietze: Systemverwaltung Solaris 10 block count 8192 8192 8192 /dev/dsk/c4t6d0s0 /dev/dsk/c4t6d0s0 /dev/dsk/c4t6d0s0 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SDS Kommandos metainit metainit metainit d11 1 1 c2t0d0s0 d12 1 1 c3t1d0s0 d10 -m d11 d12 Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SDS Kommandos #metastat d10 d10: Mirror Submirror 0: d11 State: Okay Submirror 1: d12 State: Resyncing Resync in progress: 55 % done Pass: 1 Read option: roundrobin (default) Write option: parallel (default) Size: 12579273 blocks (6.0 GB) d11: RAID State: Okay Interlace: 1024 blocks Size: 12546954 blocks (6.0 GB) Original device: Size: 12549120 blocks (6.0 GB) Device Start Block Dbase c2t0d0s0 13841 No d11: RAID State: Okay Interlace: 1024 blocks Size: 12546954 blocks (6.0 GB) Original device: Size: 12549120 blocks (6.0 GB) Device Start Block Dbase c3t1d0s0 13841 No ..... Rolf M Dietze: Systemverwaltung Solaris 10 State Reloc Okay Yes Hot Spare State Reloc Okay Yes Hot Spare Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SDS Bootmirror # statedatabases mddb01 -c 3 c0t0d0s7 mddb02 -c 3 c0t1d0s7 # / d10 -m d11 d11 1 1 c0t0d0s0 d12 1 1 c0t1d0s0 # swap d20 -m d21 d21 1 1 c0t0d0s1 d22 1 1 c0t1d0s1 # /export d30 -m d31 d31 1 1 c0t0d0s3 d32 1 1 c0t1d0s3 Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SDS Bootmirror 1. metadb -af mddb01 2. metadb -af mddb02 3. metainit -af 4. metaroot d10 Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SDS Bootmirror #device #to mount # fd /proc /dev/md/dsk/d10 /dev/md/dsk/d20 ... swap /dev/md/dsk/d30 ... device to fsck mount point FS type fsck pass mount at boot /dev/md/rdsk/d10 - /dev/fd /proc / - fd proc ufs swap 1 - no no no no /dev/md/rdsk/d30 /tmp /export tmpfs ufs 2 yes no Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SDS Bootmirror zunächst ein reboot!! metattach d10 d12 metattach d20 d22 metattach d30 d32 Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Simple Tools Einfache Tools zur Übersicht Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Systemibelastung, prstat(1M) PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/N 1285 root 3912K 3176K cpu1 59 0 0:00:00 0.1% prstat/1 442 root 7632K 5976K sleep 59 0 0:00:19 0.0% intrd/1 133 root 7248K 4040K sleep 59 0 0:00:03 0.0% nscd/32 145 root 5432K 4152K sleep 59 0 0:00:07 0.0% picld/9 209 root 2056K 1376K sleep 59 0 0:00:00 0.0% cron/1 230 root 4072K 2040K sleep 59 0 0:00:00 0.0% hald-runn 268 daemon 2976K 1904K sleep 60 -20 0:00:00 0.0% nfs4cbd/2 124 daemon 7776K 4696K sleep 59 0 0:00:00 0.0% kcfd/3 300 root 1744K 1024K sleep 59 0 0:00:00 0.0% utmpd/1 216 root 3440K 1736K sleep 59 0 0:00:00 0.0% dbus-daem 290 root 2464K 1344K sleep 59 0 0:00:00 0.0% sac/1 136 root 2264K 1656K sleep 59 0 0:00:00 0.0% powerd/3 Total: 42 processes, 212 lwps, load averages: 0.00, 0.00, 0.00 Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun CPU Belastung # uptime 12:21pm up 22:46, # mpstat 1 2 CPU minf mjf xcal 0 1 0 2 1 2 0 2 CPU minf mjf xcal 0 0 0 1 1 7 0 1 Rolf M Dietze: Systemverwaltung Solaris 10 1 user, intr ithr 268 65 12 7 intr ithr 261 58 12 8 load average: 0.00, 0.00, 0.00 csw icsw migr smtx 99 0 5 1 111 0 5 0 csw icsw migr smtx 104 0 4 0 89 0 5 0 srw syscl 0 52 0 37 srw syscl 0 0 0 49 usr 0 0 usr 0 0 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun I/O Belastung # iostat -xM 1 device md0 md1 ramdisk1 sd21 r/s 0.0 0.0 0.0 0.0 device md0 md1 ramdisk1 sd21 r/s 0.0 0.0 0.0 0.0 extended device statistics w/s Mr/s Mw/s wait actv 0.4 0.0 0.0 0.0 0.2 0.5 0.0 0.1 0.0 0.1 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 extended device statistics w/s Mr/s Mw/s wait actv 0.4 0.0 0.0 0.0 0.2 0.5 0.0 0.1 0.0 0.1 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 Rolf M Dietze: Systemverwaltung Solaris 10 svc_t 596.3 128.3 0.0 0.0 %w 0 0 0 0 %b 0 0 0 0 svc_t 596.3 128.3 0.0 0.0 %w 0 0 0 0 %b 0 0 0 0 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun User 0 1 rmd@mirage pts/20 ~ 1> w 12:30pm up 4 day(s), 12:51, 7 users, load average: 0.18, 0.18, User tty login@ idle JCPU PCPU what theuser dtlocal Fri10am 8:58 35 35 /usr/lib/ospm/os theuser pts/5 Fri10am 25:19 1:07 1:05 tcsh rrother dtlocal Fri12pm 8:58 12 12 /usr/lib/ospm/os rmd dtlocal Fri12pm 8:58 rlogin arietis rmd pts/7 Fri12pm 4days rlogin arietis rmd pts/8 Fri12pm 4days 1 -tcsh rmd pts/9 Fri12pm 4days rlogin arietis rmd pts/10 Fri12pm 3days tcsh Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun User 0 1 rmd@mirage pts/20 ~ 2> who theuser dtlocal Aug 8 10:04 theuser pts/5 Aug 8 10:11 rrother dtlocal Aug 8 12:05 rmd dtlocal Aug 8 12:36 rmd pts/7 Aug 8 12:36 rmd pts/8 Aug 8 12:36 rmd pts/9 Aug 8 12:37 rmd pts/10 Aug 8 12:37 rrother pts/11 Aug 8 14:03 theuser pts/14 Aug 11 10:39 rmd pts/15 Aug 11 16:23 Rolf M Dietze: Systemverwaltung Solaris 10 (:2) (:2.0) (:4) (:5) (:5.0) (:5.0) (:5.0) (:5.0) (:4.0) (:2.0) (arietis) Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun tty, Prozesse 0 1 rmd@mirage pts/20 ~ 3> tty /dev/pts/20 0 1 rmd@mirage pts/20 ~ 3> ps PID TTY TIME CMD 11660 pts/20 0:00 tcsh 11667 pts/20 0:00 ps Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Prozesse 0 1 rmd@mirage pts/20 ~ 5> ps -ef|more UID PID PPID C STIME TTY TIME CMD root 0 0 0 Aug 07 ? 0:02 sched root 1 0 0 Aug 07 ? 0:01 /sbin/init root 2 0 0 Aug 07 ? 0:00 pageout root 3 0 1 Aug 07 ? 15:27 fsflush root 381 7 0 Aug 07 ? 0:00 /usr/lib/saf/sac -t 300 root 7 1 0 Aug 07 ? 0:08 /lib/svc/bin/svc.startd root 9 1 0 Aug 07 ? 0:27 /lib/svc/bin/svc.configd daemon 345 1 0 Aug 07 ? 0:01 /usr/lib/nfs/nfsmapid daemon 351 1 0 Aug 07 ? 0:00 /usr/lib/nfs/nfs4cbd root 440 384 0 - ? 0:00 <defunct> root 133 1 0 Aug 07 ? 0:00 /usr/lib/power/powerd daemon 125 1 0 Aug 07 ? 0:01 /usr/lib/crypto/kcfd .... Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Benutzerverwaltung Lokale Benutzerverwaltung Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Benutzerverwaltung I /etc/passwd User-ID, Name, Heimatverzeichnis, Startprogramm I /etc/shadow Passwortfile I /etc/group Gruppenzugehöhrigkeit I Homedirectory Verzeichnis, in dem der User Arbeiten kann, auf per NFS Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Benutzerverwaltung, Einrichtung I I Per Kommando: useradd/userdel/usermod Manuell: 1. Eintrag in /etc/passwd erstellen 2. Eintrag in /etc/group erstellen 3. /etc/shadow-Eintrag mit dem Kommando pwconv(1M) erstellen 4. Homedirectory erstellen und per chmod übereignen I Testen!! Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Benutzerverwaltung, /etc/passwd guest:x:200:200:Gast Benutzer:/home/guest:/bin/sh 1 2 3 4 5 6 7 1 2 3 4 5 6 7 Benutzername (username) Passwort (x: Referenz auf /etc/shadow) Benutzernummer (UserID, uid) Gruppennummer (GroupID, gid) Gecos-Field,1 Beschreibung von Name, Telephon, Raum, . . . Pfad zum Homedirectory Erstes auszuführendes Programm nach erfolgtem Login 1 General Electric Comprehensive Operating System Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Benutzerverwaltung, /etc/shadow user:password:lastchg: min:max:warn: inactive:expire:flag 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 Benutzername (aus der passwd, Kolumne 1) Verschlüsseltes Passwort oder Status Letzte Änderung in der Epoche Minimaler Zeitraum in Tagen zwischen einer Passwortänderung Maximale Anzahl in Tagen für die Gültigkeit eines Passworts Warnperiode: Angabe in Tagen vor Ungültigkeit des Passworts Anzahl der Tage, die ein Useraccount inaktiv sein kann Tag, ab dem ein Benutzerzugang gesperrt wird Nicht benutzt Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Benutzerverwaltung, /etc/shadow Status LK NL Feld 2 *LK* NP NP UN PS leer ungültig <Passwort> PS Feld 3 0 Rolf M Dietze: Systemverwaltung Solaris 10 Bedeutung gesperrt Für interaktiven login gesperrt, cron/at/batch jobs freigegeben no password no login Gültiges verschlüsseltes Passwort Benutzer muß das Passwort beim ersten login ändern. Kommando passwd -l <username> passwd -n <username> passwd -d <username> editor passwd <username> passwd -f <username> Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Benutzerverwaltung, /etc/group daemon::12:root,daemon 1 2 3 4 1 2 3 4 Gruppenname Gruppenpasswort Gruppennummer (GroupID, gid). Benutzer, die dieser Gruppe zugeordnet sind (kommaseparierte Liste) Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Network Filesystem, NFS Network Filesystem, NFS 2 Nitemare Filesystem? Rolf M Dietze: Systemverwaltung Solaris 10 2 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun NFS Server Client lokal sichtbares Filesystem Client FS−IO VFS VFS Serverlayer Clientlayer RPC/XDR RPC/XDR Netzwerk Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun NFS Server Client 3 statd 5 lockd 6 file Rolf M Dietze: Systemverwaltung Solaris 10 Applikation statd 2 4 1 lockd Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun autoFS Automounter Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun autoFS / usr bin etc local bin man Rolf M Dietze: Systemverwaltung Solaris 10 überwachter Mountpunkt home Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun autoFS / usr bin home etc local bin Rolf M Dietze: Systemverwaltung Solaris 10 man ufa01 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun autoFS / etc usr bin local bin net home asv1 ufa01 man asv2 export application tetex Rolf M Dietze: Systemverwaltung Solaris 10 gimp export images data labfiles images swpkg Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun autoFS, /etc/auto master Allgemeines Format einer Automountermap: key -Mountoptions nfs-Server:Serverpath Options Master-Map: # # Master map for automounter # +auto_master /net -hosts /home auto_home Rolf M Dietze: Systemverwaltung Solaris 10 -nosuid,nobrowse -nobrowse Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun autoFS, /etc/auto home # # Home directory map for automounter # +auto_home svw01 arietis:/export/home/svw01 svw02 arietis:/export/home/svw02 svw03 arietis:/export/home/svw03 svw04 arietis:/export/home/svw04 svw05 arietis:/export/home/svw05 Vereinfachung: * arietis:/export/home/& Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun OBP Open Boot PROM Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun OBP Basics I I I I I I I I I I I I I OBP, standardisiertes “BIOS” Forth-basiert Kommandozeileninterface Lowlevel Gerätetreiber Abbildung der Gerätekomponenten in Devicetree Variablensektion (Voreinstellung fuer Boot etc.) Diverse Diag-, Test- und Probe-Routinen PCI 2.0-Karten: OBP-Forth Code PCI 1-Karten: kein OBP, PC-BIOS-Extensions low-cost PCI-Karten: HW-Interface PCI-2, SW-Interface PCI-1 vom OBP erkannte PCI-Karten: Bootfähig OBP enthält u.a. UFS-Reader, TFTP, DHCP NVRAM Extension für Variablen, eigene Programme etc. Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun OBP bei Sun Systemen I Onboard bei Single-Domain Sun-Systemen (U1, U2, UE250, U5/10, U20, U30, U60, UE250, UE450, UE420, SF240, SF280R, SF 440, SF480R .. . . ) I Im ersten I/O-Board bei Sun-Systemen mit mehreren I/O-Boards (UE 3500/4500/5500/6500 und Vorgänger ohne FC-Controler) I Wird geladen bei partitionierbaren Sun-Systemen (Domains/LDoms etc.) (UE10000, SF3800..6800, SF12/15k, SF20/25k, FJS...) I Andere Hersteller: IBM, Apple (PPC), HP, OLPC-Projekt (vgl. IBM-LPAR für AIX/Linux) Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun OBP, First Steps Bannerpage nach POST: UltraAX-MP+ WorkServer (4 X UltraSPARC-II 480MHz), No Keyboard OpenBoot 3.10.50 ME, 4096 MB memory installed, Serial #12890932. Ethernet address 8:0:20:c4:b3:34, Host ID: 80c4b334. {0} ok Anzeige der Diagnoseergebnisse der POST: {0} ok show-post-results Status 0=Pass, Non-Zero=Fail (%o0): 0 Message String (%o1): POST Passed Board Descriptor (%o2): 19fffff0a511111 {0} ok Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Einige OBP-Kommandos boot [device] Boot der Maschine -r Rekonfigurationsboot -v Verbose -m Milestone printenv Auflistung der Variablen setenv Setzen einer Variablen set-defaults Rücksetzen aller Variablen devalias Bearbeitung von Devicealiases nvalias Bearbeitung von Devicealiases nvstore Zurückschreiben einer OBP-Modifikation probe-scsi Suche nach scsi-Geräten (systemabhängig) probe-fcal Suche nach fcal-Geräten (systemabhängig) probe-ide Suche nach ide-Platten (systemabhängig) Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Einige OBP-Kommandos Auflistung aller Kommandos, die ein vorgegebenes Pattern entahlten: {0} ok sifting boot (f0058268) (f003c0c8) (f0028df4) (f0028dcc) (f0028dac) (f0028d7c) {0} ok In vocabulary forth patchboot (f004858c) reboot-info-pa boot (f003c080) $boot null-get-reboot-info get-reboot-info save-reboot-info null-save-reboot-info (f0028d34) reboot? Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Anzeigen der NVRAM Parameterbelegung {0} ok printenv Variable Name tpe-link-test? scsi-initiator-id keyboard-click? ....... fcode-debug? output-device input-device load-base boot-command auto-boot? watchdog-reboot? diag-file diag-device boot-file boot-device local-mac-address? ansi-terminal? silent-mode? use-nvramrc? nvramrc ....... hardware-revision last-hardware-update diag-switch? {0} ok Value Default Value true 7 false true 7 false false screen keyboard 16384 boot true false false screen keyboard 16384 boot true false net net disk net true true false false disk net false true false false false false Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Häufig referenzierte NVRAM-Parameter Variable Name pci-probe-list ttya-mode mfg-mode diag-level output-device input-device boot-command auto-boot? watchdog-reboot? diag-file diag-device boot-file boot-device local-mac-address? use-nvramrc? Rolf M Dietze: Systemverwaltung Solaris 10 Default Value e0123 9600,8,n,1,off max screen keyboard boot true false net disk net true false Bedeutung Probereihenfolge für PCI-Systeme Porteinstellungen 2ter serieller Po Dauertest: reset-test-reset-test.... Umfang der Selbsttests Konsol-Eingabegerät Konsol-Ausgabegerät boot-Aufruf Automatischer Boot nach dem Ei Auto-Boot nach Watchdogreset Bootfile bei diag-switch?=true Bootdevice bei diag-switch?=true Bootfile bei diag-switch?=false Bootdevice bei diag-switch?=false Eigene MAC-Adresse per IP-Interf Soll nvram-Code ausgeführt werde Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Arbeiten mit (Boot)-Aliaseinträgen Beispiel Bootpfad bei SBus-Maschinen: /sbus/SUNW,fas@e,8800000/sd@0,0 Beispielbootpath bei einer PCI-Maschine mit fcal-Platte: /pci@1f,4000/scsi@3/fp@0,0/ses@w5080020000048bab,0 Boot einer SBus-Maschine mit expliziter Angabe: {0} ok boot /sbus/SUNW,fas@e,8800000/sd@0,0 Explizite Bootangabe bei PCI-System mit FCAL-Platten: {0} ok /pci@1f,4000/scsi@3/fp@0,0/ses@w5080020000048bab,0 Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Auflisten der Devicealiases {0} ok devalias screen net disk cdrom tape tape1 tape0 disk6 disk5 disk4 disk3 disk2 disk1 disk0 scsi floppy ttyb ttya keyboard! keyboard name /SUNW,ffb@1e,0 /sbus/SUNW,hme@e,8c00000 /sbus/SUNW,fas@e,8800000/sd@0,0 /sbus/SUNW,fas@e,8800000/sd@6,0:f /sbus/SUNW,fas@e,8800000/st@4,0 /sbus/SUNW,fas@e,8800000/st@5,0 /sbus/SUNW,fas@e,8800000/st@4,0 /sbus/SUNW,fas@e,8800000/sd@6,0 /sbus/SUNW,fas@e,8800000/sd@5,0 /sbus/SUNW,fas@e,8800000/sd@4,0 /sbus/SUNW,fas@e,8800000/sd@3,0 /sbus/SUNW,fas@e,8800000/sd@2,0 /sbus/SUNW,fas@e,8800000/sd@1,0 /sbus/SUNW,fas@e,8800000/sd@0,0 /sbus/SUNW,fas@e,8800000 /sbus/SUNW,fdtwo /sbus/zs@f,1100000:b /sbus/zs@f,1100000:a /sbus/zs@f,1000000:forcemode /sbus/zs@f,1000000 aliases Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Auflisten der Devicealiases Boot von Festplatte unter Verwendung eines Devicealias: {0} ok boot disk Mit nachfolgender Aliasbelegung: fcal0 fcal1 /pci@1f,4000/scsi@3/fp@0,0/ses@w5080020000048bab,0 /pci@4,4000/scsi@2/fp@0,0/ssd@w50050765074401f3,0 FCAL-Disk-Boot per Aliasangabe: {0} ok boot fcal0 Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Setzen von Devicealiases Ein Auflisten des Devicetrees zeigt u.a. folgendes Bootdevice: /ssm@0,0/pci@19,700000/pci@3/scsi@3/fp@0,0/ssd@w2200002037336f06,0 Diesem Pfad ist nun ein Devicealias “pboot“ zu geben: {0} nvalias pboot /ssm@0,0/pci@19,700000/pci@3/scsi@3/fp@0,0/ssd@w2200002037336f06,0 {0} nvstore {0} Es ist die Bootdevice Variable auf “pboot“ zu setzen, der Diagnosticmode auszuschalten und die Maschine zu starten: {0} ok setenv boot-device pboot {0} ok setenv diag-switch? false {0} ok boot Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Setzen von Devicealiases, Menügesteuert Für Netzwerkinterfaces: {0} ok show-nets a) /pci@4,4000/pci@2/SUNW,qfe@3,1 b) /pci@4,4000/pci@2/SUNW,qfe@2,1 c) /pci@4,4000/pci@2/SUNW,qfe@1,1 d) /pci@4,4000/pci@2/SUNW,qfe@0,1 e) /pci@1f,4000/network@1,1 q) NO SELECTION Enter Selection, q to quit: e /pci@1f,4000/network@1,1 has been selected. Type ^Y ( Control-Y ) to insert it in the command line. e.g. ok nvalias mydev ^Y for creating devalias mydev for /pci@1f,4000/network@1,1 {0} ok Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Setzen von Devicealiases, Menügesteuert Oder für Plattendevices: {0} ok show-disks a) /pci@4,4000/scsi@6,1/disk b) /pci@4,4000/scsi@6/disk c) /pci@1f,4000/scsi@2,1/disk d) /pci@1f,4000/scsi@2/disk e) /pci@1f,4000/ebus@1/fdthree@14,3203f0 q) NO SELECTION Enter Selection, q to quit: a /pci@4,4000/scsi@6,1/disk has been selected. Type ^Y ( Control-Y ) to insert it in the command line. e.g. ok nvalias mydev ^Y for creating devalias mydev for /pci@4,4000/scsi@6,1/disk {0} Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Setzen von Devicealiases, Menügesteuert Der Pfad zur Bootplatte ist nun im Copybuffer, es fehlt das Target: {0} ok probe-scsi Primary UltraSCSI bus: Target 0 Unit 0 Disk FUJITSU MAJ3364M SUN36G 0804 Target 6 Unit 0 Removable Read Only device TEAC CD-R55S 1.0J Removeable-Media/External SCSI bus: {0} ok Es ist auf SCSI-Bus 0 die Festplatte Target 0 Unit 0 zu wählen (Solaris Device: c0t0d0). CTRL-Y setzt “/pci@4,4000/scsi@6,1/disk“ ein. Target und Unit (korrekter LUN: Logical Unit Number) sind manuell anzufügen: ok nvalias bootdisk /pci@4,4000/scsi@6,1/disk@0,0 Beachte die Schreibweise: disk@target,lun. Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Devicepfade im OBP {0} ok cd / {0} ok pwd / {0} ok ls f00885b8 pci@4,2000 f0087384 pci@4,4000 f0085638 SUNW,UltraSPARC-II@3,0 f00852cc SUNW,UltraSPARC-II@2,0 f0084f60 SUNW,UltraSPARC-II@1,0 f0084bf4 SUNW,UltraSPARC-II@0,0 f006af4c counter-timer@1f,1c00 f00693a8 pci@1f,2000 f0068134 pci@1f,4000 f00506f0 virtual-memory f0050110 memory@0,0 f002db88 aliases f002db18 options f002d9e0 openprom f002d974 chosen f002d904 packages {0} Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Devicepfade im OBP Erkundung des Devicepath zur Bootplatte: “/pci@4,4000/scsi@6,1/disk@0,0“ {0} ok cd pci@4,4000 {0} ok pwd /pci@4,4000 {0} ok cd scsi@6,1 {0} ok pwd /pci@4,4000/scsi@6,1 {0} ok ls f00a8994 tape f00a7348 disk Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Devicepfade im OBP Auflistung der Informationen zum SCSI-Controler: {0} .properties latency-timer assigned-addresses device_type clock-frequency reg model compatible name devsel-speed class-code interrupts max-latency min-grant revision-id device-id vendor-id 00000011 81003110 00000000 82003114 00000000 82003118 00000000 scsi-2 02625a00 00003100 00000000 01003110 00000000 02003114 00000000 02003118 00000000 Symbios,53C875 glm scsi 00000001 00010000 00000001 00000040 00000011 00000014 0000000f 00001000 Rolf M Dietze: Systemverwaltung Solaris 10 00001400 00000000 00000100 08904000 00000000 00000100 08906000 00000000 00001000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000100 00000100 00001000 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Devicepfade im OBP Was gibt es noch unter “/pci@4,4000“: Es wird das Verzeichnis gewechselt und weiter gesucht: {0} cd .. {0} pwd /pci@4,4000 {0} ok ls f00a9634 pci@2 f00a37b8 scsi@6,1 f009d93c scsi@6 {0} ok cd pci@2 {0} ok pwd /pci@4,4000/pci@2 {0} ok ls f00c1e68 SUNW,qfe@3,1 f00c1c18 pci108e,1000@3 f00ba068 SUNW,qfe@2,1 f00b9de8 pci108e,1000@2 f00b2238 SUNW,qfe@1,1 f00b1fb8 pci108e,1000@1 f00aa408 SUNW,qfe@0,1 f00aa1b8 pci108e,1000@0 {0} Es wurde eine QFE-Karte gefunden... Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Devicepfade im OBP Auflistung der Properties eines QFE-Interfaces: {0} ok cd SUNW,qfe@0,1 {0} pwd /pci@4,4000/pci@2/SUNW,qfe@0,1 {0} .properties latency-timer 0000000a assigned-addresses 82010110 00000000 02800000 00000000 00007030 local-mac-address 08 00 20 b7 63 3c hm-rev 000000c1 compatible pci108e,1001 pciclass,020000 has-fcode version 1.4 device_type network address-bits 00000030 max-frame-size 00004000 reg 00010100 00000000 00000000 00000000 00000000 02010110 00000000 00000000 00000000 00007030 model SUNW,pci-qfe name SUNW,qfe ....... Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Devicepfade im OBP Welche CPUs sind im System, welchen Takt haben sie, Seriennummer, Cachegröße etc.: {0} ok cd /SUNW,UltraSPARC-II@0,0 {0} ok .properties manufacturer# 00000017 implementation# 00000011 mask# 00000020 sparc-version 00000009 ecache-associativity 00000001 ecache-line-size 00000040 ecache-size 00200000 #dtlb-entries 00000040 dcache-associativity 00000001 dcache-line-size 00000020 dcache-size 00004000 #itlb-entries 00000040 icache-associativity 00000002 icache-line-size 00000020 icache-size 00004000 upa-portid 00000000 clock-frequency 11a49a00 reg 000001c0 00000000 00000000 00000008 device_type cpu name SUNW,UltraSPARC-II Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Devicepfade im OBP {0} ok show-devs /pci@4,2000 /pci@4,4000 /SUNW,UltraSPARC-II@3,0 /SUNW,UltraSPARC-II@2,0 /SUNW,UltraSPARC-II@1,0 /SUNW,UltraSPARC-II@0,0 /counter-timer@1f,1c00 /pci@1f,2000 /pci@1f,4000 /virtual-memory .... /pci@4,2000/ethernet@1 /pci@4,4000/pci@2 /pci@4,4000/scsi@6,1 /pci@4,4000/scsi@6 /pci@4,4000/pci@2/SUNW,qfe@3,1 /pci@4,4000/pci@2/pci108e,1000@3 .... /pci@1f,4000/ebus@1/power@14,724000 /pci@1f,4000/ebus@1/auxio@14,726000 /pci@1f,4000/ebus@1/i2c@14,600000/gpio@0,70 /pci@1f,4000/ebus@1/i2c@14,600000/gpio@0,78 /pci@1f,4000/ebus@1/i2c@14,600000/adc@0,9a /pci@1f,4000/ebus@1/i2c@14,600000/adc@0,9c /pci@1f,4000/ebus@1/i2c@14,600000/adc@0,9e /openprom/client-services /packages/sun-keyboard /packages/SUNW,builtin-drivers /packages/cdfs Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun OBP-Diagnose Diagnoseroutinen des OBP haben die verschiedensten Prozedurnamen: .obdiag obdiag (obdiag) Der Name der Diagnoseroutine lässt sich z.B. mit sifting diag suchen: {0} ok sifting diag In (f008334c) (f005ac3c) (f0059378) (f0059284) (f004807c) (f0028bb8) {0} vocabulary forth obdiag (f00831ac) dload-obdiag iommu-diag-off (f005ac0c) iommu-diag-on pcib-diag! (f005935c) pcib-diag@ (f00592a0) pcia-diag! pcia-diag@ (f0055bb0) diag-levels diag-switch-pa (f0029228) diagnostic-mode? diag-key Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun OBDiag {0} ok obdiag OBDiag Menu 0 ..... PCI/Cheerio 1 ..... EBUS DMA/TCR Registers 2 ..... Ethernet 3 ..... Keyboard 4 ..... Mouse 5 ..... Floppy 6 ..... Parallel Port 7 ..... Serial Port A 8 ..... Serial Port B 9 ..... NVRAM 10 ..... RAS 11 ..... All Above 12 ..... Quit 13 ..... Display this Menu 14 ..... Toggle script-debug 15 ..... Enable External Loopback Tests 16 ..... Disable External Loopback Tests Enter (0-11 tests, 12 -Quit, 13 -Menu) ===> Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun LAB: OBP OBP-LAB Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun LAB: OBP 1. Was für eine Sun steht Ihnen zur Verfügung? 2. Wieviele CPUs hat Ihre Maschine? 3. Wieviel Speicher hat Ihre Maschine? 4. Wieviele Festplatten haben Sie zur Verfügung, die Sie auf OBP-Ebene sehen? Skizzieren Sie, wie sie diese Information erhalten haben: 5. Haben Sie ein lokales CDROM-Laufwerk zur Verfügung? 6. Wie haben Sie erkannt, ob ein CDROM-Laufwerk vorhanden ist? 7. Ist die POST-Diagnose fehlerfrei durchgelaufen? 8. Wie haben Sie erkannt, welchen status die POST-Diagnose hat? 9. Welche Festplatte ist Ihre Defaultbootplatte? 10. Welces Netzwerkinterface wird mit dem Devicealias net angesprochen 11. Wieviele Netzwerkinterfaces hat Ihre LAB-Maschine 12. Zeichnen Sie die MAC-Adressen der Netzwerkinterfaces Ihrer LAB-Maschine auf. 13. Führen Sie das OBP-Kommando .idprom aus und vergleichen Sie die Ausgabe mit den Informationen, die Ihnen das Kommando banner gibt. 14. Führen Sie ein xor über die ersten 15 Bytes und vergleichen Sie das Ergebnis mit der Ausgabe von .idprom Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Zettabyte Filesystem Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs I 128Bit-Filesystem I RAID-Software und Filesystem in Einem I Copy-on-Write-FS I Transaktionsloggesichert (2PC) I Optimiert auch auf sequentiellen I/O I Windows-ACLs, zusammen mit NFSv4 exportierbar I Datenabsicherung durch Prüfsummen I Selfrecovery bei Blockfehlern I Einfache Administration (jedoch wenig Eingriff) Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Attribute per Filesystem setzbar: I Quotas, Reservations I Blocksize/Recordsize I NFS-Options I iSCSI-Targetmode I Checksumming I exec + suid Rechte beschränkbar I Compression I Geplant: Cryptomechanismus I .... Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Filesystem Layer SoftRAID Set/Device Layer SoftRAID Group Layer Solaris Device Layer Hardware Layer Rolf M Dietze: Systemverwaltung Solaris 10 ZFS Filesystem Layer ZFS Storage Pool Layer Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Filesystem Filesystem d20 Filesystem d31 d10 Mirror RAID Rolf M Dietze: Systemverwaltung Solaris 10 Stripe Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Filesystem Filesystem Filesystem ZFS Storage Pool Layer Stripe über alle virtual Devices vdev 1 vdev 2 Simple Disk Simple Disk Rolf M Dietze: Systemverwaltung Solaris 10 vdev 3 vdev 4 vdev 5 vdev 6 Simple Disk Simple Disk Simple Disk Simple Disk Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Filesystem Filesystem Filesystem ZFS Storage Pool Layer Stripe über alle virtual Devices vdev 1 vdev 2 Mirror Rolf M Dietze: Systemverwaltung Solaris 10 Mirror vdev 3 Mirror vdev 4 Mirror Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Filesystem Filesystem Filesystem ZFS Storage Pool Layer Stripe über alle virtual Devices vdev 1 vdev 2 RAID Rolf M Dietze: Systemverwaltung Solaris 10 vdev 3 Simple Disks vdev 4 Mirror Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs ? Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs ? Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Unterstützte RAID-Level: Simple Disk Grundtyp, einzelnes vdev Simple Container Grundtyp, Containerfile (mkfile ...) Mirror Konstruierter Typ, Spiegel mehrerer Grundtypen RAID-Z Konstruierter Typ, RAID-5 naher RAID-Level RAID-Z2 Konstruierter Typ, Doubleparity-RAID-5 (RAID-6) Wird ein zpool erweitert, so ist darauf zu achten die Redundanzqualität zu erhalten. Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs zpool Subkommandos: create [-fn] [-R root] [-m mountpoint] <pool> <vdev> ... destroy [-f] <pool> add [-fn] <pool> <vdev> ... remove <pool> <device> list [-H] [-o field[,field]*] [pool] ... iostat [-v] [pool] ... [interval [count]] status [-vx] [pool] ... online <pool> <device> ... offline [-t] <pool> <device> ... clear <pool> [device] attach [-f] <pool> <device> <new_device> detach <pool> <device> replace [-f] <pool> <device> [new_device] scrub [-s] <pool> ... import [-d dir] [-D] import [-d dir] [-D] [-f] [-o opts] [-R root] -a import [-d dir] [-D] [-f] [-o opts] [-R root ] <pool | id> [newpool] export [-f] <pool> ... upgrade upgrade -v upgrade <-a | pool> Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Hands on endeavour# zpool list NAME SIZE pm1 16.8G pm2 16.8G endeavour# zpool iostat capacity used avail ----- ----45.5K 16.7G 48.5K 16.7G ----- ----- pool ---------pm1 pm2 ---------- USED 45.5K 48.5K AVAIL 16.7G 16.7G operations read write ----- ----0 0 0 0 ----- ----- Rolf M Dietze: Systemverwaltung Solaris 10 CAP 0% 0% HEALTH FAULTED ONLINE bandwidth read write ----- ----638 432 712 424 ----- ----- ALTROOT - Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Hands on endeavour# zpool iostat capacity pool used avail --------- ----- ----pm1 45.5K 16.7G c6t2d0 0 8.38G c7t2d0 45.5K 8.37G --------- ----- ----pm2 48.5K 16.7G c6t1d0 0 8.38G c7t1d0 48.5K 8.37G --------- ----- ----- -v operations read write ----- ----0 0 0 0 0 0 ----- ----0 0 0 0 0 0 ----- ----- Rolf M Dietze: Systemverwaltung Solaris 10 bandwidth read write ----- ----637 432 253 183 383 248 ----- ----711 423 261 191 449 232 ----- ----- Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Hands on Erzeugung eines Stripes über 4 Festplatten endeavour# zpool create p1 c6t3d0 c6t4d0 c6t5d0 c6t6d0 endeavour# zpool iostat -v capacity operations bandwidth pool used avail read write read write --------- ----- ----- ----- ----- ----- ----p1 33.0K 33.5G 0 0 0 2.29K c6t3d0 0 8.38G 0 0 0 576 c6t4d0 0 8.38G 0 0 0 578 c6t5d0 0 8.38G 0 0 0 574 c6t6d0 33.0k 8.37G 0 0 0 611 Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Hands on Aufsetzen eines Zweifachspiegels endeavour# zpool create endeavour# zpool iostat capacity pool used avail ----------- ----- ----p3 33.0K 8.37G mirror 33.0K 8.37G c6t7d0 c7t7d0 ----------- ----- ----- -f p3 mirror c6t7d0 c7t7d0 -v operations bandwidth read write read write ----- ----- ----- ----0 0 0 35 0 0 0 35 0 0 50 687 0 0 50 687 ----- ----- ----- ----- Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Hands on endeavour# zpool create endeavour# zpool iostat capacity pool used avail ----------- ----- ----p3 33.0K 16.7G mirror 33.0K 8.37G c6t8d0 c7t8d0 mirror 33.0K 8.37G c6t9d0 c7t9d0 ----------- ----- ----- -f p4 mirror c6t8d0 c7t8d0 mirror c6t9d0 c7t9d0 -v operations bandwidth read write read write ----- ----- ----- ----0 0 0 35 0 0 0 35 0 0 10 687 0 0 12 687 0 0 0 35 0 0 50 737 0 0 50 737 ----- ----- ----- ----- Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Hands on df -k Filesystem kbytes used ... pm3 17426432 8 pm3/demo 17426432 8 ... endeavour# zpool export pm3 endeavour# zpool import pm3 new3 endeavour# df -k Filesystem kbytes used ... new3 17426432 8 new3/demo 17426432 8 ... Rolf M Dietze: Systemverwaltung Solaris 10 avail capacity 17426386 17426386 1% 1% avail capacity 17426386 17426386 1% 1% Mounted on /pm3 /pm3/demo Mounted on /new3 /new3/demo Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Hands on endeavour# zpool status -x pool: new2 state: FAULTED status: One or more devices could not be opened. There are insufficient replicas for the pool to continue functioning. action: Attach the missing device and online it using ’zpool online’. see: http://www.sun.com/msg/ZFS-8000-3C scrub: none requested config: NAME new2 c6t2000002037260FE2d0s0 c6t200000203708CE21d0s0 Rolf M Dietze: Systemverwaltung Solaris 10 STATE FAULTED FAULTED ONLINE READ WRITE CKSUM 0 4 0 0 4 0 cannot open 0 0 0 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Hands on endeavour# zpool replace new2 c6t2000002037260FE2d0s0 endeavour# zpool status -v zpool status -v pool: new2 state: ONLINE scrub: resilver completed with 0 errors on Sat Dec 31 20:13:38 2005 config: NAME STATE READ WRITE CKSUM new2 ONLINE 0 0 0 c6t2000002037228331d0s0 ONLINE 0 0 0 c6t200000203708CE21d0s0 ONLINE 0 0 0 Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Hands on zfs Subkommandos create <filesystem> create [-s] [-b blocksize] -V <size> <volume> destroy [-rRf] <filesystem|volume|snapshot> snapshot [-r] <filesystem@name|volume@name> rollback [-rRf] <snapshot> clone <snapshot> <filesystem|volume> promote <clone filesystem> rename <filesystem|volume|snapshot> <filesystem|volume|snapshot> list [-rH] [-o property[,property]...] [-t type[,type]...] [-s property [-s property]...] [-S property [-S property]...] [filesystem|volume|snapshot] ... set <property=value> <filesystem|volume> ... get [-rHp] [-o field[,field]...] [-s source[,source]...] <all | property[,property]...> <filesystem|volume|snapshot> ... inherit [-r] <property> <filesystem|volume> ... mount mount [-o opts] [-O] -a mount [-o opts] [-O] <filesystem> unmount [-f] -a unmount [-f] <filesystem|mountpoint> share -a share <filesystem> unshare [-f] -a unshare [-f] <filesystem|mountpoint> send [-i <snapshot>] <snapshot> receive [-vn] <filesystem|volume|snapshot> receive [-vn] -d <filesystem> Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Hands on endeavour# zfs create pm/demo endeavour# df -k ... pm 34852864 pm/demo 34852864 ... Rolf M Dietze: Systemverwaltung Solaris 10 8 34852820 8 34852820 1% 1% /pm /pm/demo Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Hands on endeavour# zpool create export mirror c2t1d0 c3t1d0 endeavour# zfs create export/home endeavour# zfs create export/home/ufa00 endeavour# zfs create export/home/ufa01 endeavour# zfs create export/home/ufa02 endeavour# zfs create export/applications endeavour# zfs list NAME USED AVAIL REFER MOUNTPOINT export 92.0K 16.6G 9.5K /export export/applications 8K 16.6G 8K /export/applications export/home 34.0K 16.6G 10.0K /export/home export/home/ufa00 8K 16.6G 8K /export/home/ufa00 export/home/ufa01 8K 16.6G 8K /export/home/ufa01 export/home/ufa02 8K 16.6G 8K /export/home/ufa02 pm 5.47M 33.2G 8.50K /pm pm/demo 5.42M 33.2G 5.41M /pm/demo pm/demo/subdemo 8K 33.2G 8K /pm/demo/subdemo Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Hands on zfs-Filesystem löschen: zfs destroy <yourzfsfs> Rekursiv löschen: zfs destroy -r <yourzfsfs> Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Hands on Erzeugen und Auflisten von Snapshots: endeavour# zfs snapshot export/home/ufa00@globus endeavour# ls -l /export/home/ufa00/.zfs/snapshot total 2 drwxr-xr-x 3 root sys 3 Jan 1 15:22 globus/ endeavour# zfs list -t snapshot NAME USED AVAIL REFER MOUNTPOINT export/applications@newyearsday 0 2.19G export/home/[email protected] 23.0K 41.1M export/home/ufa00@sunday 15.5K 41.1M pm/demo@grits_tests 0 5.41M /mnt Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Hands on Snapshot Rollback: endeavour# zfs rollback export/home/[email protected] endeavour# zfs list -t snapshot NAME USED AVAIL REFER export/applications@newyearsday 0 2.19G export/home/ufa00@sunday 15.5K 41.1M pm/demo@grits_tests 0 5.41M Rolf M Dietze: Systemverwaltung Solaris 10 MOUNTPOINT /mnt Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Hands on endeavour> zfs get all pm NAME PROPERTY pm type pm creation pm used pm available pm referenced pm compressratio pm mounted pm quota pm reservation pm recordsize pm mountpoint pm sharenfs pm checksum pm compression pm atime pm devices pm exec pm setuid pm readonly pm zoned pm snapdir pm aclmode pm aclinherit Rolf M Dietze: Systemverwaltung Solaris 10 VALUE filesystem Sat Dec 31 21:05 2005 5.47M 33.2G 8.50K 1.00x yes 10G none 128K /pm off on on on on on on off off visible groupmask secure SOURCE local default default default default default local default default default default default default default default default Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Hands on endeavour# zfs set reservation=10G export/home/ufa01 endeavour# df -h Filesystem size used avail capacity Mounted on ... export/home/ufa01 17G 8K 14G 1% /export/home/ufa01 ... endeavour# zfs set quota=15G export/home/ufa01 Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Hands on endeavour# zfs get all export/home/ufa01 NAME PROPERTY VALUE export/home/ufa01 type filesystem export/home/ufa01 creation Sun Jan 1 14:44 2006 export/home/ufa01 used 8K export/home/ufa01 available 14.4G export/home/ufa01 referenced 8K export/home/ufa01 compressratio 1.00x export/home/ufa01 mounted yes export/home/ufa01 quota 15.0G export/home/ufa01 reservation 10.0G export/home/ufa01 recordsize 128K export/home/ufa01 mountpoint /export/home/ufa01 export/home/ufa01 sharenfs off export/home/ufa01 checksum on export/home/ufa01 compression off export/home/ufa01 atime on export/home/ufa01 devices on export/home/ufa01 exec on export/home/ufa01 setuid on export/home/ufa01 readonly off export/home/ufa01 zoned off export/home/ufa01 snapdir visible export/home/ufa01 aclmode groupmask export/home/ufa01 aclinherit secure Rolf M Dietze: Systemverwaltung Solaris 10 SOURCE local local default default default default default default default default default default default default default default Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun zfs Hands on Das Spiel beenden, ohne Warnung: endeavour# zpool destroy pm endeavour# zpool iostat -v no pools available Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Systemboot Sparc-Solaris I Sparc Solaris Systemboot Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Systemboot Sparc-Solaris I Der Solaris Systemstart ist unterteilt in fünf Abschnitte: 1. OBP Boot 1.1 PROM Selftests 1.2 Anzeige des Banners 1.3 bootload der Sektoren 0 - 1 Lesen des Disklabels. 1.4 Auslesen des Bootblocks bootblk aus den Sektoren 1 - 15. Lesen des Bootblocks vom Defaultbootdevice oder der angegebenen Festplatte. 1.5 OBP lädt den bootblk (enthält ufs-Filesystemreader) Future: GRUB? Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Systemboot Sparc-Solaris II 2. Bootprogramm, ab hier wird direkt im ufs gelesen: bootblk lädt das ufsboot-Programm I I aus /platform/‘uname -m‘/ufsboot (64-Bit) bzw. aus /platform/‘uname -i‘/ufsboot (32-Bit non-Sun). ufsboot lädt den Betriebssystemkern I I aus /platform/‘uname -m‘/kernel/sparcv9/unix (64-Bit/CPU) und aus /kernel/sparcv9/genunix (64-Bit generic) aus /platform/‘uname -m‘/kernel/unix (32-Bit/CPU) und aus /kernel/genunix (32-Bit generic) (non-Sun Distribution). krtld wird geladen Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Systemboot Sparc-Solaris III 3. Autokonfiguration I I Laden von Kernelmodulen durch ufsboot Lesen/Auswerten der /etc/system 4. Kernel-Initialisierung. Wenn durch ufsboot alle notwendigen Module geladen wurden, kann ufsboot aus dem Speicher geladen werden und das root-Filesystem direkt geladen werden. I I Initialisierung des Kernel: ufsboot verwerfen, direkter Zugriff mit Ressourcen des OS-Kernels Start von init, liest /etc/default/init 5. Start der Systemdienste I I Solaris 10. . . .: SMF .. . . Solaris 9: rc-Scripte Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Systemboot x86/x64-Solaris x86/x64 Solaris System Boot Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Systemboot x86/x64-Solaris I I I I I I x86 Systemboot ist komplexer als Sparc Systemboot Seit Build 14 GRUB-basierter Systemboot keine eigenen Gerätetreiber nur INT-13 Calls Festplattenboot unterscheidet sich von CD-Boot CD-Boot: El-Torito Standard aus Image im NO-Emulation Modus Festplattenboot: Laden eines komprimierten FS-Image für / keine FDISK-Unterstuetzung durch das BIOS FDISK-Support im 1ten Sektor der Bootplatte MS-ähnlicher Boot Erweiterung der Bootfunktionalität durch Laden einer Imagedatei Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Systemboot x86/x64-Solaris 1 GRUB Load, Phase 1 (a) Laden des Ersten Sektors der Bootplatte FDISK-Informationen Übergabe der Kontrolle an den geladenen Code (b) Laden des Codes des 1ten Sektors der aktiven Partition (c) Laden der zweiten GRUB-Boot Stufe Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Systemboot x86/x64-Solaris 2 GRUB Load, Phase 2 Enthält Filesystemtreiber und kann fortan Festplatten lesen (a) Boot-Menue wird aufgelistet, Timeout (b) Laden und Ausführen eines GRUB-Multiboot kompatiblen Programms Notwendig zur Trennung des GPL-lizensierten GRUB-Systems vom CDDL-lizensierten Solaris Systemkern. (c) Multibootprogramm lädt gziped RAMDiskimage aus /platform/<uname -i>/boot archive /boot/solaris/bootenv.rc entsprch Sparc-NVRAM (d) Erstellen der RAMDisk (e) Multiboot lädt aus der RAMDisk: /platform/<uname -i>/kernel/unix bzw. /kernel/amd64/unix Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Systemboot x86/x64-Solaris I (f) Kernel lädt Runtimelinker nach (g) Nachladen von Treibern aus Filesystem der RAMDisk (krltd entählt fs-Treiber bei x86/x64) (h) Übermounten des Root-fs entsprechend bootpath Variable (Wenn nicht gesetzt: RAMDisk-fs) I Es folgt der Systemladevorgang analog zu Sparc-Solaris Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Systemhalt x86/x64-Solaris RAMDiskimage wird erstellt durch das Kommado bootadm I Legt bootenv.rc etc. fest I Erzeugt mit mkisofs /-fs Image als hsfs-Filesystem I Komprimiert das Imagefile Modifikation Wenn das System modifiziert wurde ist das Image neu zu erzeugen I Ändern der Systemkonfiguration USB-Stick etc. Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Systemhalt x86/x64-Solaris Imageerstellung Beim Systemstop wird überprüft ob die Systemkonfiguration vom alten RAMDiskimage variiert. I Sicherhung der bootenv.rc Parameter I Erstellen eines RAMDiskimage per mkisofs I Komprimierung des Images Wird der Vorgang unterbrochen, kann u.U. der Neustart nicht mehr erfolgen! Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun LAB: Systemboot Führen Sie einen Systemboot von Netz aus. Was ist zu tun? Führen Sie einen klassischen Systemboot (boot -sw) in den Single-user Mode aus. In Welchem Zustand ist Ihre LAB-Maschine? Multiuser/Singleuser? Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Nevada Build95 - The Solaris Installation Program --------------------------------------------The Solaris installation program is divided into a series of short sections where you’ll be prompted to provide information for the installation. At the end of each section, you can change the selections you’ve made before continuing. About navigation... - The mouse cannot be used - If your keyboard does not have function keys, or they do not respond, press ESC; the legend at the bottom of the screen will change to show the ESC keys to use for navigation. -------------------------------------------------------------------------------F2_Continue F5_Exit F6_Help Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Nevada Build95 - Solaris Interactive Installation --------------------------------------------On the following screens, you can accept the defaults or you can customize how Solaris software will be installed by: - Selecting the type of Solaris software to install Selecting disks to hold software you’ve selected Selecting unbundled products to be installed with Solaris Specifying how file systems are laid out on the disks After completing these tasks, a summary of your selections (called a profile) will be displayed. There are two ways to install your Solaris software: - "Standard" installs your system from a standard Solaris Distribution. Selecting "Standard" allows you to choose between initial install and upgrade, if your system is upgradable. - "Flash" installs your system from one or more Flash Archives. -------------------------------------------------------------------------------Esc-2_Standard F3_Go Back Esc-4_Flash F5_Exit F6_Help Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Nevada Build95 - Eject a CD/DVD Automatically? -----------------------------------------------During the installation of Solaris software, you may be using one or more CDs/DVDs. You can choose to have the system eject each CD/DVD automatically after it is installed or you can choose to manually eject each CD/DVD. [X] Automatically eject CD/DVD [ ] Manually eject CD/DVD -------------------------------------------------------------------------------F2_Continue F3_Go Back F5_Exit Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Nevada Build95 - Reboot After Installation? --------------------------------------------------After Solaris software is installed, the system must be rebooted. You can choose to have the system automatically reboot, or you can choose to manually reboot the system if you want to run scripts or do other customizations before the reboot. You can manually reboot a system by using the reboot(1M) command. [X] Auto Reboot [ ] Manual Reboot -------------------------------------------------------------------------------F2_Continue F3_Go Back F5_Exit Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Nevada Build95 - Choose Media ----------------------------------------------------------------Please specify the media from which you will install the Solaris Operating System. Media: [ ] [X] CD/DVD Network File System -------------------------------------------------------------------------------F2_Continue F3_Go Back F5_Exit Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Nevada Build95 - Specify Network File System Path --------------------------------------------Please specify the path to the network file system from which you will install the Solaris Operating System. Example: NFS Location: server:/path_to_Solaris_image ============================================================================ NFS Location: 10.10.100.78:/export/isrv/snv_11_b95_sparc -------------------------------------------------------------------------------F2_Continue F3_Go Back Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Nevada Build95 - Solaris Interactive Installation --------------------------------------------This system is upgradable, so there are two ways to install the Solaris software. The Upgrade option updates the Solaris software to the new release, saving as many modifications to the previous version of Solaris software as possible. Back up the system before using the Upgrade option. The Initial option overwrites the system disks with the new version of Solaris software. This option allows you to preserve any existing file systems. Back up any modifications made to the previous version of Solaris software before starting the Initial option. After you select an option and complete the tasks that follow, a summary of your actions will be displayed. -------------------------------------------------------------------------------F2_Upgrade F3_Go Back F4_Initial F5_Exit F6_Help Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Nevada Build95 - Initializing ----------------------------------------------------------------- The system is being initialized. Loading install media, please wait... Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Nevada Build95 - Select Geographic Regions ---------------------------------------------------Select the geographic regions for which support should be installed. > > > > > > > > > > > > [ ] [ ] [/] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] Central America Australasia North America South America Northern Africa Middle East Eastern Europe Northern Europe Western Europe Central Europe Southern Europe Asia Move left, right, up, down using the arrow keys -------------------------------------------------------------------------------Esc-2_Continue F3_Go Back F5_Exit F6_Help Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Nevada Build95 - Select System Locale --------------------------------------------------------Select the initial locale to be used after the system has been installed. [X] POSIX C ( C ) North America [ ] U.S.A. (en_US.ISO8859-1) ( en_US.ISO8859-1 ) [ ] U.S.A. (en_US.ISO8859-15) ( en_US.ISO8859-15 ) -------------------------------------------------------------------------------Esc-2_Continue F3_Go Back F5_Exit F6_Help Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Nevada Build95 - Additional Products ---------------------------------------------------------To scan for additional products, select the location you wish to scan. Products found at the selected location that are in a Web Start Ready install form will be added to the Products list. Web Start Ready product scan location: [X] [ ] [ ] None CD/DVD Network File System -------------------------------------------------------------------------------Esc-2_Continue F3_Go Back F5_Exit Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Nevada Build95 - Choose Filesystem Type ------------------------------------------------------Select the filesystem to use for your Solaris installation [ ] UFS [X] ZFS -------------------------------------------------------------------------------Esc-2_Continue F3_Go Back F5_Exit F6_Help Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Nevada Build95 - Select Software -------------------------------------------------------------Select the Solaris software to install on the system. Sizes shown include required disk space for swap and dump volumes. NOTE: After selecting a software group, you can add or remove software by customizing it. However, this requires understanding of software dependencies and how Solaris software is packaged. [ ] [X] [ ] [ ] [ ] [ ] Entire Distribution plus OEM support ....... Entire Distribution ........................ Developer System Support ................... End User System Support .................... Core System Support ........................ Reduced Networking Core System Support ..... 9318.00 9281.00 8995.00 6940.00 2074.00 2016.00 MB MB MB MB MB MB -------------------------------------------------------------------------------Esc-2_Continue F3_Go Back F4_Customize F5_Exit F6_Help Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Nevada Build95 - Select Disks ----------------------------------------------------------------On this screen you must select the disks for installing Solaris software. Start by looking at the Suggested Minimum field; this value is the approximate space needed to install the software you’ve selected. For ZFS, multiple disks will be configured as mirrors, so the disk you choose, or the slice within the disk must exceed the Suggested Minimum value. NOTE: ** denotes current boot disk Disk Device Available Space ============================================================================= [X] ** c0t0d0 17269 MB (F4 to edit) [ ] c0t1d0 17269 MB Maximum Root Size: Suggested Minimum: 17269 MB 9281 MB -------------------------------------------------------------------------------Esc-2_Continue F3_Go Back F4_Edit F5_Exit F6_Help Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Nevada Build95 - Preserve Data? --------------------------------------------------------------Do you want to preserve existing data? At least one of the disks you’ve selected for installing Solaris software has file systems or unnamed slices that you may want to save. -------------------------------------------------------------------------------Esc-2_Continue F3_Go Back F4_Preserve F5_Exit F6_Help Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Nevada Build95 - Configure ZFS Settings ------------------------------------------------------Specify the name of the pool to be created from the disk(s) you have chosen. Also specify the name of the dataset to be created within the pool that is to be used as the root directory for the filesystem. ZFS Pool Name: rpool ZFS Root Dataset Name: snv_95 Set ZFS Pool Size: 17270 (Pool size must be between 9281 MB and 17270 MB) [X] Keep / and /var combined [ ] Put /var on a separate dataset -------------------------------------------------------------------------------Esc-2_Continue F3_Go Back F5_Exit F6_Help Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Nevada Build95 - Mount Remote File Systems? --------------------------------------------------Do you want to mount software from a remote file server? This may be necessary if you had to remove software because of disk space problems. -------------------------------------------------------------------------------- Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Nevada Build95 - Profile ---------------------------------------------------------------------The information shown below is your profile for installing Solaris software. It reflects the choices you’ve made on previous screens. ============================================================================ Installation Option: Boot Device: Root File System Type: Client Services: Initial c0t0d0 ZFS None Locales: U.S.A. (en_US.ISO8859-1) System Locale: C ( C ) Software: Pool Name: Boot Environment Name: Pool Size: Devices in Pool: Solaris 11, Entire Distribution rpool snv_95 17270 MB c0t0d0 -------------------------------------------------------------------------------Esc-2_Begin Installation F4_Change F5_Exit F6_Help Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Postwork Nevada Build95 I Umgebung Einrichten (/etc/hosts, /etc/defaults/*, root-Home. . . ) I Service Manifeste anpassen (Script?) I Root-Pool spiegeln I User einrichten I AutoFS? (/net/10.10.100.78/export/isrv/common/setupcp) Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Service Management Facility Service Management Facility Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Service Management Facility in.inetd lrc Service svc.startd Admin Interface SMF svc.configd ctfs sched() Rolf M Dietze: Systemverwaltung Solaris 10 repository.db Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF/Repository API tokenizer SMF SQL Processor parser generator request Service / Daemon VM B Tree Layer OpenSolaris Page Layer OpenSolaris Interface /etc/svc/repository.db Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF/inetd Client Server 5 telnet in.telnetd 2 1 4 3 inetd start (CTID) /etc/services SMF repository.db inetconv inetd.conf Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Service Management Facility svcprop svcs svcadm svccfg Admin SMF Monitoring (ctfs) Repository Rolf M Dietze: Systemverwaltung Solaris 10 Start/Stop Service System Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF, Files & Directories /lib/svc/bin SMF Serviceprogramme lsvcrun Legacy Run mfstscan Manifestparser prophist Propertyhistory Managementprogramm svc.startd SMF Holderprozess svc.configd Configdaemon restore repository Maintenanceprogramm zur Reparatur des Repositories sqlite DB-Managementprogramm für das Repository /lib/svc/method Start/Stop-Methoden der Services /lib/svc/seed Seed für Neuaufbau eines Repositories Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF, Files & Directories Manifeste: Applikationen in /var/svc/manifest/application, Devices in /var/svc/manifest/device, Milestones in /var/svc/manifest/milestone, Netzwerk in /var/svc/manifest/network, Plattformspezifisch in /var/svc/manifest/platform, Sitelokal in /var/svc/manifest/site und System in /var/svc/manifest/system. Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF, Files & Directories Profiles in /var/svc/profile: generic open.xml Profile für netservice open generic limited net.xml Profile für netservice limited platform * Platformspezifische Profiles ns * Nameservice Profiles Defaulteinstellung Per Softlink auf das entsprechende Profile Logfiles in /var/svc/log: *.log für jeden Service, hier stehen die Logfiles der Methoden!! Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF, Files & Directories Repository in /etc/svc repository.db Aktives und aktuelles Repository von SMF repository-boot-<Datum-Stamp> Bootrepositoryarchiv repository-boot Softlink auf letztes Bootrepository repository-manifest import-* Repository aus Manifestimport repository-manifest Link auf letztes Repository aus Manifestimport volatile Unterverzeichnis für Logfiles der Services Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Service States SMF Service States Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Service States Administrationsinterface: svcs(1M) Statusanzeige der Services unter SMF-Kontrolle svcadm(1M) Administration der Services svcprop(1M) Anzeige von Properties von Services svccfg(1M) Konfiguration der Services Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Service States, Anzeige svcs Anzeige aller Services mit Status enabled svcs -a Anzeige aller Services nova# svcs STATE ... legacy_run legacy_run legacy_run legacy_run legacy_run ... online online online online online ... STIME FMRI 12:59:43 12:59:43 12:59:43 12:59:44 12:59:44 lrc:/etc/rc2_d/S31utsyscfg lrc:/etc/rc2_d/S40llc2 lrc:/etc/rc2_d/S42ncakmod lrc:/etc/rc2_d/S51utacleanup lrc:/etc/rc2_d/S72autoinstall 12:59:19 12:59:19 12:59:20 12:59:20 12:59:21 svc:/system/svc/restarter:default svc:/network/pfil:default svc:/network/loopback:default svc:/system/installupdates:default svc:/milestone/name-services:default Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Gültige Zustände s.g. Fault Managed Resource IDs (FMRI): legacy run Service über rc-Scripten gestartet online Service aktiviert, laufend disabled Service deaktiviert offline Service aktiviert, läuft nicht degraded Service aktiviert, läuft nicht vollständig maintence Fehler bei Service-Start/Betrieb, manuell auflösen uninitialized Konfiguration wurde noch nicht gelesen Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Service States, Anzeige svcs -p <...> Anzeige der zu einem Service gehöhrenden Prozesse nova# svcs -p cron STATE STIME FMRI online 12:59:32 svc:/system/cron:default 12:59:32 224 cron svcs -d <...> Anzeige der Services, von dem ein Service abhängt nova# svcs -d cron STATE STIME FMRI online 12:59:21 svc:/milestone/name-services:default online 12:59:32 svc:/system/filesystem/local:default svcs -D <...> Anzeige der abhängigen Services nova# svcs -D cron STATE STIME FMRI online 12:59:46 svc:/milestone/multi-user:default Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Service States, Anzeige svcs -l <... > Detailierte Anzeige der Instanzen, Abhängigkeiten, Zustände etc. . . nova# svcs -l cron fmri svc:/system/cron:default name clock daemon (cron) enabled true state online next_state none state_time Thu Mar 16 12:59:32 2006 logfile /var/svc/log/system-cron:default.log restarter svc:/system/svc/restarter:default contract_id 34 dependency require_all/none svc:/system/filesystem/local (online) dependency require_all/none svc:/milestone/name-services (online) Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Service States, Anzeige svcs -vx <... Erklärt Servicezustände, -v Flag listet abhängige Service mit auf > nova# svcs -xv cron svc:/system/cron:default (clock daemon (cron)) State: online since Thu May 17 12:59:32 2007 See: man -M /usr/share/man -s 1M cron See: man -M /usr/share/man -s 1 crontab See: /var/svc/log/system-cron:default.log Impact: None. Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Service States, Anzeige svcs -vx Ohne Angabe eines Services listet alle Services auf, die zwar enabled sind, jedoch nicht laufen nova# svcs -xv svc:/application/print/server:default (LP print server) State: disabled since Thu May 17 12:59:20 2007 Reason: Disabled by an administrator. See: http://sun.com/msg/SMF-8000-05 See: man -M /usr/share/man -s 1M lpsched See: /var/svc/log/application-print.log Impact: 2 dependent services are not running: svc:/application/print/rfc1179:default svc:/application/print/ipp-listener:default Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Manifeste/Profile/Methoden 1. Überprüfen Sie das Servicemanifest zum Multi-User-Server, welche Serviceabhängigkeiten bestehen? 2. Überprüfen Sie das Servicemanifest des Services cron. Welche Serviceabhängigkeiten bestehen? Wie lautet die Start-Methode? Wo steht die Startmethode? Was wird darin wie gestatet? 3. Welcher Prozess fürht Startmethoden aus? 4. Verifizieren Sie das Manifest filesystem-local. Welche Abhängigkeiten bestehen. Kann die Maschine ohne diesen Service starten? 5. Verifizieren Sie den Milestone network. Welche Service müssen erfolgreich gestartet sein, damit er erreicht wird? 6. Muss ein Service online sein um erflogreich gestartet zu werden? 7. Wenn ja, was passiert, wenn ein dependant-service auf disabled gesetzt wird und das System rebootet werden soll? 8. Verifizieren Sie hierzu den Milestone svc:/milestone/name-services 9. Verifizieren Sie aus die nis-Services. Ist NIS aktiviert? Wurde der Milestone svc:/milestone/name-services erreicht? Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Administration SMF Administration Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Administration Adminsitration einzelner Services: svcadm(1M) Start Persistenter Start eines Services: svcadm enable <FMRI> Stop Persistenter Stop eines Services: svcadm disable <FMRI> Reread Neu Einlesen der Parameterfiles eines Services: svcadm refresh <FMRI> Restart Stop-Start einers Services: svcadm restart <FMRI> Clear Zurücksetzen des Fehlerstatus eines Services: svcadm clear <FMRI> Mark Markieren für Stati von Folgediensten eines Services: svcadm mark <Status><FMRI> Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun LAB: SMF Administration 1. Listen Sie alle Services auf, die aktiviert sind. 2. Laufen alle Services Fehlerfrei? 3. Welche Service sind deaktiviert? (Wie ist dies zu erkenen?) 4. Laufen die NFS-Services? 5. Welchen Prozess startet und monitored der Service svc:/network/smtp:sendmail? 6. welchen Service startet und monitored svc:/system/cron? 7. Stoppen Sie den sendmailservice persistent, wurde dadurch auch der Sendmailprozess gestoppt? rebooten Sie Ihre Maschine. Ist der Sendmailservice nach dem Reboot aktiv? 8. Stoppen Sie die Services webmin, ipp-listener, cde-printinfo, svc:/network/http:apache2, smserver, rfc1179, ocfserv, rmvolmgr, hal. Rebooten Sie Ihr System und verifizieren Sie das Ergebnis. 9. Deaktivieren Sie die Legacy-Services S47pppd und S70uucp. Was ist zu tun? 10. Listen Sie alle Services auf, von dennen der Miletone mult-user abhängt, listen Sie alle Services auf von dem multi-user abhängt. 11. Listen Sie die Services auf, von denen filesystem/autofs abhängt. 12. Deaktivieren Sie cron, bind, system-log und filesystem/local, reboten Sie Ihre Maschine. In welchen Milestone kommt sie? 13. Sorgen Sie dafür, das die Maschine wieder in den multi-user-server kommt. Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Milestones/System State Service Management Facility - Milestones - Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Milestones/System State Runlevel Historische Beschreibung des System Status, singleuser/multiuser etc. Der Runlevel bei Solaris 10 ist nahezu immer 3 Milestone Milestones beschreiben eine Aggregation gestarteter Services, sie stellen selbst keinen Service dar, Service können Abhängigkeiten zu Milestones definieren. Milestone milestone/single-user milestone/multi-user milestone/multi-user-server Rolf M Dietze: Systemverwaltung Solaris 10 Runlevel 0 S 2 3 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Manipulation der Milestones Wechsel Ist zwischen Milestones zu wechseln: nova# svcadm milestone milestone/single-user boot Soll in einen anderen als den Defaultmilestone gebootet werden so ist dies beim boot mitzuteilen boot -m milestone=single-user verbose boot Ein Boot, bei dem auf der Systemconsole angezeigt wird, was wann gestartet wird: boot -m verbose Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Milestones/System State nova# svcs |grep milestone online 12:59:21 svc:/milestone/name-services:defaul online 12:59:24 svc:/milestone/network:default online 12:59:27 svc:/milestone/devices:default online 12:59:30 svc:/milestone/single-user:default online 12:59:33 svc:/milestone/sysconfig:default online 12:59:46 svc:/milestone/multi-user:default online 12:59:59 svc:/milestone/multi-user-server:de Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun svc:/milestone/name-services Um den Milestone name-services zu erreichen, müssen folgende Service gestartet sein: dns svc:/network/dns/client ldap svc:/network/ldap/client nis client svc:/network/nis/client nisplus svc:/network/rpc/nisplus Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun svc:/milestone/network Der Milestone network ist erreicht, wenn folgende Services gestartet wurden: loopback svc:/network/loopback Konfiguration des Loopbackinterfaces physical svc:/network/physical Konfiguration aller Netzwerkinterfaces Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun svc:/milestone/devices und sysconfig Der Milestone devices ist erreicht, wenn alle Gerätekonfigurationen abgearbeitet wurden Der Milestone sysconfig beschreibt die Abarbeitung aller Konfigurationsmethoden für Hostnamen, Zeitzonen, Locales etc. sysconfig ist abhängig von svc:/milestone/single-user Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun svc:/milestone/single-user sysidtool Systemidentifikation svc:/system/sysidtool:net svc:/system/sysidtool:system nodename Konfiguration des Nodenames svc:/system/identity:node filesystem-minimal Root-fs etc. svc:/system/filesystem/minimal milestone-devices Erfolgreicher Deviceimport svc:/milestone/devices manifests Manifestimport svc:/system/manifest-import loopback-network Loopbackdevice svc:/network/loopback network Netzwerkkonfiguration svc:/milestone/network Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun svc:/milestone/multi-user Der multi-user Milestone entspricht dem klassischen Runlevel 2 und ist erreicht, wenn folgende Services gestartet wurden: milestones Aggregation der Milestones: svc:/milestone/single-user svc:/milestone/sysconfig svc:/milestone/name-services fs Filesysteme svc:/system/filesystem/local kdmconfig Consolekonfiguration bei x86 Systemen svc/platform/i86pc/kdmconfig rpcbind rpcbind-Services svc:/network/rpc/bind syslog Syslogservices svc:/system/system-log /sbin/rc2 Mit grob geschätzem Timeoutwert Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun svc:/milestone/multi-user-server Der multi-user-server Milestone entspricht dem klassischen Runlevel 3 und ist erreicht, wenn folgende Services gestartet wurden: multi-user Alles Services des Multiuserbetriebes svc:/milestone/multi-user /sbin/rc3 Mit grob geschätzem Timeoutwert Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun LAB: SMF Milestones 1. Booten Sie Ihre LAB-Maschine SMF-Konform in den Single-User Status. 2. Verifizieren Sie dies mit dem Kommando who -r 3. Was fällt Ihnen auf? 4. Verifizieren Sie den Systemstatus mit dem Kommando svcs | grep milestone 5. In welchem Milestone befindet sich das System? 6. Führen Sie das Kommando svcadm enable multi-user-server 7. Melden Sie sich erneut an und verifizieren Sie wie oben den Systemstatus. 8. Ist Ihre Maschine in den Multi-User-Server Status gekommen? Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Konfiguration SMF Konfiguration Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Konfiguration Konfiguration von Serviceproperties: svccfg(1M) Subkommandos, die auf Profileebene wirken apply Profile enable/disable Service entsprechend Serviceprofile extract >Profile aktuelles Serviceprofile –>Datei Subkommandos, die auf Manifestebene wirken import File Lädt Manifest aus File export Exportiert eine FMRI archive aktuelle Servicebeschreibungen in Datei inventory Listet die in einem Manifestfile deklarierten FMRIs auf svc:> inventory /tmp/nfsserver svc:/network/nfs/server:default svc:/network/nfs/server validate Syntaxcheck svc:> validate /tmp/nfsserver couldn’t parse document Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Entity-Kommandos select Auswahl einer Selektion oder einer FMRI svc:> select nfs/server svc:/network/nfs/server> unselect Verlassen einer Selektion oder einer FMRI svc:/network/nfs/server> unselect svc:> list Auflisten der Entities einer Selektion svc:> list ... network/smtp network/ssh system/device/fc-fabric system/filesystem/autofs ... add Erzeugen einer neuen Entity delete Löschen einer Entity oder einer FMRI Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Property-Gruppenkommandos listpg Auflisten einer Gruppe svc:/network/nfs/server> listpg network dependency nlockmgr dependency mapid dependency ... share-group dependency filesystem-local dependency general framework dependents framework application framework start method refresh method stop method tm_common_name template tm_man_nfsd template addpg Hinzufügen einer Propertygruppe delpg Löschen einer Propertygruppe Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Property Kommandos listprop Auflisten aller Properties in der aktuellen Selektion svc:/network/nfs/server> listprop network dependency network/entities fmri svc:/milestone/network network/grouping astring require_any network/restart_on astring error network/type astring service nlockmgr dependency nlockmgr/entities fmri svc:/network/nfs/nlockmgr nlockmgr/grouping astring require_all nlockmgr/restart_on astring error nlockmgr/type astring service mapid dependency mapid/entities fmri svc:/network/nfs/mapid mapid/grouping astring optional_all mapid/restart_on astring error mapid/type astring service rpcbind dependency .... setprop Setzen einer Property delprop Löschen einer Property editprop Ruft einer Editor ($EDITOR) auf um die aktuellen Properties bzw. deren Einstellung manuell zu ändern Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Propety Value Kommandos addpropvalue Einer Property einen Wert zuweisen delpropvalue Wert einer Property löschen setenv Setzen einer Environmentvariablen innerhalb von svccfg(1M) unsetenv Löschen einer Environmentvariablen innerhalb von svccfg(1M) Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Service Management Facility Contract Filesystem Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Contract Filesystem, ctfs Holder Process 1 ctrun(Process) notify(event) 2 CTID sched() 2 ctfs Rolf M Dietze: Systemverwaltung Solaris 10 2 event Process Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF/ctfs ctrun Starten eines Contracts für einen Prozess sunrise# ctrun -i core,empty,fork,hwerr,exit xterm & ctstat Statusausgabe aller Contracts sunrise# ctstat CTID ZONEID 1 0 4 0 5 0 17 0 18 0 20 0 24 0 31 0 33 0 38 0 .... 114 0 TYPE process process process process process process process process process process STATE owned owned owned owned orphan owned owned owned owned owned process owned HOLDER 0 1 7 7 7 7 7 7 7 EVENTS 0 0 0 0 0 0 0 0 0 0 QTIME - NTIME - 1043 0 - - ctwatch Monitoring eines Contracts sunrise# ctwatch 114 CTID EVID Rolf M Dietze: Systemverwaltung Solaris 10 CRIT ACK CTTYPE SUMMARY Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF/ctfs repository.db (Service,CTID,Start,Stop,Parameter) SMF 1 run(Service) 2 CTID sched() 2 ctfs Rolf M Dietze: Systemverwaltung Solaris 10 2 Service Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun LAB: ctfs Machen Sie sich mit der Funktionalität des ctfs vertraut. 1. Erlauben Sie den Zugriff auf Ihren X-Server von Ihrer LAB-Maschine aus: rayserver> echo $DISPLAY 4.0 rayserver> xhost +labclient labclient> DISPLAY=rayserver:4.0 2. Starten Sie ein xterm(1) unter ctfs-Kontrolle mit geeigneten Optionen (z.B.: fork,exit,core). Es öffnet sich ein xterm auf Ihrem Desktop. 3. Finden Sie die ContractID des gestarteten Prozesses heraus 4. Starten Sie ein Eventmonitoring in einem zweiten Fenster. 5. Starten Sie in dem xterm, dass sich auf Ihrem Desktop geoeffnet hat einen oder mehrere Prozesse, im Hintergrund. 6. Verifizieren Sie die forks und exits der von Ihnen gestarteten Prozesse in der Ausgabe des ctwatch-Prozesses. 7. Lassen Sie sich mit ps(1) auch die ContractID anzeigen, verifizieren Sie mit ptree(1) die Prozesshierarchie 8. Terminieren Sie nach und nach alle Prozesse innerhalb des gemonitoreten Contracts inclusive des zuerst gestarteten xterms und Verifizieren sie Ausgabe im ctwatch. Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Manifeste, Beispiel: cron I SMF Servicemanifeste Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Manifeste, Beispiel: cron I <?xml version="1.0"?> <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> <!-Copyright 2005 Sun Microsystems, Inc. All rights reserved. CDDL HEADER START ... --> <service_bundle type=’manifest’ name=’SUNWcsr:cron’> <service name=’system/cron’ type=’service’ version=’1’> <single_instance /> <dependency name=’usr’ type=’service’ grouping=’require_all’ restart_on=’none’> <service_fmri value=’svc:/system/filesystem/local’ /> </dependency> Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Manifeste, Beispiel: cron II <dependency name=’ns’ type=’service’ grouping=’require_all’ restart_on=’none’> <service_fmri value=’svc:/milestone/name-services’ /> </dependency> <dependent name=’cron_multi-user’ <propval name=’action_authorization’ type=’astring’ value=’solaris.smf.manage.cron’ /> </property_group> <instance name=’default’ enabled=’false’ /> <stability value=’Unstable’ /> Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun SMF Manifeste, Beispiel: cron III <template> <common_name> <loctext xml:lang=’C’> clock daemon (cron) </loctext> </common_name> <documentation> <manpage title=’cron’ section=’1M’ manpath=’/usr/share/man’ /> <manpage title=’crontab’ section=’1’ manpath=’/usr/share/man’ /> </documentation> </template> </service> </service_bundle> Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun lofi Loopback File Driver Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun lofi nx1# lofiadm -a /export/cdromimage /dev/lofi/1 nx1# lofiadm Block Device /dev/lofi/1 File /export/cdromimage nx1# mount -F hsfs -o ro /dev/lofi/1 /mnt nx1# umount /mnt nx1# lofiadm -d /dev/lofi/1 Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Devicefilesystem Devicefilesystem Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun devFS nx1# ls -lL /dev/term/* crw-rw-rw1 root sys crw-rw-rw1 root sys 20, 20, 0 Sep 12 2003 /dev/term/a 1 Oct 20 23:31 /dev/term/b nx1> ls -l /dev/dsk/c0t0d0s7 lrwxrwxrwx 1 root root 42 Feb 29 23:33 /dev/dsk/c0t0d0s7 -> ../../devices/pci@4,4000/scsi@6,1/sd@0,0 :h Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun devFS nx1> ls -lL /dev/dsk/c4t0d0s? brw-r----1 root sys 118,488 May 25 10:58 /dev/dsk/c4t0d0s0 brw-r----1 root sys 118,489 May 25 10:58 /dev/dsk/c4t0d0s1 brw-r----1 root sys 118,490 May 25 10:58 /dev/dsk/c4t0d0s2 brw-r----1 root sys 118,491 May 25 10:58 /dev/dsk/c4t0d0s3 brw-r----1 root sys 118,492 May 25 10:58 /dev/dsk/c4t0d0s4 brw-r----1 root sys 118,493 May 25 10:58 /dev/dsk/c4t0d0s5 brw-r----1 root sys 118,494 May 25 10:58 /dev/dsk/c4t0d0s6 brw-r----1 root sys 118,495 May 25 10:58 /dev/dsk/c4t0d0s7 Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun devFS nx1> ls -lL total 0 crw-rw-rwcrw-rw-rwcrw-rw-rwcrw-rw-rwcrw-rw-rwcrw-rw-rwcrw-rw-rwcrw-rw-rwcrw-rw-rwcrw-rw-rwcrw-rw-rw... 1 1 1 1 1 1 1 1 1 1 1 root root root root root root root root root root root Rolf M Dietze: Systemverwaltung Solaris 10 sys sys sys sys sys sys sys sys sys sys sys 33,777 33,841 33,845 33,793 33,857 33,861 33,797 33,785 33,849 33,853 33,789 May May May May May May May May May May May 35 31 31 31 31 31 31 31 31 31 31 20:30 19:01 19:01 19:01 19:01 19:01 19:01 19:01 19:01 19:01 19:01 0 0b 0bn 0c 0cb 0cbn 0cn 0h 0hb 0hbn 0hn Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun devFS, path to inst device sd0 sd1 sd2 sd3 sd4 .... nfs1 .... r/s 0.0 0.0 0.0 0.0 0.0 0.0 extended device statistics w/s kr/s kw/s wait actv 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 5.0 0.0 30.5 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 Rolf M Dietze: Systemverwaltung Solaris 10 0.0 0.0 0.0 0.0 svc_t 0.0 0.0 0.0 8.7 0.0 %w 0 0 0 0 0 %b 0 0 0 3 0 0.0 0 0 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun devFS, path to inst “OBP-Devicepath“ Instanznummer “Treibername“ "/pci@4,4000/scsi@6,1/sd@1,0" 16 "sd" Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun devFS, path to inst "/options" 0 "options" "/pseudo" 0 "pseudo" "/pci@1f,4000" 0 "pcipsy" "/pci@1f,4000/network@1,1" 0 "hme" "/pci@1f,4000/ebus@1" 0 "ebus" "/pci@1f,4000/ebus@1/su_pnp@14,3803f8" 0 "su_pnp" "/pci@1f,4000/ebus@1/su_pnp@14,3602f8" 1 "su_pnp" "/pci@1f,4000/ebus@1/se@14,400000" 0 "se" "/pci@1f,4000/ebus@1/fdthree@14,3203f0" 0 "fd" "/pci@1f,4000/ebus@1/ecpp@14,340278" 0 "ecpp" "/pci@1f,4000/ebus@1/power@14,724000" 0 "power" "/pci@1f,4000/ebus@1/i2c@14,600000" 0 "i2c" "/pci@1f,4000/ebus@1/i2c@14,600000/adc@0,9e" 0 "i2cadc" "/pci@1f,4000/ebus@1/i2c@14,600000/adc@0,9c" 1 "i2cadc" "/pci@1f,4000/ebus@1/i2c@14,600000/adc@0,9a" 2 "i2cadc" "/pci@1f,4000/ebus@1/i2c@14,600000/gpio@0,78" 0 "i2cgpio" "/pci@1f,4000/ebus@1/i2c@14,600000/gpio@0,70" 1 "i2cgpio" "/pci@1f,4000/pci@3" 0 "pci_pci" "/pci@1f,4000/pci@3/SUNW,qlc@4" 0 "qlc" "/pci@1f,4000/pci@3/SUNW,qlc@4/fp@0,0" 0 "fp" "/pci@1f,4000/pci@3/SUNW,qlc@4/fp@0,0/ses@w5080020000048bab,0" "/pci@1f,4000/pci@3/SUNW,qlc@4/fp@0,0/ses@w5080020000048bac,0" .... "/pci@1f,4000/pci@3/SUNW,qlc@5" 1 "qlc" "/pci@1f,4000/pci@3/SUNW,qlc@5/fp@0,0" 1 "fp" "/pci@1f,4000/pci@3/SUNW,qlc@5/fp@0,0/ses@w5080020000048bab,0" "/pci@1f,4000/pci@3/SUNW,qlc@5/fp@0,0/ses@w5080020000048bac,0" ... "/pci@4,4000/scsi@6,1" 1 "glm" "/pci@4,4000/scsi@6,1/sd@0,0" 15 "sd" Rolf M Dietze: Systemverwaltung Solaris 10 32 "ses" 33 "ses" 34 "ses" 35 "ses" Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun devFS, Management Bei Laufender Solaris-Domain: I I devfsadm devfsadm -C Bei einem Boot/Reboot: I I Aus OBP: {128} ok boot -r Aus laufendem OS durch Reboot: nx1# reboot -- -r I Alternativ aus laufendem OS durch Reboot: nx1# touch /reconfigure nx1# reboot Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Zones Solaris Container, Zones Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Zones Nonglobal Zone Global Zone Applications Applications Applications Applications Applications Core Services (SolarisOE) Core Services (SolarisOE) Virtual Device Layer Virtual Device Layer zoneadmd zoneadmd Applications Applications Applications Zone Core Services up to 8192 Solaris Containers (SolarisOE) Virtual Device Layer zoneadmd Management Platform Administration Layer Monitoring Administration Core Solaris Services (Running SolarisOE) Hardware Device Layer OpenFirmware Layer Harware Layer Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Zones t=0 proc1 proc2 ... t=i zone1 ... zsched() sched() Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Zones zoneadm reboot uninstalled zoneadm uninstall zoneadm halt (zone: halt, init 0 ...) zonecfg create zoneadm uninstall zoneadm ready zoneadm uninstall configured installed zoneadm halt ready (down) interactive configuration zoneadm boot commit zoneadm boot zonecfg incomplete running zonecfg zonecfg Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Zones set Prop set dir=/mnt resource scope end add fs add ResType end revert cancel global scope zonecfg Diskfile Rolf M Dietze: Systemverwaltung Solaris 10 exit commit commit Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Zones Aufsetzen einer Zone entsprechend der Sun-Dokumentation: menkar# zonecfg -z mza mza: No such zone configured Use ’create’ to begin configuring a new zone. zonecfg:mza> create zonecfg:mza> set zonepath=/export/zones/mza zonecfg:mza> set autoboot=true zonecfg:mza> add inherit-pkg-dir zonecfg:mza:inherit-pkg-dir> set dir=/opt/csw zonecfg:mza:inherit-pkg-dir> end zonecfg:mza> add net zonecfg:mza:net> set physical=hme0 zonecfg:mza:net> set address=10.10.100.72 zonecfg:mza:net> end zonecfg:mza> add rctl zonecfg:mza:rctl> set name=zone.cpu-shares zonecfg:mza:rctl> add value (priv=privileged,limit=20,action=none) zonecfg:mza:rctl> end zonecfg:mza> add attr zonecfg:mza:attr> set name=comment zonecfg:mza:attr> set type=string zonecfg:mza:attr> set value="limitzone" zonecfg:mza:attr> end zonecfg:mza>verify zonecfg:mza>commit zonecfg:mza>exit Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Zones Installieren und Starten einer Zone menkar# zoneadm -z mza install menkar# zoneadm -z mza boot menkar# zoneadm list -v ID NAME STATUS 0 global running 1 mza running zlogin -C mzb [Connected to zone ’mzb’ console] PATH / /export/zones/mza [NOTICE: Zone booting up] SunOS Release 5.11 Version snv_23 64-bit Copyright 1983-2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Hostname: mzb Loading smf(5) service descriptions: 108/108 Hiernach erfolgt auf der Zone-Console die Systemidentifikation (sysidcfg) wie sie aus der Installation von Solaris her bekannt ist. Rolf M Dietze: Systemverwaltung Solaris 10 Administration von Festplatten LVM/SDS Softraid Simple Tools Benutzerverwaltung, lokal Network Filesystem, NFS Automoun Schedulerclass Bei Verwendung von Resourcelimitierungen und Zones empfielt sie die Umstellung der Default Schedulerkalsse. menkar# dispadmin -l CONFIGURED CLASSES ================== SYS (System Class) TS (Time Sharing) FX (Fixed Priority) IA (Interactive) RT (Real Time) menkar# dispadmin -d fss menkar# reboot .... menkar# dispadmin -l CONFIGURED CLASSES ================== SYS TS FSS FX IA RT (System Class) (Time Sharing) (Fair Share) (Fixed Priority) (Interactive) (Real Time) Rolf M Dietze: Systemverwaltung Solaris 10