RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 870115 - LVM2: Presence of sparse volume causes boot to hang a long time
Summary: LVM2: Presence of sparse volume causes boot to hang a long time
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: lvm2
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: LVM and device-mapper development team
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-25 15:07 UTC by Robert Peterson
Modified: 2012-11-05 08:41 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-05 08:41:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Robert Peterson 2012-10-25 15:07:58 UTC
Description of problem:
If there are sparse logical volumes present, rebooting takes
an extremely long time. On one of my machines, there were three
sparse volumes and it took over 18 hours to reboot. I removed
two of them and the time went down considerably, but still took
a half hour to boot. The hang seems to occur while trying to
activate the volume with the sparse volume.

I have two volume groups, "sasdrives" and "intec". With the
sparse volume on "intec" alone, it seems to hang after this
console message:

Setting up Logical Volume Management:
  2 logical volume(s) in volume group "sasdrives" now active

But before this message:
  2 logical volume(s) in volume group "intec" now active

If I remove all sparse volumes, the bootup is fast.

Version-Release number of selected component (if applicable):
lvm2-2.02.95-10.el6.x86_64
lvm2-cluster-2.02.95-10.el6.x86_64
Linux intec1 2.6.32-335.el6.x86_64 #1 SMP Fri Oct 19 02:32:06 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

How reproducible:
Always

Steps to Reproduce:
1. lvcreate --virtualsize 2T -L230G -n sparse /dev/intec
2. /sbin/reboot
  
Actual results:
Setting up Logical Volume Management:
  2 logical volume(s) in volume group "sasdrives" now active
(Pause for 30 minutes to 18 hours)
  2 logical volume(s) in volume group "intec" now active

Expected results:
A reasonable pause (2-4 min?)

Additional info:
In this case, the sparse volume was created on a different node,
and "intec" is shared storage on a SAN, so I can understand
intec1's confusion. Still, it shouldn't take a half hour to time out.
My belief (superstition, really) is that it doesn't matter because
when it was taking 18 hours to boot, the majority of sparse volumes
were on local SAS hard drives.

Comment 2 Zdenek Kabelac 2012-11-05 08:41:21 UTC
Using sparse volumes which are using 'old' snapshots is unfortunately slow in its metadata storage on device. I'd suggest to play with thin provisioning for this task which should have much better performance.

I'm afraid there is not much to be done with old snapshot target, since it's never been designed to store hundreds of GB of data - which requires very complex scanning of disc to obtain all it's metadata - effectively almost equal to reading whole COW volume.


Note You need to log in before you can comment on or make changes to this bug.