Sayfalar

22 Mayıs 2012 Salı

Solaris Sistem Donanım Bilgilerinin Elde Edilmesi


Solaris 10′da Sistem Donanım Bilgilerinin Elde Edilmesi


Solaris kurulu bir sistemde istediğim donanım bilgilerini gösterebilecek tek bir komut aradım ve bulamadım. Bu sebepten dolayı birkaç komut kombinasyonu ile istediğim bilgilere ulaştım. Eğer Solaris 10 için elde ettiğim bilgileri gösterebilecek tek bir komut biliyorsanız lütfen beni de aydınlatınız.
Test olarak Solaris kurulu bir server dan istediğimiz bilgileri elde edelim;
  • uname bilgisi

#uname -a
SunOS hd_info 5.10 Generic_141445-09 i86pc i386 i86pc
Komut çıktısını incelersek;
SunOS 5.10 = Solaris 10 işletim sistemine sahibiz.
hd_info = makinemizin hostname idir.
i86pc = x86 platformu desteklidir.
i386 = işlemci tipimiz
  • işletim sistemi tam sürüm bilgisi

#cat /etc/release
Solaris 10 10/09 s10x_u8wos_08a X86
Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.
Use is subject to license terms.
Assembled 16 September 2009
  • server mimari bilgisi (32 veya 64 bit)

#/bin/isainfo -kv
64-bit amd64 kernel modules
server 64 bit destekli amd64 kernel driver modüllerine sahiptir.
  • sistem genel ve slot bilgileri

#prtdiag
System Configuration: SUN MICROSYSTEMS SUN FIRE X4170 SERVER
BIOS Configuration: American Megatrends Inc. 07060215 06/19/2009
BMC Configuration: IPMI 1.5 (KCS: Keyboard Controller Style)
==== Processor Sockets ====================================
Version                          Location Tag
-------------------------------- --------------------------
Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz CPU 1
Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz CPU 2
==== Memory Device Sockets ================================
Type    Status Set Device Locator      Bank Locator
------- ------ --- ------------------- --------------------
other   empty  0   D2                  BANK2
other   empty  0   D1                  BANK1
other   empty  0   D0                  BANK0
other   in use 0   D5                  BANK5
other   empty  0   D4                  BANK4
other   empty  0   D3                  BANK3
other   in use 0   D8                  BANK8
other   empty  0   D7                  BANK7
other   empty  0   D6                  BANK6
other   empty  0   D2                  BANK2
other   empty  0   D1                  BANK1
other   empty  0   D0                  BANK0
other   empty  0   D5                  BANK5
other   empty  0   D4                  BANK4
other   empty  0   D3                  BANK3
other   in use 0   D8                  BANK8
other   empty  0   D7                  BANK7
other   empty  0   D6                  BANK6
FLASH   in use 0
==== On-Board Devices =====================================
 Zoar 2x GbE.
 Zoar 2x GbE.
 Zoar 2x GbE.
 Zoar 2x GbE.
==== Upgradeable Slots ====================================
ID  Status    Type             Description
--- --------- ---------------- ----------------------------
0   in use    PCI Express      PCIE0
1   in use    PCI Express      PCIE1
2   in use    PCI Express      PCIE2
SUN FIRE X4170 SERVER = Sun Server ın hangi seriden olduğunun bilgisi
Intel(R) Xeon(R) CPU  X5570  @ 2.93GHz CPU 1 = işlemci bilgisi
18 adet memory slot mevcut ve bunlardan 3 tanesi kullanımda. Yani bu 3 slota RAM takılmış. Birazdan serverda ne kadar RAM olduğunu inceleyeceğiz.
  • RAM miktarı saptanması

# /usr/sbin/prtconf | grep "Memory size"
Memory size: 12280 Megabytes
Komut çıktısından da anlayacağımız üzere serverda toplam 12 GB kapasitede RAM bulunmaktadır.
  • Harddisk bilgisi

# /usr/bin/iostat -En
c1t0d0           Soft Errors: 12 Hard Errors: 0 Transport Errors: 0
Vendor: TEAC     Product: DV-W28SS-R       Revision: 1.0C Serial No:
Size: 2.71GB <2708930560 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 12 Predictive Failure Analysis: 0
c0t0d0           Soft Errors: 2 Hard Errors: 0 Transport Errors: 0
Vendor: Sun      Product: STK RAID INT     Revision: V1.0 Serial No:
Size: 293.38GB <293381078528 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 2 Predictive Failure Analysis: 0
c2t600A0B80005BD3C8000006534CA9C63Ed0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SUN      Product: LCSM100_F        Revision: 0735 Serial No:
Size: 110.25GB <110254620160 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c2t600A0B80005BD3C8000006514CA9C606d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SUN      Product: LCSM100_F        Revision: 0735 Serial No:
Size: 109.52GB <109521665536 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c2t600A0B80005BD168000006254CA9C74Cd0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SUN      Product: LCSM100_F        Revision: 0735 Serial No:
Size: 109.52GB <109521665536 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c2t600A0B80005BD3C80000064C4CA9C4F1d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SUN      Product: LCSM100_F        Revision: 0735 Serial No:
Size: 109.52GB <109521665536 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
serverda 4 adet yaklaşık 110GB boyutunda storage partition ı bulunmakta. Ayrıca 300 GB lık bir disk te mevcut.
  • Detaylı donanım bilgisi;

Linux teki dmidecode komutuna benzer şekilde Solaris te smbios komutu mevcuttur. BIOS taki sistem bilgisini detaylı olarak ekrana basar.
Verilen bilgilerde detaylı BIOS bilgisi, PCI soket bilgileri, RAM soket bilgileri, Server ürün isim bilgileri, CPU ve cache bilgileri,  Port bilgileri bulunmaktadır.
# smbios
ID    SIZE TYPE
0     68   SMB_TYPE_BIOS (BIOS information)
 Vendor: American Megatrends Inc.
 Version String: 07060215
 Release Date: 06/19/2009
 Address Segment: 0xf000
 ROM Size: 1048576 bytes
 Image Size: 65536 bytes
 Characteristics: 0x1778bda90
 SMB_BIOSFL_ISA (ISA is supported)
 SMB_BIOSFL_PCI (PCI is supported)
 SMB_BIOSFL_PLUGNPLAY (Plug and Play is supported)
 SMB_BIOSFL_FLASH (BIOS is Flash Upgradeable)
 SMB_BIOSFL_SHADOW (BIOS shadowing is allowed)
 SMB_BIOSFL_ESCD (ESCD support is available)
 SMB_BIOSFL_CDBOOT (Boot from CD is supported)
 SMB_BIOSFL_SELBOOT (Selectable Boot supported)
 SMB_BIOSFL_ROMSOCK (BIOS ROM is socketed)
 SMB_BIOSFL_EDD (EDD Spec is supported)
 SMB_BIOSFL_525_12M (int 0x13 5.25" 1.2M floppy)
 SMB_BIOSFL_35_720K (int 0x13 3.5" 720K floppy)
 SMB_BIOSFL_35_288M (int 0x13 3.5" 2.88M floppy)
 SMB_BIOSFL_I5_PRINT (int 0x5 print screen svcs)
 SMB_BIOSFL_I14_SER (int 0x14 serial svcs)
 SMB_BIOSFL_I17_PRINTER (int 0x17 printer svcs)
 SMB_BIOSFL_I10_CGA (int 0x10 CGA svcs)
 0x100000000
 Characteristics Extension Byte 1: 0x33
 SMB_BIOSXB1_ACPI (ACPI is supported)
 SMB_BIOSXB1_USBL (USB legacy is supported)
 SMB_BIOSXB1_LS120 (LS-120 boot is supported)
 SMB_BIOSXB1_ATZIP (ATAPI ZIP drive boot is supported)
 Characteristics Extension Byte 2: 0x5
 SMB_BIOSXB2_BBOOT (BIOS Boot Specification supported)
 SMB_BIOSXB2_ETCDIST (Enable Targeted Content Distrib.)
 Version Number: 0.0
 Embedded Ctlr Firmware Version Number: 0.0
ID    SIZE TYPE
1     167  SMB_TYPE_SYSTEM (system information)
 Manufacturer: SUN MICROSYSTEMS
 Product: SUN FIRE X4170 SERVER
 Version:
.
.
.


Resource:bayramkaragoz

SOLARIS ZONES nedir?


SOLARIS ZONES / CONTAINER Kavramları (Solaris Bölgeleri)Zone nedir?

Solaris işletim sistemin deki zone kavramı sanal olarak çalışan işletim sistemine karşılık gelmektedir.  Zone’ lar çalıştırıldığı işletim sisteminden izole edilmiş sistemlerdir, bu bize;
  • Uygulamalarımızı farklı zone’ lara dağıtarak bir birlerinden etkilenmeden çalıştırmayı,
  • Tek bir makinaya birden fazla zone kurarak kendi yazılımlarımızı test etme,
  • İş yükünü göre kaynak paylaştırma gibi önemli yetenekler sağlar,
Gibi yetenekler sağlar.
Çoğu kaynakta Zone ile Container aynı anlamda kullanılmasına rağmen doğrusu Zone kavramı Solaris container ın bir öğesidir,
Zone lar bizlere asıl işletim sistemimizden ayrı ve bağımsız işletim sistemine ait servisleri sağlar, bunun sonucu olarak sistemimizin altında çalışan farklı bir işletim sistemine sahip oluruz,
Zone teknolojisini kullanabilmek için en azından Solaris 9 ya da 10 sürümüyüklü bir sisteme ihtiyaç vardır,
Bir Solaris sistem üzerine donanım kapasitene bağlı olarak en fazla 8192 zone kurulabilir,
Non-global zone: içinde bir birlerinden etkilenmeden çalışabilen uygulamaların bulunduğu bir kutu gibi düşünülebir, zone lar non-global zone içinde bulunur.
BrandZ (Branded Zones): Branded zone container ları oluşturmaya yarar,
Non-globalar zone larda Solaris  8  ya da Linux işletim sistemini emulate edebiliriz.
Solaris 10 8/07 (Sparc) işletim sistemi çalışan bir sistemde Solaris 8 ve 9 brand leri kullanılabilir,
Solaris 10 çalışan x86 ve x 64 bir sistemde Linuxlx brand’ i kullanabiliriz,
Zone’lar kullanım doğrultusunda sistem kaynaklarının dağıtılması amaçlı kullanımı oldukça yararlıdır.
Örneğin daha önce üç adet sunucu bulunan (uygulama sucusu, lisans sunucusu ve NIS sunucu) bir sitemi, üç farklı zone konfigürasyonu yaparak (uygulama_zone, lisans_zone ve NIS_zone) tek sunucuya indirgeyebiliriz.
Bununla birlikte kullanılmayan sistem kaynaklarını zone lar arası geçişleri mümkündür, sistemimizde 3 zone bulunsun ve her Zone  2 şer Gb lık ram ayırmış olalım, ihtiyaç halinde zone lar arasında kullanılmayan ram ihtiyaç duyan Zone’a dinamik olarak aktarılabilir,
Hiçbir zone diğer zone ya da zone’ lar daki hatalardan etkilenmez, yukarıda ki durumda uygulama sunucusunu kapatılması diğer iki zone un çalışmasını etkilemez ama bu üç uygulama tek bir işletim sistemine yüklü olsaydı ve uygulamalardan biri için sistemi restart etmek zorunda kalsaydık diğer 2 uygulamanın kullanıcılarıda bundan etkilenecekti.

Kaynak:unix-tr

21 Mayıs 2012 Pazartesi

What is ZFS?



What is ZFS?

ZFS is a new kind of file system that provides simple administration, transactional semantics,
 end-to-end data integrity, and immense scalability. ZFS is not an incremental improvement
 to existing technology; it is a fundamentally new approach to data management.
We've blown away 20 years of obsolete assumptions, eliminated complexity at the
 source, and created a storage system that's actually a pleasure to use.
ZFS presents a pooled storage model that completely eliminates the concept
 of volumes and the associated problems of partitions, provisioning, wasted
bandwidth and stranded storage. Thousands of file systems can draw from a
 common storage pool, each one consuming only as much space as it actually needs.
 The combined I/O bandwidth of all devices in the pool is available to all file systems at all times.
All operations are copy-on-write transactions, so the on-disk state is always valid.
 Every block is checksummed to prevent silent data corruption, and the data is
 self-healing in replicated (mirrored or RAID) configurations. If one copy is damaged,
ZFS detects it and uses another copy to repair it.
ZFS introduces a new data replication model called RAID-Z. It is similar to RAID-5
 but uses variable stripe width to eliminate the RAID-5 write hole (stripe corruption due
 to loss of power between data and parity updates). All RAID-Z writes are full-stripe writes.
 There's no read-modify-write tax, no write hole, and — the best part —
 no need for NVRAM in hardware. ZFS loves cheap disks.
But cheap disks can fail, so ZFS provides disk scrubbing. Similar to ECC memory scrubbing,
 all data is read to detect latent errors while they're still correctable.
A scrub traverses the entire storage pool to read every data block,
 validates it against its 256-bit checksum, and repairs it if necessary.
All this happens while the storage pool is live and in use.
ZFS has a pipelined I/O engine, similar in concept to CPU pipelines.
The pipeline operates on I/O dependency graphs and provides scoreboarding, priority,
 deadline scheduling, out-of-order issue and I/O aggregation. I/O loads that
 bring other file systems to their knees are handled with ease by the ZFS I/O pipeline.
ZFS provides 2 64 constant-time snapshots and clones. A snapshot is a read-only
 point-in-time copy of a file system, while a clone is a writable copy of a snapshot.
 Clones provide an extremely space-efficient way to store many copies of
mostly-shared data such as workspaces, software installations, and diskless clients.
You snapshot a ZFS file system, but you can also create incremental snapshots.
Incremental snapshots are so efficient that they can be used for remote replication,
 such as transmitting an incremental update every 10 seconds.
There are no arbitrary limits in ZFS. You can have as many files as you want: full
64-bit file offsets, unlimited links, directory entries, and so on.
ZFS provides built-in compression. In addition to reducing space usage by 2-3x,
compression also reduces the amount of I/O by 2-3x. For this reason, enabling
 compression actually makes some workloads go faster.
In addition to file systems, ZFS storage pools can provide volumes for applications
 that need raw-device semantics. ZFS volumes can be used as swap devices,
 for example. And if you enable compression on a swap volume, you now have
 compressed virtual memory.
ZFS administration is both simple and powerful. Please see the zpool(1M) and
zfs(1M) man pages for more information — and be sure to check out the Getting Started
 section for a whirlwind tour.
ZFS is already quite snappy on most workloads — and we're just getting started.