命令挂在逻辑卷上

命令挂在逻辑卷上

我正在使用虚拟机SUSE Linux Enterprise Server 11. 在服务器发生一次严重关闭后,磁盘 ID已更改。我已在以下文件中将值更改并替换为新值:

/boot/grub/menu.lst
/boot/grub/device.map

因为/etc/fstab指定了 /dev/sda*,所以不需要更改。但是在启动过程中出现错误:

mount: special device /dev/u01/u01_lv does not exist
failed

lv显示器输出:

 --- Logical volume ---
  LV Name                /dev/u01/u01_lv
  VG Name                u01
  LV UUID                JofgN1-bFZD-9VYg-WT49-UJOe-Swdq-aCx7dZ
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

我用命令激活vgchange -ay并重新安装它。但是,当尝试在此磁盘上创建文件、删除文件、打开文本文件等时,命令挂起

我也尝试过了dd if=/dev/sda4 of=/dev/null bs=1M并且效果很好。

光伏系统输出:

  PV         VG   Fmt  Attr PSize  PFree
  /dev/sda4  u01  lvm2 a-   40.00g    0

fdisk -l

Disk /dev/sda: 75.2 GB, 75161927680 bytes
255 heads, 63 sectors/track, 9137 cylinders, total 146800640 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xaa571b60

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      208895      103424   83  Linux
/dev/sda2          208896    58718207    29254656   83  Linux
/dev/sda3        58718208    62910463     2096128   82  Linux swap / Solaris
/dev/sda4        62910464   146800639    41945088   8e  Linux LVM

Disk /dev/mapper/u01-u01_lv: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders, total 83886080 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/u01-u01_lv doesn't contain a valid partition table

dmsetup 信息 /dev/mapper/u01-u01_lv

Name:              u01-u01_lv
State:             ACTIVE
Read Ahead:        1024
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      253, 0
Number of targets: 1
UUID: LVM-LvAgWmBsFAxRrv0YEosS6WuUcfKwnsa9JofgN1bFZD9VYgWT49UJOeSwdqaCx7dZ

相关内容