Виртуалка:
root = '/dev/xvda2 ro'
disk = [
'phy:/dev/vg00/netgw-disk,xvda2,w',
'phy:/dev/vg00/netgw-swap,xvda1,w',
]
Мне нужно примонтировать виртуалку для снятия бекапа, но получается следующее:
# lvcreate -L 2G -s -n backup -p r /dev/vg00/netgw-disk
Logical volume "backup" created
# mount -o ro /dev/vg00/backup /mnt/
mount: wrong fs type, bad option, bad superblock on /dev/mapper/vg00-backup,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
# dmesg | tail
[9845153.577280] xen-blkback:ring-ref 8, event-channel 17, protocol 1 (x86_64-abi)
[9845153.900924] blkfront: xvda: barrier or flush: disabled
[9845153.920303] xvda: unknown partition table
[9845175.105508] EXT4-fs (xvda): INFO: recovery required on readonly filesystem
[9845175.105515] EXT4-fs (xvda): write access unavailable, cannot proceed
[9846742.883671] EXT4-fs (dm-4): INFO: recovery required on readonly filesystem
[9846742.883679] EXT4-fs (dm-4): write access unavailable, cannot proceed
# parted /dev/vg00/backup print
Model: Linux device-mapper (snapshot) (dm)
Disk /dev/dm-4: 21,5GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0,00B 21,5GB 21,5GB ext4
Весь день рою гугол, но решения так и не нашел.