'1311'에 해당하는 글 1건

OMSA


 the Dell OpenManage Linux Repository.

 

설치 os: 

cat /etc/redhat-release 
CentOS release 5.8 (Final)

2.6.18-308.1.1.el5 i686

 

파티션 구성

Disk /dev/sda: 1499.2 GB, 1499212021760 bytes
255 heads, 63 sectors/track, 182268 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1288 10241437+ 83 Linux
/dev/sda3 1289 1543 2048287+ 82 Linux swap / Solaris
/dev/sda4 1544 182268 1451673562+ 83 Linux

Disk /dev/sdb: 1499.2 GB, 1499212021760 bytes
255 heads, 63 sectors/track, 182268 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 182268 1464067678+ 83 Linux

 

How to set up

Yum setup

 

  1. Set up the Dell OpenManage Repository at http://linux.dell.com/repo/hardware, like this:
    wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash

    Downloading GPG key: http://linux.dell.com/repo/hardware/latest/RPM-GPG-KEY-dell
    Importing key into RPM.
    Downloading GPG key: http://linux.dell.com/repo/hardware/latest/RPM-GPG-KEY-libsmbios
    Importing key into RPM.
    Write repository configuration
    Downloading repository RPM
    Installing repository rpm: http://linux.dell.com/repo/hardware/latest/platform_independent/rh50/prereq/dell-omsa-repository-2-5.noarch.rpm
    Installing yum plugins for system id
    Loaded plugins: fastestmirror
    Determining fastest mirrors
    * base: ftp.daum.net
    * extras: ftp.daum.net
    * updates: ftp.daum.net
    base | 1.1 kB 00:00 
    dell-omsa-indep | 1.9 kB 00:00 
    dell-omsa-indep/primary_db | 292 kB 00:01 
    dell-omsa-specific | 1.9 kB 00:00 
    dell-omsa-specific/primary_db | 292 kB 00:01 
    extras | 1.9 kB 00:00 
    extras/primary_db | 172 kB 00:00 
    updates | 1.9 kB 00:00 
    updates/primary_db | 862 kB 00:00 
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package yum-dellsysid.i386 0:2.2.27-4.12.1.el5 set to be updated
    --> Processing Dependency: smbios-utils-python >= 2.2.0 for package: yum-dellsysid
    --> Running transaction check
    ---> Package smbios-utils-python.i386 0:2.2.27-4.12.1.el5 set to be updated
    --> Processing Dependency: python-smbios = 2.2.27-4.12.1.el5 for package: smbios-utils-python
    --> Running transaction check
    ---> Package python-smbios.i386 0:2.2.27-4.12.1.el5 set to be updated
    --> Processing Dependency: libsmbios = 2.2.27-4.12.1.el5 for package: python-smbios
    --> Processing Dependency: python-ctypes for package: python-smbios
    --> Running transaction check
    ---> Package libsmbios.i386 0:2.2.27-4.12.1.el5 set to be updated
    ---> Package python-ctypes.i386 0:1.0.2-4.35.1.el5 set to be updated
    --> Finished Dependency Resolution

    Dependencies Resolved

    ===========================================================================================================================================================
    Package Arch Version Repository Size
    ===========================================================================================================================================================
    Installing:
    yum-dellsysid i386 2.2.27-4.12.1.el5 dell-omsa-indep 16 k
    Installing for dependencies:
    libsmbios i386 2.2.27-4.12.1.el5 dell-omsa-specific 1.5 M
    python-ctypes i386 1.0.2-4.35.1.el5 dell-omsa-specific 210 k
    python-smbios i386 2.2.27-4.12.1.el5 dell-omsa-specific 70 k
    smbios-utils-python i386 2.2.27-4.12.1.el5 dell-omsa-specific 63 k

    Transaction Summary
    ===========================================================================================================================================================
    Install 5 Package(s)
    Upgrade 0 Package(s)

    Total download size: 1.8 M
    Downloading Packages:
    (1/5): yum-dellsysid-2.2.27-4.12.1.el5.i386.rpm | 16 kB 00:00 
    (2/5): smbios-utils-python-2.2.27-4.12.1.el5.i386.rpm | 63 kB 00:00 
    (3/5): python-smbios-2.2.27-4.12.1.el5.i386.rpm | 70 kB 00:00 
    (4/5): python-ctypes-1.0.2-4.35.1.el5.i386.rpm | 210 kB 00:01 
    (5/5): libsmbios-2.2.27-4.12.1.el5.i386.rpm | 1.5 MB 00:02 
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    Total 208 kB/s | 1.8 MB 00:08 
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing : libsmbios 1/5 
    Installing : python-ctypes 2/5 
    Installing : python-smbios 3/5 
    Installing : smbios-utils-python 4/5 
    Installing : yum-dellsysid 5/5

    Installed:
    yum-dellsysid.i386 0:2.2.27-4.12.1.el5

    Dependency Installed:
    libsmbios.i386 0:2.2.27-4.12.1.el5 python-ctypes.i386 0:1.0.2-4.35.1.el5 python-smbios.i386 0:2.2.27-4.12.1.el5 
    smbios-utils-python.i386 0:2.2.27-4.12.1.el5

    Complete!
    Loaded plugins: dellsysid, fastestmirror
    No plugin match for: rhnplugin
    Cleaning up Everything
    Cleaning up list of fastest mirrors
    Done!


     
  2. Optional Install OpenManage Server Administrator:
    yum install srvadmin-all

     

 

실행
/opt/dell/srvadmin/sbin/srvadmin-services.sh start

접속확인:
https://아이피:1311

root 계정으로 접속함.

디스크 장애 복구는 아래 url 확인.


command line interface


root@backup /opt/dell/srvadmin/bin
05:37 PM 
root # ./omconfig storage -?

storage Set storage component properties.

The available command(s) are:

Command Description
adisk Supports array disk configuration commands. DEPRECATED: please use pdisk
pdisk Supports physical disk configuration commands.
vdisk Supports virtual disk configuration commands.
controller Supports controller configuration commands.
enclosure Supports enclosure configuration commands.
battery Supports battery configuration commands.
globalinfo Supports global storage configuration commands.
connector Supports connector configuration commands.
cachecade Supports cachecade(s) configuration commands.

Usage: omconfig <command...> [name=value...] ... [option...]

Valid command line options are:

-? Print available command(s) or command help.
-fmt <lst|xml> Format for output results, default is lst.
Where: lst List format.
xml Raw XML format.
-outc <file> Redirect output to file, delete old if exists.
OR
-outa <file> Redirect output to file, append to old if exists.
OR
Output may also be redirected using Operating System facilities (e.g. |more).

 

 

체크 명령:

/opt/dell/srvadmin/bin/omreport storage pdisk controller=0

 

아래 스크립트를 이용해서 체크하면 된다.

<?
$check =`/opt/dell/srvadmin/bin/omreport storage pdisk controller=0 | grep "^Status" | wc -l`;
//echo $check;
if(trim($check) ==6){
echo "pass";
}else{
 // 알림설정.
}
?>

저작자 표시 비영리 동일 조건 변경 허락
신고
크리에이티브 커먼즈 라이선스
Creative Commons License

WRITTEN BY
김병국
유용했던 자료를 기록해 두었습니다. 도움이 되시길~~~ Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you fun

트랙백이 하나이고 , 댓글이 없습니다.
secret