Linux调整Inode

以ext4分区为例

  1. #以下操作/dev/sdaX数据将会全部丢失
  2. mkfs.ext4 -N 希望的Inode /dev/sdaX
  3. blkid /dev/sdaX
  4. vim /etc/fstab #修改新UUID
  5. mount -a

linux查看UUID

  1. #查询UUID
  2. [root@localhost data]# ls -l /dev/disk/by-uuid/
  3. total 0
  4. lrwxrwxrwx. 1 root root 10 Apr 10 15:49 d2822e25-bbff-4bd9-9812-95edb189e4ab -> ../../sda1
  5. lrwxrwxrwx. 1 root root 10 Apr 11 01:55 e8cc2ee7-03df-4535-9581-c6f1bf7dd7d1 -> ../../sda3
  6. lrwxrwxrwx. 1 root root 10 Apr 10 15:49 fb381ef9-6557-422f-bdcd-7acc90ec8d54 -> ../../sda2
  7.  
  8. [root@localhost data]# blkid /dev/sda3
  9. /dev/sda3: UUID="e8cc2ee7-03df-4535-9581-c6f1bf7dd7d1" TYPE="ext4"

Device eth0 does not seem to be present, delaying initialization.

vmware或kvm xen类型的虚拟机,克隆镜像后,新的Centos无法启动网络,提示Device eth0 does not seem to be present, delaying initialization.
已知的两个解决办法:

  1. (1)
  2. mv /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth1
  3. vi /etc/sysconfig/network-scripts/ifcfg-eth0
  4. 直接改成
  5. DEVICE=eth1
  6. TYPE=Ethernet
  7. ONBOOT=YES
  8. NM_CONTROLLED=yes
  9. BOOTPROTO=static
  10. IPADDR=YourIP
  11. GATEWAY=YourGateWay
  12. NETMASK=255.255.255.0
  13. service network restart 就起来了,网卡是eth1
  14.  
  15. (2)
  16. vi /etc/sysconfig/network-scripts/ifcfg-eth0 
  17. DEVICE=eth0
  18. TYPE=Ethernet
  19. ONBOOT=YES
  20. NM_CONTROLLED=yes
  21. BOOTPROTO=static
  22. IPADDR=YourIP
  23. GATEWAY=YourGateWay
  24. NETMASK=255.255.255.0
  25. #DEVICE IPADDR 等都要大写
  26. rm -f /etc/udev/rules.d/70-persistent-net.rules 
  27. reboot

U盘安装Centos6.x无法引导的解决办法

U盘引导开机,卡在这一步:Press enter key to begin installation process
打开U盘里syslinux\syslinux.cfg
把default vesamenu.c32这一行删除
新增一行
default linux timeout 3 label linux kernel vmlinuz append initrd=initrd.img

MogileFS安装及相关测试

#检查系统时间
date

#安装环境所需工具
yum install make gcc unzip perl-DBD-MySQL perl perl-CPAN perl-YAML perl-Time-HiRes -y

#使用cpanm安装所需模块
wget https://raw.github.com/miyagawa/cpanminus/master/cpanm -O /usr/local/bin/cpanm –no-check-certificate && chmod +x /usr/local/bin/cpanm

#使用cpanm安装mogileFS及所需模块
cpanm App::cpanminus MogileFS::Server MogileFS::Utils IO::AIO IO::WrapTie Danga::Socket

#安装Mysql服务器,将存放MogileFS所有元信息,建议主从模式
yum install mysql-server.i386 -y
Read more »

1 1