From: Luca Berra <bluca@comedia.it>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] lvextend problem
Date: Tue, 27 Feb 2007 22:01:03 +0100 [thread overview]
Message-ID: <20070227210103.GA23712@percy.comedia.it> (raw)
In-Reply-To: <45E45454.6000402@yahoo-inc.com>
On Tue, Feb 27, 2007 at 04:55:00PM +0100, Guilio Iannazzo wrote:
>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
from umount man page:
-l Lazy unmount. Detach the filesystem from the filesystem hierar-
chy now, and cleanup all references to the filesystem as soon as
it is not busy anymore. (Requires kernel 2.4.11 or later.)
the key phrase here is: "as soon as it is not busy anymore"
>lvextend -L+5G /dev/Volume00/var
harmless
>e2fsck -f /dev/Volume00/var
so you fscked an active filesystem, bad bad bad...
--- i think you wanted to resize2fs here ---
>mount -l /dev/Volume00/var
'mount -l' is _not_ the opposite of 'umount -l'
....
>
>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 ?
is the filesystem really mounted now?
- reboot the machine into single user
- fsck the filesystem again
- and try mounting it and check all data is still here.
if it is:
- backup your data
- umount the filesystem (really, not using -l)
- fsck -f
- resize2fs
- mount again
- return to multi-user
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
next prev parent reply other threads:[~2007-02-27 21:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-27 15:55 [linux-lvm] lvextend problem Guilio Iannazzo
2007-02-27 21:01 ` Luca Berra [this message]
-- 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=20070227210103.GA23712@percy.comedia.it \
--to=bluca@comedia.it \
--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).