Имеется виртуалка Ubuntu 11.10 на Hyper-V, появилась необходимость увеличить дисковое пространство для файловой системы. Запуск команды resize2fs -p /dev/mapper/VolGroup00-LogVol00 приводит к ошибке:
root@mail02:~# resize2fs -p /dev/mapper/VolGroup00-LogVol00
resize2fs 1.41.14 (22-Dec-2010)
resize2fs: Bad magic number in super-block while trying to open /dev/mapper/VolGroup00-LogVol00
Couldn't find valid filesystem superblock.
Подскажите, пожалуйста, как победить.
root@mail02:~# fdisk -l
Disk /dev/sda: 136.9 GB, 136899993600 bytes
255 heads, 63 sectors/track, 16643 cylinders, total 267382800 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: 0x000e6a9c
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 263188479 131593216 83 Linux
/dev/sda2 263190526 269531250 3170362+ 5 Extended
/dev/sda3 269531251 1171875000 451171875 8e Linux LVM
/dev/sda5 263190528 267380735 2095104 8e Linux LVM
Disk /dev/hda: 644.2 GB, 644245094400 bytes
255 heads, 63 sectors/track, 78325 cylinders, total 1258291200 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: 0x000e6a9c
Device Boot Start End Blocks Id System
/dev/hda1 * 2048 263188479 131593216 83 Linux
/dev/hda2 263190526 269531250 3170362+ 5 Extended
/dev/hda3 269531251 1171875000 451171875 8e Linux LVM
/dev/hda5 263190528 267380735 2095104 8e Linux LVM
Disk /dev/mapper/VolGroup00-LogVol00: 462.0 GB, 461998391296 bytes
255 heads, 63 sectors/track, 56168 cylinders, total 902340608 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/VolGroup00-LogVol00 doesn't contain a valid partition table
root@mail02:~# Disk /dev/mapper/VolGroup00-LogVol00 doesn't contain a valid partition table
root@mail02:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 124G 21G 97G 18% /
udev 494M 12K 494M 1% /dev
tmpfs 201M 292K 200M 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 501M 0 501M 0% /run/shm
lvm> vgdisplay
Found duplicate PV xxZNn2oI53bzUVn1GgLq290HR9s2AybR: using /dev/sda5 not /dev/hda5
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 7
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 2
Act PV 2
VG Size 432,27 GiB
PE Size 4,00 MiB
Total PE 110660
Alloc PE / Size 110149 / 430,27 GiB
Free PE / Size 511 / 2,00 GiB
VG UUID 0I1MOH-7rx4-whpz-NArc-76LM-4eFX-4tLwiG
(parted) print
Model: Ø]▒ (ide)
Disk /dev/hda: 644GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 135GB 135GB primary ext4 boot
2 135GB 138GB 3246MB extended
5 135GB 137GB 2145MB logical lvm
3 138GB 600GB 462GB primary lvm
Листинги и содержимое текстовых файлов следует добавлять в сообщение с помощью тега [spoiler]...[/spoiler], либо прикреплять к сообщению в виде отдельного файла.
--HP