From: veleiro@openmailbox.org
To: linux-lvm@redhat.com
Subject: [linux-lvm] lvreduce used before resizing file system, what now?
Date: Sat, 10 Dec 2016 21:38:39 -0500 [thread overview]
Message-ID: <f82ba791c980a1d65f6943888f088b79@openmailbox.org> (raw)
Hello,
I was following this guide
https://help.ubuntu.com/community/ResizeEncryptedPartitions#Detailed_resizing_.2BAH4_Reducing_an_encrypted_partition
on how to reduce the size of an lvm partition. Its kind of confusing,
so going from a ext4 420G partition to 390G partition, I did the steps
in the wrong order:
sudo e2fsck -f /dev/mapper/ubuntu--vg-root
# worked
sudo lvreduce -L -30G /dev/ubuntu--vg/root
# data warning
sudo resize2fs -p /dev/mapper/ubuntu--vg-root 390g
i tried to undo this by
sudo resize2fs -p /dev/mapper/ubuntu--vg-root 420g # doesnt do anything,
not enough blocks
sudo lvresize -l +30G /dev/ubuntu-vg/root #clearly didnt do anything or
work either
Is there any procedures to get back to where i started at 420g OR to fix
it for 390g?
Thanks!
veleiro
next reply other threads:[~2016-12-11 2:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-11 2:38 veleiro [this message]
2016-12-11 3:12 ` [linux-lvm] lvreduce used before resizing file system, what now? veleiro
2016-12-12 10:37 ` Zdenek Kabelac
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=f82ba791c980a1d65f6943888f088b79@openmailbox.org \
--to=veleiro@openmailbox.org \
--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).