Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LVM Partition taking time when I ran the recipe #161

Open
santoshpatha12 opened this issue Sep 11, 2018 · 6 comments
Open

LVM Partition taking time when I ran the recipe #161

santoshpatha12 opened this issue Sep 11, 2018 · 6 comments

Comments

@santoshpatha12
Copy link

Hi,

Please help me to resolve time issue while doing partitioning.a

Cookbook version

https://github.com/chef-cookbooks/lvm

Chef-client version

Chef Development Kit Version: 2.5.3
chef-client version: 13.8.5
delivery version: master (73ebb72a6c42b3d2ff5370c476be800fee7e5427)
berks version: 6.3.1
kitchen version: 1.20.0
inspec version: 1.51.21

Platform Details

RHEL Azure vm

Scenario:

I am using LVM cookbook and creating lvm partitioning in rhel vm 2disks with 64k stiping and it is taking time to complete.

Steps to Reproduce:

/dev/sdc=100GB
/dev/sdc=100GB disks
lvm_volume_group datavg do
physical_volumes ['/dev/sdc', '/dev/sdd']
wipe_signatures true

logical_volume datalv do
size '190G'
filesystem 'xfs'
mount_point location: "#{node['datadir']}", options: 'defaults,nofail,noatime,nodiratime,nobarrier,logbufs=8'
stripes 2
stripe_size 64
action :create
end
end

@welcomebot
Copy link

Hey There
It looks like this is the first issue you've filed against the chef-cookbooks project. I'm here to offer you a bit of extra help to make sure we can quickly get back to you.
Make sure you've filled out all the fields in our issue template. Make sure you've provided us with the version of chef-client you're running, your operating system and the version of the cookbook. If you're not using the most up to date version of the cookbook then please make sure to update first. Lots of things change between versions even if you're issue isn't listed in the changelog. Finally please give us a detailed description of the issue you're having. The more we know about what you're trying to do, what actually happens, and how you can reproduce the problem, the better.

If you're looking for more immediate troubleshooting help make sure to check out #general on the Chef Community Slack. There's plenty of folks there willing to lend a helping hand. Thanks for the first issue. We hope we can get back to you soon with a solution.

@santoshpatha12
Copy link
Author

  • lvm_logical_volume[datalv] action nothing (skipped due to action :nothing)
  • lvm_volume_group[datavg] action create
    • chef_gem[datavg_di-ruby-lvm-attrib_removal] action remove (up to date)
    • chef_gem[datavg_di-ruby-lvm_removal] action remove (up to date)
    • lvm_logical_volume[datalv] action create

this is the output and it takes time to comeout When I ran the recipe. I need to kill the recipe to comeout from the execution.

@santoshpatha12
Copy link
Author

When I kill the process i got the below

  • lvm_volume_group[datavg] action create

    • chef_gem[datavg_di-ruby-lvm-attrib_removal] action remove (up to date)
    • chef_gem[datavg_di-ruby-lvm_removal] action remove (up to date)
    • lvm_logical_volume[datalv] action create^C[2018-09-11T00:56:32+00:00] FATAL: SIGINT received, stopping
      [2018-09-11T00:56:32+00:00] FATAL: SIGINT received, stopping

    Running handlers:
    [2018-09-11T00:56:32+00:00] ERROR: Running exception handlers
    Running handlers complete
    [2018-09-11T00:56:32+00:00] ERROR: Exception handlers complete
    Chef Client failed. 0 resources updated in 01 hours 02 minutes 46 seconds
    [2018-09-11T00:56:32+00:00] FATAL: Stacktrace dumped to /root/.chef/local-mode-cache/cache/chef-stacktrace.out
    [2018-09-11T00:56:32+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
    [2018-09-11T00:56:32+00:00] ERROR: exit
    [root@newdbtestVM cookbooks]#

@santoshpatha12
Copy link
Author

When I ran same recipe again after killing process and it is completing within a minute

@santoshpatha12
Copy link
Author

stacktrace.txt

@pratikpotdar
Copy link

Hi @santoshpatha12
Bumping this old question, as I am running into the same issue, where my chef process gets stuck whenever it tries to create a logical volume and doesn't return the control back . In the background it is indeed creating the logical volume, but I can see that the processes for chef and lvcreate are hung.

Were you able to resolve this somehow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants