当前位置: 技术问答>linux和unix
linux 中的LVM(logical Volume Management)问题求助?
来源: 互联网 发布时间:2016-11-25
本文导语: 最近在看LVM,看到: pvcreate /dev/device [/dev/device] ... The pvcreate command initializes (a) physical device(s) as (a) physical volume(s) (PV). Partitions must have the partition ID 8E (use fdisk, cfdisk or yast for partitioning), (whole) disks...
最近在看LVM,看到:
pvcreate /dev/device [/dev/device] ...
The pvcreate command initializes (a) physical device(s) as (a) physical volume(s) (PV). Partitions must have
the partition ID 8E (use fdisk, cfdisk or yast for partitioning), (whole) disks must have no partition table
(none, not just an empty one). To see all physical devices that are available, use the command
lvmdiskscan. The command pvscan shows all existing PVs.
上面提到整个磁盘不能够有分区表,我的问题如下:
1. 安装SUSE时应该要设置分区,这样分区表就存在了,如果安装上系统后,要设置逻辑卷,按照如上说明,需要先删除分区表,才能执行pvcreate,
删除分区表后,对系统有没有影响,系统还能启动吗?
pvcreate /dev/device [/dev/device] ...
The pvcreate command initializes (a) physical device(s) as (a) physical volume(s) (PV). Partitions must have
the partition ID 8E (use fdisk, cfdisk or yast for partitioning), (whole) disks must have no partition table
(none, not just an empty one). To see all physical devices that are available, use the command
lvmdiskscan. The command pvscan shows all existing PVs.
上面提到整个磁盘不能够有分区表,我的问题如下:
1. 安装SUSE时应该要设置分区,这样分区表就存在了,如果安装上系统后,要设置逻辑卷,按照如上说明,需要先删除分区表,才能执行pvcreate,
删除分区表后,对系统有没有影响,系统还能启动吗?
|
分区表都没了 分区还能使用啊 系统启动就更别提了
三种设备可以用作PV:
partitions, whole disks, and multiple devices (MD, Linux software RAID).
LZ说的应该是第二种whole disks吧
whole disks用作PV的时候,工具会check是不是有分区表,有的话就不行。这应该是为了防止误操作的
当然boot分区肯定是在另外的disk上了
三种设备可以用作PV:
partitions, whole disks, and multiple devices (MD, Linux software RAID).
LZ说的应该是第二种whole disks吧
whole disks用作PV的时候,工具会check是不是有分区表,有的话就不行。这应该是为了防止误操作的
当然boot分区肯定是在另外的disk上了
|
平常的分区是要存在的,物理卷都是在分区基础上创建的