<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Linux on FakeMark</title>
    <link>https://www.fakemark.cn/tags/linux/</link>
    <description>Recent content in Linux on FakeMark</description>
    <image>
      <title>FakeMark</title>
      <url>https://www.fakemark.cn/</url>
      <link>https://www.fakemark.cn/</link>
    </image>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh</language>
    <lastBuildDate>Fri, 26 Jan 2018 21:58:26 +0000</lastBuildDate><atom:link href="https://www.fakemark.cn/tags/linux/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Linux 冷门小知识</title>
      <link>https://www.fakemark.cn/post/linux-%E5%86%B7%E9%97%A8%E5%B0%8F%E7%9F%A5%E8%AF%86/</link>
      <pubDate>Fri, 26 Jan 2018 21:58:26 +0000</pubDate>
      
      <guid>https://www.fakemark.cn/post/linux-%E5%86%B7%E9%97%A8%E5%B0%8F%E7%9F%A5%E8%AF%86/</guid>
      <description>redhat安装桌面环境方法 yum groupinstall &amp;#34;GNOME Desktop&amp;#34; &amp;#34;Graphical Administration Tools&amp;#34; ln sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target reboot cat命令高亮 alias cat=&amp;#39;pygmentize -g&amp;#39; 查找大文件夹 du -h /var --max-depth=1 查找大文件 find . -type f -size +800M -print0 | xargs -0 du -h | sort -nr 压缩 *.tar 用 tar –xvf 解压 *.gz 用 gzip -d或者gunzip 解压 *.tar.gz和*.tgz 用 tar –xzf 解压 *.bz2 用 bzip2 -d或者用bunzip2 解压 *.tar.bz2用tar –xjf 解压 *.Z 用 uncompress 解压 *.tar.Z 用tar –xZf 解压 *.rar 用 unrar e解压 *.zip 用 unzip 解压 关闭25端口 systemctl stop postfix systemctl disable postfix.service ss -tnl | grep 25 </description>
    </item>
    
    <item>
      <title>linux上安装华为多路径软件Ultrapath</title>
      <link>https://www.fakemark.cn/post/linux%E4%B8%8A%E5%AE%89%E8%A3%85%E5%8D%8E%E4%B8%BA%E5%A4%9A%E8%B7%AF%E5%BE%84%E8%BD%AF%E4%BB%B6ultrapath/</link>
      <pubDate>Wed, 24 Jan 2018 21:49:18 +0000</pubDate>
      
      <guid>https://www.fakemark.cn/post/linux%E4%B8%8A%E5%AE%89%E8%A3%85%E5%8D%8E%E4%B8%BA%E5%A4%9A%E8%B7%AF%E5%BE%84%E8%BD%AF%E4%BB%B6ultrapath/</guid>
      <description>基础环境 存储： 华为OceanStor5500T A控：192.168.128.101 B控：192.168.128.102 版本号：v200r001c01 服务器： 华为H5885V3 2台 （114号机柜1-2） CPU：24核 内存：64G 华为H5885V3 2台 （114号机柜3-4） CPU：48核 内存：32G 114号机柜（从上往下数） 1号srv为空闲未使用，也未使用存储空间，可用作管理存储； 2号srv为DATABASE，分配存储1.5T，主机、主机组、LUN、LUN组均为db； 3号srv为OA，分配存储空间1T，主机、主机组、LUN、LUN组均为oa，复制光盘文件到/data/rhel6.5,并作为本地yum仓库； 4号srv为软件开发用，未使用存储空间。 备注：1号srv安装了WIN 2K8 R2；2-4号这3台srv，均安装了RHEL6.5 华为存储空间计算方法 以6块900G的SAS硬盘为例： 1.物理空间转换因素的容量率 物理空间转换因素的容量率：（1^3）/(1.024^3)=93.13% 即此处损耗6.87% 2.热备因素的容量率 高12块备1块，小于12块的，如6块，其中1块容量做热备，热备因素的容量率：83.33% 即此处损耗16.67% 3.校验因素的容量率 6块硬盘最多只能采用4D+1P方式，5块盘，其中1块容量做校验，校验因素的容量率：80% 即此处损耗20% 4.单盘容量计算方法 单盘可用容量=单盘实际容量-硬盘保留区预留（512M+65M）-writehole占用的空间（256M）-元数据占用空间（2.06%）-选盘不均占用空间（1%） 5.保险箱盘的软件占用 总损耗率 &amp;gt; 6.87%+16.67%+20%+3.06%=46.6% 存储实际容量：900G*6*(1-0.466)=2.9T 实施步骤： 1.开机按del键，进入bios更改为usb cdrom启动。
2.安装rhel6.5基本服务器包
（自定义，外加勾选“development tools”和“server platform development”组件）
安装完成后检查
查看服务器信息是否正确 服务器版本 cat /etc/issue 内存大小 free -m 硬盘大小 df -h 系统位数 getconf LONG_BIT jdk安装情况 java -version 修改主机名 vim /etc/sysconfig/network 修改HOSTNAME项
HOSTNAME=DB（OA）&amp;ndash;直接修改HOSTNAME 重启后生效 3.配置华为存储5500T
配置主机、主机组、添加启动器（对应的服务器的hba卡的wwwn关联该主机） 在需要连接存储的服务器上，用cat /sys/class/fc_host/host*/port_name查看并记录hba卡的wwwn号 配置硬盘域、存储池、LUN、LUN组 创建LUN组和主机组的映射关系 由于服务器没有光驱设备，故采用外接光驱进行文件输入，建议光盘采用ISO9660格式数据存储，若使用FAT32格式存储可能出现系统无法识别光盘的情况
5.安装华为的UltraPath多路径软件,采用boot from local方式，使用Ultrapath。
[root@blog ~]# rpm -ivh UltraPath-8.01.036-RHEL6.x86_64.rpm [root@blog ~]# cd UltraPath-8.01.036-RHEL6.x86_64 [root@blog ~]# chmod 777 install.sh [root@blog ~]# ./install.sh [选择&amp;lt;1&amp;gt;--boot-from-Local 重启服务器，配置生效。（用chkconfig | grep nxup检验是否开机启动）
6.管理多路径软件upadmin
show path &amp;ndash;可以看到4条路径 check status show event show array &amp;ndash;查看存储设备 show vlun &amp;ndash;查看对应的lun组
安装完Ultrapath软件后，就能看到vlun已经收敛
用fdisk -l查看确认存储硬盘是否正确显示
start rebalancelun &amp;ndash;手动更新工作控制器
show iostat vlun_id=0,1,2,3 interval=10 &amp;ndash;每个10秒，更新查看vlun号为0,1,2,3的IOPS和带宽、响应等性能统计信息
其他命令 upRescan &amp;ndash;用于检查存储LUN更新情况
hostInfoTool.sh &amp;ndash;用于主机信息收集
防止乒乓效应	&amp;ndash;乒乓效应&amp;ndash;在集群环境中，映射LUN的存储控制器不断来回切换
7.挂载存储磁盘系统
[root@blog ~]# fdisk /dev/sdb [root@blog ~]# n [root@blog ~]# mkfs.</description>
    </item>
    
    <item>
      <title>Cron未执行原因详解</title>
      <link>https://www.fakemark.cn/post/cron%E6%9C%AA%E6%89%A7%E8%A1%8C%E5%8E%9F%E5%9B%A0%E8%AF%A6%E8%A7%A3/</link>
      <pubDate>Fri, 14 Jul 2017 06:26:32 +0000</pubDate>
      
      <guid>https://www.fakemark.cn/post/cron%E6%9C%AA%E6%89%A7%E8%A1%8C%E5%8E%9F%E5%9B%A0%E8%AF%A6%E8%A7%A3/</guid>
      <description>&lt;p&gt;写好的程序，手动执行没问题，上crontab就报错&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>CRT通过私钥登录LINUX服务器</title>
      <link>https://www.fakemark.cn/post/crt%E9%80%9A%E8%BF%87%E7%A7%81%E9%92%A5%E7%99%BB%E5%BD%95linux%E6%9C%8D%E5%8A%A1%E5%99%A8/</link>
      <pubDate>Thu, 18 May 2017 01:52:02 +0000</pubDate>
      
      <guid>https://www.fakemark.cn/post/crt%E9%80%9A%E8%BF%87%E7%A7%81%E9%92%A5%E7%99%BB%E5%BD%95linux%E6%9C%8D%E5%8A%A1%E5%99%A8/</guid>
      <description>&lt;p&gt;CRT通过私钥登录LINUX服务器&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>访问域名不需要加端口</title>
      <link>https://www.fakemark.cn/post/%E8%AE%BF%E9%97%AE%E5%9F%9F%E5%90%8D%E4%B8%8D%E9%9C%80%E8%A6%81%E5%8A%A0%E7%AB%AF%E5%8F%A3/</link>
      <pubDate>Sat, 11 Feb 2017 14:02:35 +0000</pubDate>
      
      <guid>https://www.fakemark.cn/post/%E8%AE%BF%E9%97%AE%E5%9F%9F%E5%90%8D%E4%B8%8D%E9%9C%80%E8%A6%81%E5%8A%A0%E7%AB%AF%E5%8F%A3/</guid>
      <description>&lt;p&gt;通常HTTP访问页面时自动重定向到80端口，hexo默认服务端口为4000，因而不能直接使用 80 端口，需要进行一个端口映射 4000 -&amp;gt; 80。&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
