XFS device-mapper problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Recently I attemped to 'lvextend' a logical volume. My fatal error was that I had a typo in my prior 'vgextend' command in which I added /dev/sda to a volume that already held /dev/sda1. One the device for the disk (sda) and the other being the device for the only partition on the disk (sda1). Oh no!

I recieved the following error during the 'lvextend' command...
lvm> lvextend -L+1G /dev/Volume00/LogVol00
 Extending logical volume LogVol00 to 2.93 TB
 device-mapper ioctl cmd 9 failed: Invalid argument
 Couldn't load device 'Volume00-LogVol00'.
 Problem reactivating LogVol00

I have since 'lvreduce'd the logical volume back to its original size and 'vgreduce'd the volume by removing /dev/sda from the volume. Both of these commands ran well without any noticable errors.

However my problem is that I believe I have corrupted the block device located at /dev/mapper. The block device in that directory is Volume00-LogVol00. The filesystem is XFS. When I run xfs_check on the filesystem I recieve the following error:
xfs_check /dev/Volume00/LogVol00
xfs_check: /dev/Volume00/LogVol00 is invalid (cannot read first 512 bytes)


When I run:
# hexdump -C Volume00-LogVol00
#
It simply returns nothing except a prompt.

The directory listing looks like:
# pwd
/dev/mapper
#ls -l
crw-------  1 root root  10, 63 Nov 22 12:05 control
brw-------  1 root root 253,  1 Jun 17  2003 Volume00-LogVol00
brw-------  1 root root 253,  0 Nov 22 10:03 Volume01-LogVol00

Volume01 is a working block device while Volume00 seems to have stopped working.

I can 'hexdump' /dev/sda1, the physical volume device in Volume00, and it shows me the content of the filesystem (phew, still there).

How do I fix LVM and device-mapper to make this work again?

Thanks,
Frank

--
Frank J. Buchholz



begin:vcard
fn:Frank J. Buchholz
n:Buchholz;Frank J.
org:Education & Research Services
adr;dom:Suite 170;;151 Patton Ave;Asheville;NC;28801
email;internet:frankb@ercwc.org
title:Director, High Performance Computing
tel;work:828.350.2421
tel;fax:828.350.2008
tel;cell:828.606.2105
url:http://www.erswc.org
version:2.1
end:vcard

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux