记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
xenserver删除和重建SR如何删除在XenCenter里无法删除的SR存储因为PBD已经连接的缘故,我们无法直接使用sr-destroy删除SR。首先我们先找到SR所在的PDBxe sr-list #找到要删除的SRxe pbd-list sr-uuid=SR的UUID然后断开连接xe pbd-unplug uuid=PBD的UUID然后删除SRxe sr-destroy uuid=SR的UUID如果上一步无法完成,请尝试使用此方法:xe sr-forget uuid=SR的UUID在XenServer中用新硬盘创建新的Storage存储xe sr-create name-label="名称" shared=false device-config-device=硬盘设备(如:/dev/sdb) type=lvm------补充:查看xenserver后台任务:xe task-list结束xenserver后台任务:xe task-cancel uuid=xxxxxxxx重启XAPIservice xapi restart
XenServer 6自动启动VM功能在哪里? 你首先必须能够单独为每个VM配置之前,池级别的功能 *查找池的UUID: [root@ ~]# xe pool-list uuid ( RO) : [uuid-pool] name-label ( RW): [pool-name] name-description ( RW): [pool-desc] master ( RO): [uuid-xs] default-SR ( RW): [uuid-sr] [root@ ~]# xe pool-list uuid ( RO) : [uuid-pool] name-label ( RW): [pool-name] name-description ( RW): [pool-desc] master ( RO): [uuid-xs] default-SR ( RW): [uuid-sr] 它返回以下值: UUID池:一池的唯一标识符。 池名称:池的名称。 池递减:池的设置说明。 UUID - XS:唯一标识符的XenServer,目前是池主。 UUID - SR:默认的存储池的存储库配置的唯一标识符。 *启用自动断电功能池级别: [root@ ~]# xe pool-param-set uuid=[uuid-pool] other-config:auto_poweron=true [root@ ~]# xe pool-param-set uuid=[uuid-pool] other-config:auto_poweron=true 它使用下面的附加 ​​语法: UUID池:一池的唯一标识符。 *查找VM的UUID: quicky方式找到你的虚拟机的UUID是运行VM - list命令。 但是,这并不会给你的所有虚拟机的概述,所...
xenserver6.0实现VM随主机自动启动的解决办法针对Linux虚拟机1.        设置虚拟机所在的POOL支持auto_poweronEnable the VM auto start feature on a pool :xe pool-param-set uuid=... other-config:auto_poweron=true2.        设置Linux虚拟机auto_poweronThen on each VM you want to auto start you would execute:xe vm-param-set uuid=... other-config:auto_poweron=true
INFO: task pdflush:27505 blocked for more than 120 secondscentos 5.4 系统 使用时,过几天就死一次机或是远程很慢。进系统 中发现内存使用完.swap 分区也使用完了。显示 器有显示INFO: task pdflush:27505 blocked for more than 120 seconds.此类的信息。原因一直不明。可能是以下几种原因。1,硬盘有问题。可以使用badblocks -sv /dev/sda 检查硬盘。2,网络问题,可能是被攻击了。导致内存使用很高。
Windows主机管理系统WebsitepanelWebsitepanel是一个开源,免费的用于Windows2003或Windows2008平台的虚拟主机管理系统。支持集群 分布式架构 。 支持系统 Windows Server 2008 R2 全部版本Windows Server 2008 全部版本, 32 和 64 位 Windows Server 2003 全部版本, 32 和 64 位 Web 服务器 IIS 7.5 IIS 7.0 IIS 6.0 ColdFusion 7/8/9 FTP 服务器 MS FTP 7.5 MS FTP 7.0 MS FTP 6.0 Gene6 FTP Server Serv-U FTP Server 6.x FileZilla FTP Server Mail 服务器 SmarterMail 2.x – 6.x MailEnable 2.x – 4.x Merak Mail Server 8.x – 10.x MDaemon 9.x – 10.x hMailServer 4.x ArgoMail Server 1.x Ability Mail Server 2.x 数据库引擎 Microsoft SQL Server 2000/2005/2008 of any edition Microsoft SQL Server 7.0 of any edition MySQL Server of 4.0.x, 4.1.x and 5.x versions Microsoft Access 2000 DNS 服务器 Microsoft DNS Server (bundled with Windows Server) Simple DNS Plus 4.x-5.x ISC BIND DNS Server Nettica DNS Service 统计服务器 SmarterStats 3.x – 4.x AWStats Statistics (free software) 中间件 Microsoft Exchange ...
温州动车事故54名责任人处理情况一览刘志军张曙光刘志军 铁道部原部长、党组书记 对事故发生负有主要领导责任,鉴于其涉嫌严重经济问题,另案一并处理。张曙光 铁道部原副总工程师、运输局原局长,2006年6月起兼任铁道部客运专线系统集成办公室副主任、技术系统集成项目组组长 对事故发生负有主要领导责任,鉴于其涉嫌严重经济问题,另案一并处理。陆东福 铁道部副部长、党组成员 给予记过处分。季学胜 铁道部科学技术司司长、党总支书记,2007年8月至2008年5月任铁道部运输局副局长兼客运专线技术部主任 给予撤职、撤销党内职务处分。徐啸明 广州铁路(集团)公司董事长、党委书记,2005年7月至2008年5月任铁道部运输局副局长兼基础部主任,2006年6月任铁路客运专线技术系统集成项目组信号组组长 给予撤职、撤销党内职务处分。何华武 铁道部总工程师,2006年6月起兼任铁道部客运专线系统集成办公室主任 给予记过处分。耿志修 铁道部安全总监兼副总工程师,2003年5月至2008年5月任铁道部科学技术司司长 给予降级、党内严重警告处分。张骥翼 京福铁路(安徽)公司董事、总经理、党工委书记兼上海铁路局副局长,2006年10月至2008年12月任铁道部运输局客运专线技术部副主任 给予...
Dos下权限修改一、使用Cacls.exe命令  这是一个在Windows 2000/XP/Server 2003操作系统下都可以使用的命令,作用是显示或者修改文件的访问控制表,在命令中可以使用通配符指定多个文件,也可以在命令中指定多个用户。命令语法如下:Cacls filename [/T] [/E] [/C] [/G usererm] [/R user [...]] [/P usererm [...]] [/D user [...]]Filename:显示访问控制列表(以下简称ACL)/T:更改当前目录及其所有子目录中指定文件的ACL/E:编辑ACL而不替换/C:在出现拒绝访问错误时继续   /G Userer:perm:赋予指定用户访问权限,Perm代表不同级别的访问权限,其值可以是R(读取)、W(写入)、C(更改,写入)、F(完全控制)等。/R user:撤销指定用户的访问权限,注意该参数仅在与“/E”一起使用时有效。/P user:perm:替换指定用户的访问权限,perm的含义同前,但增加了“N(无)”的选项。/D user:拒绝指定用户的访问。  实例一:查看文件夹的访问控制权限  例如,这里我们希望查看h:\temp文件夹的访问控制权限,那么只需要在“开始→运行”对话框或切换到命令提示符模式下,键入如下命令:Cacls h:\temp  此时,我们会看到所有用户组和用户对h:\temp文件夹的访问控制权限项目,这...
Using VNC to Connect to a XenServer VM’s ConsoleIn order to present a virtual machine’s console in XenCenter, XenServer creates a VNC stream for each VM that is running on the server.  The VNC session is bound to the localhost address of the server (127.0.0.1) and is therefore not directly accessible from external VNC clients.  In this post I’ll discuss a quick and dirty way to connect directly to the VM’s console using a remote VNC client and an SSH tunnel.  Since there is not a version of XenCenter that runs on Linux, this method allows you to connect to XenServer VM consoles from a Linux machine.This post will assume that the user doesn’t have access to XenCenter, but does have root access to the XenServers in a resource pool.  To create the SSH tunnel it will expect that you’re using OpenSSH.  If not, you’ll need to look at your SSH utility’s documentation to determine how to create SSH sessions and tunnels.  Some VNC clients have the ability ...
阻止暴力破解SSH用户密码    今天我说怎么收不到邮件了,原来邮件服务器欠费了。FT,查流量发现这几天有几个SB,一    直在暴力试密码。    由于ssh我加上了有效用户验证,只有几个用户可以登录上,本来以为他们会死心。TMD这么    有恒心和毅力,可以我们没有钱和他们玩,封!    iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --set    iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent    --update --seconds 10 --hitcount 2 -j DROP    如果一分钟内试两次的话,就block那个IP,永远!    感觉是有些过分的,但是为了流量还是恨下心做了。    主要是改端口已经对这些人不管用了,用nmap一下就能够扫到ssh的端口,还是这个比较有    效。    主要参考:    http://forums.serverbeach.com/archive/index.php/t-4497.html
 
0

badblocks指令

发表者:分类:Devops2011-12-20 13:18:07 阅读[3452]
badblocks指令  硬盘是一个损耗设备,当使用一段时间后可能会出现坏道等物理 故障。电脑硬盘出现坏道后,如果不及时更换或进行技术处理,坏道就会越来越多,并会造成频繁死机和数据丢失。最好的处理方式是更换磁盘,但在临时的情况 下,应及时屏蔽坏道部分的扇区,不要触动它们。badblocks就是一个检查坏道位置的工具。一、命令参数badblocks使用格式为:引用badblocks  [  -svwnf  ]  [  -b block-size ] [ -c blocks_at_once ] [ -i       input_file ] [ -o output_file ] [ -p num_passes ] [ -t test_pattern  ]       device [ last-block ] [ start-block ]参数含义是:引用-b blocksize  指定磁盘的区块大小,单位为字节,默认值为“block 4K ”(4K/block)-c blocksize  每个区块检查的次数,默认是16次-f  强制在一个已经挂载的设备上执行读写或非破坏性的写测试操作  (我们建议先umount设备,然后再进行坏道检测。仅当/etc/mtab出现误报设备挂载错误的时候可以使用该选项)-i file  跳过已经显示在file文件中的坏道,而不进行检测(可以避免重复检测)-o fi...
    总共268页,当前第235页 | 页数:
  1. 225
  2. 226
  3. 227
  4. 228
  5. 229
  6. 230
  7. 231
  8. 232
  9. 233
  10. 234
  11. 235
  12. 236
  13. 237
  14. 238
  15. 239
  16. 240
  17. 241
  18. 242
  19. 243
  20. 244
  21. 245