免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2290 | 回复: 1
打印 上一主题 下一主题

FC6下做LVM发生未知错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-01 20:23 |只看该作者 |倒序浏览
请教大家个问题,在FC6下做LVM时候产生个问题,我在装LINUX时候就分了两个区,/dev/hda1 挂在了/下,/dev/hda2挂在了/usr/local下,剩下的容量我在进入系统后利用fdisk 分的,错误产生如下,请大家多帮小弟看看。

[root@localhost ~]# fdisk -l

Disk /dev/hda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         382     3068383+  83  Linux
/dev/hda2             383         509     1020127+  83  Linux
/dev/hda3             510         753     1959930   8e  Linux LVM
/dev/hda4             754        1044     2337457+  8e  Linux LVM
[root@localhost ~]# fdisk /dev/hda

The number of cylinders for this disk is set to 1044.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): d
Partition number (1-4): 3

Command (m for help): d
Partition number (1-4): 4

Command (m for help): p

Disk /dev/hda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         382     3068383+  83  Linux
/dev/hda2             383         509     1020127+  83  Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# fdisk -l

Disk /dev/hda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         382     3068383+  83  Linux
/dev/hda2             383         509     1020127+  83  Linux
[root@localhost ~]# clear
[root@localhost ~]# fdisk -l

Disk /dev/hda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         382     3068383+  83  Linux
/dev/hda2             383         509     1020127+  83  Linux
[root@localhost ~]# fdisk /dev/hda

The number of cylinders for this disk is set to 1044.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (510-1044, default 510):
Using default value 510
Last cylinder or +size or +sizeM or +sizeK (510-1044, default 1044): +1500M

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Selected partition 4
First cylinder (693-1044, default 693): 4
Value out of range.
First cylinder (693-1044, default 693):
Using default value 693
Last cylinder or +size or +sizeM or +sizeK (693-1044, default 1044):        
Using default value 1044

Command (m for help): p

Disk /dev/hda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         382     3068383+  83  Linux
/dev/hda2             383         509     1020127+  83  Linux
/dev/hda3             510         692     1469947+  83  Linux
/dev/hda4             693        1044     2827440   83  Linux

Command (m for help): t
Partition number (1-4): 3
Hex code (type L to list codes): 8e
Changed system type of partition 3 to 8e (Linux LVM)

Command (m for help): t
Partition number (1-4): 4
Hex code (type L to list codes): 8e
Changed system type of partition 4 to 8e (Linux LVM)

Command (m for help): p

Disk /dev/hda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         382     3068383+  83  Linux
/dev/hda2             383         509     1020127+  83  Linux
/dev/hda3             510         692     1469947+  8e  Linux LVM
/dev/hda4             693        1044     2827440   8e  Linux LVM

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@localhost ~]#
[root@localhost ~]# partprobe
Error: Error informing the kernel about modifications to partition /dev/hda4 -- Device or resource busy.  This means Linux won't know about any changes you made to /dev/hda4 until you reboot -- so you shouldn't mount it or use it in any way before rebooting.
Warning: The kernel was unable to re-read the partition table on /dev/hda (Device or resource busy).  This means Linux won't know anything about the modifications you made until you reboot.  You should reboot your computer before doing anything with /dev/hda.
Warning: Unable to open /dev/hdc read-write (Read-only file system).  /dev/hdc has been opened read-only.
[root@localhost ~]# fdisk -l

Disk /dev/hda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         382     3068383+  83  Linux
/dev/hda2             383         509     1020127+  83  Linux
/dev/hda3             510         692     1469947+  8e  Linux LVM
/dev/hda4             693        1044     2827440   8e  Linux LVM
[root@localhost ~]# pvscan
  No matching physical volumes found
[root@localhost ~]# pccreate /dev/hda3
-bash: pccreate: command not found
[root@localhost ~]# pvcreate /dev/hda3
  Can't open /dev/hda3 exclusively.  Mounted filesystem?
[root@localhost ~]# pvcreate /dev/hda4
  Device /dev/hda4 not found (or ignored by filtering).

论坛徽章:
0
2 [报告]
发表于 2008-08-01 23:52 |只看该作者
既然已经提示了,就重启一下机器再操作吧!
不是任何时候partprobe都好使的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP