vCenter Server Appliance 的防火墙设置

https://pubs.vmware.com/vsphere-60/index.jsp#com.vmware.vsphere.vcsa.doc/GUID-B37E5402-80B4-4846-B561-BF74500C99D8.html

部署 vCenter Server Appliance 之后,可以编辑 vCenter Server Appliance的防火墙设置,并可以创建防火墙规则。可以使用 vSphere Web Client 编辑防火墙设置。

使用防火墙规则,可以允许或阻止 vCenter Server Appliance 与特定服务器、主机或虚拟机之间的流量。您无法阻止特定端口,但可以阻止所有流量。

继续阅读“vCenter Server Appliance 的防火墙设置”

如何匹配VMWARE虚拟机硬盘和scsi的id

以10.10.10.2为例,如何匹配VMWARE虚拟机硬盘和scsi的id。
[root@svr07 ~]# ll -d /sys/block/sd*/device/scsi_device/*
drwxr-xr-x 3 root root 0 Aug 9 16:06 /sys/block/sda/device/scsi_device/2:0:1:0
drwxr-xr-x 3 root root 0 Aug 9 16:06 /sys/block/sdb/device/scsi_device/3:0:0:0
drwxr-xr-x 3 root root 0 Aug 9 16:06 /sys/block/sdc/device/scsi_device/3:0:1:0

2:0:1:0
取第一位和第三位数字,第一位数字2减去2,第二位数字不操作,结果为0:0,匹配到虚拟机的硬盘配置为SCSI(0:0) 继续阅读“如何匹配VMWARE虚拟机硬盘和scsi的id”

查看HBA卡信息和驱动(RHEL6)

Check HBA card and its driver’s info on linux(RHEL6)

http://fibrevillage.com/storage/9-check-hba-card-and-its-driver-s-info-in-linux-rhel6

This article also can be used for other cards with little or without change

Check if the host has HBA card installed and which type of card installed,

# lspci | grep -i fibre
15:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
15:00.1 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)

physical slot, driver, module information

继续阅读“查看HBA卡信息和驱动(RHEL6)”

路由增删改

原来:
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.250.0.0 0.0.0.0 255.255.255.0 U 1 0 0 eth1
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
10.0.0.0 10.250.0.1 255.0.0.0 UG 0 0 0 eth1
0.0.0.0 10.250.0.1 0.0.0.0 UG 0 0 0 eth1

需求:服务器10.250.0.31的默认网关指向10.250.0.252,同时新增路由访问内网10.0.0.0/8的下一跳为10.250.0.1 继续阅读“路由增删改”

快速删除大量文件/var/spool/postfix/maildrop/

目标目录:/var/spool/postfix/maildrop/,此目录生成大量文件导致inode写满。
mkdir /tmp/blank
rsync –delete-before -d /tmp/blank/ /var/spool/postfix/maildrop/
(在旧版rsync中可执行rsync –delete -rlptD /opt/testda/ /var/spool/clientmqueue)
rmdir /tmp/blank

将/etc/crontab中的MAILTO改成MAILTO=””
重启cron服务/etc/init.d/crond restart
maildrop目录就不会再产生文件

Pages: Prev 1 2 3 4 5 6 7 8 9 10 ... 51 52 53 Next