LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 07-09-2009, 01:07 PM   #1
jbarrile
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
Smile Procedure to deactivate vg00 during an active login without the "in use" error.


In HP-UX you can boot the system into LVM Maintenance mode
in order to perform lvm maintenance on vg00. I am seeking an
equivalent process via Redhat Linux Enterprise Servers, so I
would appreciate it very much if someone can post the exact
procedure to accomplish this function.
Thank You!!!

The exact maintenance that I am trying to perform is to restore
the PVID on the PV associated with VG00.
/sbin/pvscan
PV /dev/hda2 VG vg00 lvm2 [37.19 GB / 22.62 GB free]
Total: 1 [37.19 GB] / in use: 1 [37.19 GB] / in no VG: 0 [0 ]

When I try to execute the "pvcreate" command to restore the PVID
on /dev/hda2 I get the following results.

Really INITIALIZE physical volume "/dev/hda2" of volume group "vg00" [y/n]? y
Can't open /dev/hda2 exclusively. Mounted filesystem?

This is a "catch-22" since I would have to "umount" all filesystems
associated with vg00 which includes "/usr" where the actual "pvcreate"
command resides and "/etc under /" where the "vg00_00000.vg" config
file exists. So the question is still basically the same as I am
looking for the actual proceedure to accomplish this task?

Last edited by jbarrile; 07-16-2009 at 03:20 PM. Reason: Clarificaton of the exact maintenance
 
Old 07-09-2009, 05:29 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
Need more info. What is the exact maintenance you're looking to perform on vg00 (presumably a volume group)? Most maintenance you can perform on a live system; there are exceptions, like resizing the logical volume that is mounted to /.
 
Old 07-15-2009, 09:22 AM   #3
misconfiguration
Member
 
Registered: Apr 2007
Location: Indianapolis, Indiana
Distribution: RHEL, Fedora, AIX, HP-UX, FreeBSD, Slackware
Posts: 62

Rep: Reputation: 19
# umount -l /dev/vg00/lvm2

Proceed with your PV commands.

Then proceed with what you're doing - please note, if you're trying to bring down / up a VG that you're actively using - that's not recommended. In most cases dealing with a live environment can be a pain - you may need to schedule a downtime in order to boot your system into runlevel 1; or temporarily use a rescue environment.
 
  


Reply

Tags
cant, group, volume


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
squirrelmail "error in login page"" when content advisor is enabled simi_virgo Linux - Networking 4 08-21-2008 01:25 PM
RAID 5 with mdadm "spare" and "active sync" confusion ufmale Linux - Server 1 12-08-2007 10:31 AM
"Have to automate the SSH login procedure through shell scripting" sorav Programming 2 11-21-2007 04:53 AM
How to deactivate automatic "summer time"? davi_cabral Linux - Newbie 1 10-18-2004 07:56 AM
Unable to acquire AGP, error "xf86_ENOMEM" - have followed usual procedure vasudevadas Linux - Hardware 5 06-02-2004 02:53 PM


All times are GMT -5. The time now is 06:48 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration