2021年5月6日星期四

Dell Centos Linux Raid driver install & monitor

 *** Download the driver

https://www.dell.com/support/home/zh-hk/drivers/driversdetails?driverid=f48c2


*** Use Gnu-zip or other unzip utility to open the file and find the Linux directory. you can find the rpm file in it. Something like that "perccli-007.0127.0000.0000-1.noarch.rpm" without quote.

*** Put the file in the root home directory and then use the command to install.

rpm -ivh perccli-007.0127.0000.0000-1.noarch.rpm

*** or upgrade 

rpm -Uvh perccli-007.0127.0000.0000-1.noarch.rpm

*** Use the command to show the Raid Status

 /opt/MegaRAID/perccli/perccli64 /c0/eall/sall show




IBM/Lenovo Server Centos Linux MegaRaid install & show info

*** downlaod 

https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip


*** unzip the files

unzip 8-07-14_MegaCLI.zip


*** if you don't have unzip, use this command to install

yum install unzip


*** install the driver, change to the Linux directory and run this commnad

sudo yum install MegaCli-8.07.14-1.noarch.rpm


*** run the command and get help

/opt/MegaRAID/MegaCli/MegaCli64 -h


*** check raid simple status

/opt/MegaRAID/MegaCli/MegaCli64 -ShowSummary -aALL


HP Centos Linux Raid setup using HP management software respository

 Reference https://downloads.linux.hpe.com/SDR/project/mcp/


*** Create /etc/yum.repos.d/mcp.repo


vi /etc/yum.repos.d/mcp.repo

[mcp]

name=Management Component Pack

baseurl=http://downloads.linux.hpe.com/repo/mcp/dist/dist_ver/arch/project_ver

enabled=1

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-mcp


Where:

   dist          centos, fedora, opensuse, oracle, asianux

   dist_ver      Browse repo to identify supported distribution versions

   arch          i386, x86_64

   project_ver   current, 12.05, 11.30, 11.21, 11.05, 10.62, 10.50, 10.40, 10.20


Example file for Centos 6.9Server x86_64 current

[mcp]

name=Management Component Pack

baseurl=http://downloads.linux.hpe.com/repo/mcp/CentOS/6.9Server/x86_64/current/

enabled=1

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-mcp


*** Get keys from HP site

rpm --import https://downloads.linux.hpe.com/SDR/hpPublicKey2048.pub

rpm --import https://downloads.linux.hpe.com/SDR/hpPublicKey2048_key1.pub

rpm --import https://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub


*** use this command to check and view the package available 

yum --disablerepo="*" --enablerepo="mcp" list available


*** if you want to install ssacli and which is available then use this command as below 

yum --disablerepo="*" --enablerepo="mcp" install ssacli


*** done

2021年5月5日星期三

Yum update centos 6.x after EOL

***Backup the original file

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo-backup


*** Create the yum upgrade CentOS-Base.repo file that use vault.centos.org or mirrors.sohu.com


vi /etc/yum.repos.d/CentOS-Base.repo

[base]

name=CentOS-6

failovermethod=priority

baseurl=https://vault.centos.org/6.9/os/x86_64/

#baseurl=http://mirrors.sohu.com/centos/6.9/os/x86_64/

gpgcheck=0


*** Then clean up yum cache & rebuild again

yum clean all & yum makecache


*** Try yum upgrade again

yum upgrade



*** God bless you.