linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Marcus Claesson <m.claesson@student.ucc.ie>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Can't reduce lvm2 volume. I get "Volume group mapper doesn't exist"
Date: Fri, 12 May 2006 17:18:48 +0100	[thread overview]
Message-ID: <1147450728.8248.127.camel@morpheus.ucc.ie> (raw)

Hi!

I have a problem reducing a logical volume and I'm sure it's just some
silly error, but I can't get my head around it.

I've got lvm2-2.02.01-1.3.RHEL4 installed on kernel-2.6.9-34.ELsmp.

This is what I got mounted:

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p2      49G   20G   27G  42% /
/dev/cciss/c0d0p1      99M  9.8M   84M  11% /boot
/dev/mapper/Volume00-LogVol00
                       97G   84G  8.1G  92% /home
none                  2.9G     0  2.9G   0% /dev/shm
/dev/mapper/Volume00-LogVol02
                       97G   11G   81G  12% /usr/local
/dev/mapper/Volume00-LogVol01
                       97G   84G  8.3G  91% /var

I want to shrink /dev/mapper/Volume00-LogVol02 from 97G to 20G, and this
is what I tried.

# umount /dev/mapper/Volume00-LogVol02

# e2fsck -f /dev/mapper/Volume00-LogVol02
e2fsck 1.35 (28-Feb-2004)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/mapper/Volume00-LogVol02: 56614/12812288 files (1.5% non-
contiguous), 3099826/25600000 blocks

# resize2fs -p /dev/mapper/Volume00-LogVol02 20G
resize2fs 1.35 (28-Feb-2004)
Resizing the filesystem on /dev/mapper/Volume00-LogVol02 to 5242880 (4k)
blocks.
Begin pass 2 (max = 1787074)
Relocating blocks             XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Begin pass 3 (max = 782)
Scanning inode table          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Begin pass 4 (max = 2690)
Updating inode references     XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXThe
filesystem on /dev/mapper/Volume00-LogVol02 is now 5242880 blocks long.

But here I get error messages:
# lvreduce -L 20G -v /dev/mapper/Volume00-LogVol02
    Finding volume group mapper
    Wiping cache of LVM-capable devices
  Volume group mapper doesn't exist

I also tried:
# lvresize -L 20G -v /dev/mapper/Volume00-LogVol02
    Finding volume group mapper
    Wiping cache of LVM-capable devices
  Volume group mapper doesn't exist

I then mounted the device again and saw it was 20G big. But no more
extra size had been added to the volume group...

What am I doing wrong???

Really appreciate any help!

Regards,
Marcus

             reply	other threads:[~2006-05-12 16:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-12 16:18 Marcus Claesson [this message]
2006-05-12 16:25 ` [linux-lvm] Can't reduce lvm2 volume. I get "Volume group mapper doesn't exist" Luca Berra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1147450728.8248.127.camel@morpheus.ucc.ie \
    --to=m.claesson@student.ucc.ie \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).