我无法将新卷(由SAN存储配置)添加为主机LVM卷的PhysicalVolume.这是错误消息:
原文链接:https://www.f2er.com/ubuntu/348511.html#sudo pvcreate /dev/sdc1 -v Device /dev/sdc1 not found (or ignored by filtering).
操作系统:Ubuntu 14.04.2 LTS(GNU / Linux 3.16.0-30-通用x86_64)
FDISK:
#sudo fdisk /dev/sdc -l Disk /dev/sdc: 2198.0 GB,2197999845376 bytes 237 heads,20 sectors/track,905689 cylinders,total 4292968448 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 1048576 bytes Disk identifier: 0x00031fdb Device Boot Start End Blocks Id System /dev/sdc1 2048 4292968447 2146483200 8e Linux LVM
分手:
#sudo parted /dev/sdc GNU Parted 2.3 Using /dev/sdc Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: HP MSA 2040 SAN (scsi) Disk /dev/sdc: 2198GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 1049kB 2198GB 2198GB primary lvm
过滤器(仅限未注释的行):
filter = [ "a/.*/" ] global_filter = [ "a|loop0|","a|loop1|","a|sda5|","r|.*|" ]
partprobe:
sudo partprobe -s /dev/sda: msdos partitions 1 2 <5> /dev/sdb: msdos partitions 1 2 /dev/sdc: msdos partitions 1 /dev/sdd: msdos partitions 1 /dev/mapper/devstack--vg-swap_1: loop partitions 1 /dev/mapper/devstack--vg-root: loop partitions 1
到目前为止我尝试了什么:
> fdisk / dev / sdc n,p,1,ENTER 2次,t,8e,w
>(parted)mklabel msdos
>(分开)mklabel gpt
>(parted)mklabel循环
>零填充/ dev / sdc的第一个扇区
>零填充/ dev / sdc
> partprobe
> partprobe / dev / sdc
>重启