- 论坛徽章:
- 0
|
请教大家个问题,在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). |
|