From: Danniello <danniello@gmail.com>
To: Marian Csontos <mcsontos@redhat.com>,
LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Problem with mount QNAP disks in Linux
Date: Mon, 12 Jun 2017 17:16:51 +0200 [thread overview]
Message-ID: <319747ab-1cc1-2bc1-1050-148c1be414a8@gmail.com> (raw)
In-Reply-To: <33276b38-bdde-a3fa-2324-755fb165b075@redhat.com>
W dniu 12.06.2017 o 15:42, Marian Csontos pisze:
>> $ sudo vgs
>> VG #PV #LV #SN Attr VSize VFree
>> vg1 1 4 0 wz--n- 5,44t 0
>
> VFree 0 - that's bad...
>
>>
>> I tried to activate it with lvchange but there is message that manual
>> repair of vg1/tp1 is required:
>> $ sudo lvchange -ay vg1/lv2
>> Check of pool vg1/tp1 failed (status:1). Manual repair required!
>>
>> I tried command lvconvert --repair vg1/tp1 with no success:
>> $ sudo lvconvert --repair vg1/tp1
>> Using default stripesize 64,00 KiB.
>> Volume group "vg1" has insufficient free space (0 extents): 4096
>> required.
>
> Repair needs some space to write new metadata, and the message says it
> all: there is no free space in the volume group.
>
> Add more space to the volume group: vgextend vg1 DEVICE. You will
> either need to add a disk, or carve out some space out of other MD
> devices.
>
> Or free some space in the VG: you can not shrink thin pool, so the
> only other option is, if the data on vg1/lv544 are not interesting or
> can be moved elsewhere, you could remove that and let repair use that
> space.
>
> Also I noticed the size of logical volume lv1 alone is 5,42t (and with
> lv2 it is approximately 5,9t) while thin pool's is only 5,40t: that is
> not a good setup - it will eventually overfill (maybe it already did)
> and you will not be able to resize the pool any further to accommodate
> all data - with older kernels this was a serious problem and could
> lead to a file system corruption.
>
> If that's what the NAS created for you, it should be reported to the
> manufacturer as well.
>
> Once you can mount the volumes, I strongly recommend shrinking lv1.
This setup was done by me on QNAP QTS - at beginning I had only
DataVol1, but after some time I added "small" DataVol2. It is not good
configuration, but in QTS system there was no option to shrink DataVol1.
Anyway it was working OK in QNAP QTS system (but with warnings that pool
is almost full). Unfortunately my QNAP is no longer working -
motherboard defected...
I have backup of all important data on other places, but wanted to try
restore also "not important data":)
In QNAP QTS system it should work without additional actions - only
after unlock encrypted DataVol1 and DataVol2 there should be message
about check filesystem. I do not have access to other working QNAP, so I
tried with my desktop system with Fedora, but activate lv1 and lv2 was
not working on default configuration.
Probably you are right - I should add storage and then try to repair it.
But I found "workaround" by modifying /etc/lvm/lvm.conf in global section:
thin_check_executable = ""
I know that disable thin_check is generally not recommended, but I
wanted try everything before do more drastic methods. After this change
I could activate volumes lv1 and lv2:
lvchange -ay /dev/vg1
Decrypt:
cryptsetup luksOpen /dev/vg1/lv1 crypt_lv1
cryptsetup luksOpen /dev/vg1/lv2 crypt_lv2
And mount:
mount -r /dev/mapper/crypt_lv1 /mnt/lv1
mount -r /dev/mapper/crypt_lv2 /mnt/lv2
Data accessible:)
I want only copy some data from it, so repair will not be necessary.
Next I plan build my own NAS, so I will reformat disks from scratch.
Thank you!
Daniel
prev parent reply other threads:[~2017-06-12 15:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-01 11:35 [linux-lvm] Problem with mount QNAP disks in Linux Daniel Łaskowski
[not found] ` <33276b38-bdde-a3fa-2324-755fb165b075@redhat.com>
2017-06-12 15:16 ` Danniello [this message]
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=319747ab-1cc1-2bc1-1050-148c1be414a8@gmail.com \
--to=danniello@gmail.com \
--cc=linux-lvm@redhat.com \
--cc=mcsontos@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).