mount cgroup失败
mount none -t cgroup /cgroup报mount: mounting none on /cgroup failed: Invalid argument
该命令默认挂载cgroup的所有子系统,如果某个子系统没有被编入内核,就会出现该错误。
mount设备忙
以下摘自http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=2026676
[root@lichn /]# fdisk -l
Disk /dev/sda: 73.4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 16 128488+ 83 Linux
/dev/sda2 17 1060 8385930 82 Linux swap
/dev/sda3 1061 1582 4192965 83 Linux
/dev/sda4 1583 8924 58974615 5 Extended
/dev/sda5 1583 4193 20972826 83 Linux
/dev/sda6 4194 4715 4192933+ 83 Linux
/dev/sda7 4716 8924 33808761 83 Linux
Disk /dev/sdb: 73.4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 8924 71681998+ 83 Linux
Disk /dev/dm-0: 72.7 GB, 72746008576 bytes
255 heads, 63 sectors/track, 8844 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/dm-0p1 1 8924 71681998+ 83 Linux
我fdisk -l 得到以上信息,红色字体的这条信息很重要,正常的硬盘是不会有这个信息的,后来一查,才知究竟。
硬盘我之前做过RAID 0 ,后来服务器更换了RAID卡为普通SAS控制器,但是当初忘记了把硬盘的RAID信息清除,导致硬盘中仍保存着RAID信息,所以挂载会出错。
解决办法:找RAID卡清除掉硬盘保存的RAID信息
至于为什么不用RAID卡了,磁盘仍保留RAID信息,原因就不赘述了。
另外,这个问题在linux系统下会出现,windows下加新硬盘则不会出现这个问题。