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.
The exact maintenance that I am trying to perform is to restore
the PVID on the PV associated with VG00.
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