저작자 표시 비영리 동일 조건 변경 허락
신고
크리에이티브 커먼즈 라이선스
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

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


  1. Ensure that your Linux virtual machine is powered on.
  2. If you are running a GUI interface, open a command shell.

    Note: Log in as a root user, or use the sudo command to complete each of these steps.
  3. Click VM in the virtual machine menu, then click Guest > Install/Upgrade VMware Tools and click OK.
  4. To create a mount point, run:

    mkdir /mnt/cdrom
  5. To mount the CDROM, run:

    mount /dev/cdrom /mnt/cdrom
  6. To copy the Compiler gzip tar file to a temporary local directory, run:

    cp /mnt/cdrom/VMwareTools-<version>.tar.gz /tmp/

    Where <version> is the VMware Tools package version.
  7. To change to the tmp directory and extract the contents of the tar file into a new directory called vmware-tools-distrib, run:
    • cd /tmp
    • tar -zxvf VMwareTools-<version>.tar.gz
  8. To change directory to vmware-tools-distrib and run the vmware-install.pl PERL script to install VMware Tools, run:
    • cd vmware-tools-distrib
    • ./vmware-install.pl

      Notes:
      • Follow the screen prompts to install the VMware Tools. Options in square brackets are default choices and can be selected by pressing Enter.
      • To compile VMware Tools successfully, you need gcc Compiler and Linux Kernel sources provided by your Linux distribution. Consult your Linux distribution documentation for details on how to install these packages.
      • It is normal for the console screen to go blank for a short time during the installation when the display size changes.
      • Some warnings or errors are normal, like when a files does not exist.
      • Depending on the Linux distribution, your network service might restart after installation. VMware recommends that you invoke this command from the console and not remotely.
  9. If you are running a GUI interface, restart your X Window session for any mouse or graphics changes to take effect.
  10. To start VMware Tools running in the background during an X Window session, run:

    /usr/bin/vmware-toolbox &
  11. Depending on your environment you may need to unmount the CDROM. To unmount the CDROM, run:

    umount /mnt/cdrom
  12. Depending on your environment, you may need to manually end the VMware Tools installation. To end the VMware Tools install, click VM in the virtual machine menu, then click Guest > End VMware Tools Install.

 

저작자 표시 비영리 동일 조건 변경 허락
신고
크리에이티브 커먼즈 라이선스
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