LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-18-2006, 11:10 PM   #1
alizard
Member
 
Registered: Jan 2003
Posts: 56

Rep: Reputation: 15
LVM shutdown problem


My setup uses 2 LVM partitions, root and swap_1

I'm getting an error message at shutdown that says "can't deactivate volume group terrarium with 2 open logical volumes".

What should I do about this?

thanks
 
Old 12-20-2006, 07:58 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
http://tldp.org/HOWTO/LVM-HOWTO/
http://www.ibiblio.org/pub/Linux/doc...O.html#lvm2faq
http://www.suse.de/de/whitepapers/lvm/index.html

Code:
man lvm
info lvm
Maybe one of those can shed some light...
 
Old 12-20-2006, 06:34 PM   #3
alizard
Member
 
Registered: Jan 2003
Posts: 56

Original Poster
Rep: Reputation: 15
I'm familiar with the first document. . .

Quote:
Originally Posted by JZL240I-U
the second looks a lot like the first, and the third was unavailable.

This looks to me like a LVM shutdown script problem that's unique to Debian (I never had problems with this in FC6). . . and I may have done some damage in trying to fix it. It no longer hangs on shutdown.


My latest problem:
can't deactivate volume group terrarium with 2 open logical volumes

/etc/rcd0.d/S50lvm.save Permission denied.
 
Old 12-20-2006, 06:38 PM   #4
alizard
Member
 
Registered: Jan 2003
Posts: 56

Original Poster
Rep: Reputation: 15
well, I think that's fixed. . .

Quote:
Originally Posted by alizard

My latest problem:
can't deactivate volume group terrarium with 2 open logical volumes

/etc/rcd0.d/S50lvm.save Permission denied.
When I was trying to alter lvm shutdown scripts, I hadn't noticed that the files were named S40, S50 in the order that the shutdown script picks them up... I had multiple S50 files.

But I'm still left with the "can't deactivate" problem.
 
Old 12-21-2006, 01:19 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally Posted by alizard
the second looks a lot like the first, and the third was unavailable.
The text body is essentially the same though one is the official tldp text. The other I added because of the FAQs...

The third is available for me . <edit> Oooops. The Suse page only and the german texts, not the whitepaper in english. Try this link then:
http://www.suse.de/en/business/certi...whitepaper.pdf
and search for lvm there, maybe one of the results can help...</edit>

Were "man" or "info" of no help how to force volume deactivation? I mean they refer to the other lvm related commands...

Quote:
Originally Posted by alizard
This looks to me like a LVM shutdown script problem that's unique to Debian (I never had problems with this in FC6). . . and I may have done some damage in trying to fix it. It no longer hangs on shutdown.


My latest problem:
can't deactivate volume group terrarium with 2 open logical volumes

/etc/rcd0.d/S50lvm.save Permission denied.
What owner and permissions do the scripts have? Do they need the sticky bit (calling further scripts)? What does "lsof" say? Are there maybe files still open?

Last edited by JZL240I-U; 12-21-2006 at 01:29 AM.
 
Old 12-21-2006, 02:07 AM   #6
alizard
Member
 
Registered: Jan 2003
Posts: 56

Original Poster
Rep: Reputation: 15
well. . .

Quote:
Originally Posted by JZL240I-U
The text body is essentially the same though one is the official tldp text. The other I added because of the FAQs...

The third is available for me . <edit> Oooops. The Suse page only and the german texts, not the whitepaper in english. Try this link then:
http://www.suse.de/en/business/certi...whitepaper.pdf
and search for lvm there, maybe one of the results can help...</edit>

Were "man" or "info" of no help how to force volume deactivation? I mean they refer to the other lvm related commands...

What owner and permissions do the scripts have? Do they need the sticky bit (calling further scripts)? What does "lsof" say? Are there maybe files still open?
I know
vgchange -a n
but not where to put them.

I'll have to get back to you on the rest.

thanks
 
Old 12-21-2006, 03:45 AM   #7
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally Posted by alizard
...
vgchange -a n
but not where to put them.
...
?What do you mean "where to put them"? I somehow don't get what you mean by that...

Do you get an error message when you do "vgchange -a n"?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with LVM on Slackware 10.2 RoloThomasee Slackware 5 03-17-2006 01:16 AM
problem mounting LVM conalmc Linux - Newbie 3 02-15-2006 12:29 PM
LVM Problem ZilverZtream Linux - Software 1 01-15-2005 05:08 AM
wierd lvm problem saranga2000 Linux - Hardware 0 01-10-2005 07:58 AM
LVM problem frig_neutron Linux - Software 12 05-13-2003 02:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration