Debian Lenny XFS/LVM problem

So there I was trying to create and mount an xfs filesystem on a debian testing (Lenny) box.

$ sudo mkfs.xfs /dev/scsi0/production
Warning - device mapper device, but no dmsetup(8) found
Warning - device mapper device, but no dmsetup(8) found
meta-data=/dev/scsi0/production  isize=256    agcount=4, agsize=8388608 blks
         =                       sectsz=512   attr=2
data     =                       bsize=4096   blocks=33554432, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096
log      =internal log           bsize=4096   blocks=16384, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
$ sudo mount /production/
mount: wrong fs type, bad option, bad superblock on /dev/mapper/scsi0-production,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
$ dmesg | tail
......
XFS: bad version
XFS: SB validate failed
$

The solution, it turned out, was just to upgrade xfsprogs…

$ sudo apt-get update && sudo apt-get install xfsprogs

And, of course, to reformat the filesystem…

$ sudo mkfs.xfs -f /dev/scsi0/production

I also installed dmsetup…

$ sudo apt-get install dmsetup

…to silence those annoying “Warning – device mapper device, but no dmsetup(8) found” messages. I may yet come to regret this. Also, it might not actually have silenced them – I didn’t notice.

Advertisements

2 Responses to “Debian Lenny XFS/LVM problem”

  1. Rudger Gravestein Says:

    thanks for the info! :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: