All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guilio Iannazzo <iannazg@yahoo-inc.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] lvextend problem
Date: Tue, 27 Feb 2007 16:55:00 +0100	[thread overview]
Message-ID: <45E45454.6000402@yahoo-inc.com> (raw)

Hi,
about the *environment* :
[root@priscilla var]# cat /proc/version
Linux version 2.4.21-20.ELsmp (bhcompile@tweety.build.redhat.com) (gcc 
version 3.2.3 20030502 (Red Hat Linux 3.2.3-42)) #1 SMP Wed Aug 18 
20:46:40 EDT 2004

The *problem* :
I extended a logical volume following the procedure

umount -l /dev/Volume00/var

lvextend -L+5G /dev/Volume00/var
e2fsck -f /dev/Volume00/var
mount -l /dev/Volume00/var

The ouput of e2fsck was as following : 

[root@priscilla var]# e2fsck -f /dev/Volume00/var
e2fsck 1.32 (09-Nov-2002)
Pass 1: Checking inodes, blocks, and sizes
Duplicate blocks found... invoking duplicate block passes.
Pass 1B: Rescan for duplicate/bad blocks
Duplicate/bad block(s) in inode 40962: 164114 164115 164117
Duplicate/bad block(s) in inode 122885: 491781
Pass 1C: Scan directories for inodes with dup blocks.
Pass 1D: Reconciling duplicate blocks
(There are 2 inodes containing duplicate/bad blocks.)

File /run/utmp (inode #40962, mod time Tue Feb 27 10:20:28 2007)
  has 3 duplicate block(s), shared with 1 file(s):
        <filesystem metadata>
Clone duplicate/bad blocks<y>? yes

File /log/audit.d/bin.1 (inode #122885, mod time Tue Feb 27 14:01:00 2007)
  has 1 duplicate block(s), shared with 1 file(s):
        <filesystem metadata>
Clone duplicate/bad blocks<y>? yes

Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/dev/Volume00/var: ***** FILE SYSTEM WAS MODIFIED *****
/dev/Volume00/var: 553/1572864 files (14.8% non-contiguous), 
706071/6291456 blocks

Now, once the filesystem mounted, I've lost all the data I had on /var 
(which I didn't back up, I know I know it's extremely stupid, luckily 
enough this is not a production machine).
For example

[root@priscilla var]# ll /var/
total 0

however

[root@priscilla var]# mkdir /var/log
mkdir: cannot create directory `/var/log': File exists

??
What happened ? How to get all the data back ?
Thank you

Giulio

             reply	other threads:[~2007-02-27 15:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-27 15:55 Guilio Iannazzo [this message]
2007-02-27 21:01 ` [linux-lvm] lvextend problem Luca Berra
  -- strict thread matches above, loose matches on Subject: below --
2007-06-14 18:08 Nikolay Yevik
2007-06-14 19:01 ` Alasdair G Kergon
2007-06-14 19:50   ` Nikolay Yevik
2002-03-16 17:55 Jens Berlips
2002-03-16 19:13 ` Tim
2002-03-17  2:01   ` Friedrich Lobenstock
2002-03-22 17:07     ` bo

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=45E45454.6000402@yahoo-inc.com \
    --to=iannazg@yahoo-inc.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.