* [linux-lvm] What command do I use to make a PV active? @ 2003-07-03 11:58 Greg Freemyer 2003-07-04 6:50 ` Heinz J . Mauelshagen 0 siblings, 1 reply; 5+ messages in thread From: Greg Freemyer @ 2003-07-03 11:58 UTC (permalink / raw) To: LVM Mailing list Somehow I inactived a PV # pvscan pvscan -- reading all physical volumes (this may take a while...) pvscan -- inactive PV "/dev/sda3" of VG "TruStore-Data" [53.63 GB / 48.63 GB free] pvscan -- ACTIVE PV "/dev/sdb1" of VG "TruStore-Data" [74.54 GB / 13.54 GB free] pvscan -- total: 2 [128.19 GB] / in use: 2 [128.19 GB] / in no VG: 0 [0] What command do I use to make it active? Thanks Greg -- Greg Freemyer ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] What command do I use to make a PV active? 2003-07-03 11:58 [linux-lvm] What command do I use to make a PV active? Greg Freemyer @ 2003-07-04 6:50 ` Heinz J . Mauelshagen 2003-07-07 10:29 ` Greg Freemyer 0 siblings, 1 reply; 5+ messages in thread From: Heinz J . Mauelshagen @ 2003-07-04 6:50 UTC (permalink / raw) To: linux-lvm On Thu, Jul 03, 2003 at 01:05:43PM -0400, Greg Freemyer wrote: > > Somehow I inactived a PV Hmm, there's no direct (in)activation of PVs. A bit strange, that both are in diffrent states (they should be either inactive in case the VG is or both active in case the VG got activated). > > # pvscan > pvscan -- reading all physical volumes (this may take a while...) > pvscan -- inactive PV "/dev/sda3" of VG "TruStore-Data" [53.63 GB / 48.63 GB free] > pvscan -- ACTIVE PV "/dev/sdb1" of VG "TruStore-Data" [74.54 GB / 13.54 GB free] > pvscan -- total: 2 [128.19 GB] / in use: 2 [128.19 GB] / in no VG: 0 [0] > > What command do I use to make it active? If the VG "TruStore-Data" is inactive, "vgchange -ay TruStore-Data" should turn /dev/sda3 active as well. Is "TruStore-Data" accessable fine (LVs ok) ? > > Thanks > Greg > -- > Greg Freemyer > > _______________________________________________ > linux-lvm mailing list > linux-lvm@sistina.com > http://lists.sistina.com/mailman/listinfo/linux-lvm > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/ -- Regards, Heinz -- The LVM Guy -- *** Software bugs are stupid. Nevertheless it needs not so stupid people to solve them *** =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Heinz Mauelshagen Sistina Software Inc. Senior Consultant/Developer Am Sonnenhang 11 56242 Marienrachdorf Germany Mauelshagen@Sistina.com +49 2626 141200 FAX 924446 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] What command do I use to make a PV active? 2003-07-04 6:50 ` Heinz J . Mauelshagen @ 2003-07-07 10:29 ` Greg Freemyer 2003-07-07 12:32 ` Heinz J . Mauelshagen 0 siblings, 1 reply; 5+ messages in thread From: Greg Freemyer @ 2003-07-07 10:29 UTC (permalink / raw) To: linux-lvm On Fri, 2003-07-04 at 07:49, Heinz J . Mauelshagen wrote: > On Thu, Jul 03, 2003 at 01:05:43PM -0400, Greg Freemyer wrote: > > > > Somehow I inactived a PV > > Hmm, there's no direct (in)activation of PVs. > A bit strange, that both are in diffrent states (they should be either inactive > in case the VG is or both active in case the VG got activated). This is a lab/test machine. I have a couple of others that have a similar LVM layout, and all of them have hot-swap drives. I likely moved a drive around at the wrong time. > > > > > # pvscan > > pvscan -- reading all physical volumes (this may take a while...) > > pvscan -- inactive PV "/dev/sda3" of VG "TruStore-Data" [53.63 GB / 48.63 GB free] > > pvscan -- ACTIVE PV "/dev/sdb1" of VG "TruStore-Data" [74.54 GB / 13.54 GB free] > > pvscan -- total: 2 [128.19 GB] / in use: 2 [128.19 GB] / in no VG: 0 [0] > > > > What command do I use to make it active? > > If the VG "TruStore-Data" is inactive, "vgchange -ay TruStore-Data" should turn > /dev/sda3 active as well. It is already active, and I just tried a reboot. sda3 is still inactive. > > Is "TruStore-Data" accessable fine (LVs ok) ? I have 3 LVs on sdb1, they are working fine. I have a copy of my Linux Distro CDs and spare space for sdb1 snapshots on sda3. They are not working. Obviously I can recreated the CD copies, but I prefer not to do this. Is there something else I can try? FYI: None of this data is very important, so I won't complain too loud if you ask me to do something and it ends up blowing everything away. Thanks Greg -- Greg Freemyer ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] What command do I use to make a PV active? 2003-07-07 10:29 ` Greg Freemyer @ 2003-07-07 12:32 ` Heinz J . Mauelshagen 2003-07-07 16:42 ` Greg Freemyer 0 siblings, 1 reply; 5+ messages in thread From: Heinz J . Mauelshagen @ 2003-07-07 12:32 UTC (permalink / raw) To: linux-lvm On Mon, Jul 07, 2003 at 11:37:04AM -0400, Greg Freemyer wrote: > On Fri, 2003-07-04 at 07:49, Heinz J . Mauelshagen wrote: > > On Thu, Jul 03, 2003 at 01:05:43PM -0400, Greg Freemyer wrote: > > > > > > Somehow I inactived a PV > > > > Hmm, there's no direct (in)activation of PVs. > > A bit strange, that both are in diffrent states (they should be either inactive > > in case the VG is or both active in case the VG got activated). > > This is a lab/test machine. I have a couple of others that have a > similar LVM layout, and all of them have hot-swap drives. I likely > moved a drive around at the wrong time. Ah, the let me assume, that this is the reason why the inactive status is stored on the PV. > > > > > > > > > # pvscan > > > pvscan -- reading all physical volumes (this may take a while...) > > > pvscan -- inactive PV "/dev/sda3" of VG "TruStore-Data" [53.63 GB / 48.63 GB free] > > > pvscan -- ACTIVE PV "/dev/sdb1" of VG "TruStore-Data" [74.54 GB / 13.54 GB free] > > > pvscan -- total: 2 [128.19 GB] / in use: 2 [128.19 GB] / in no VG: 0 [0] > > > > > > What command do I use to make it active? > > > > If the VG "TruStore-Data" is inactive, "vgchange -ay TruStore-Data" should turn > > /dev/sda3 active as well. > > It is already active, and I just tried a reboot. sda3 is still > inactive. You might want to create a dummy LV and remove it. That changes PV state stored on disks. > > > > > Is "TruStore-Data" accessable fine (LVs ok) ? > > I have 3 LVs on sdb1, they are working fine. > > I have a copy of my Linux Distro CDs and spare space for sdb1 snapshots > on sda3. They are not working. > > Obviously I can recreated the CD copies, but I prefer not to do this. > > Is there something else I can try? > > FYI: None of this data is very important, so I won't complain too loud > if you ask me to do something and it ends up blowing everything away. > > Thanks > Greg > -- > Greg Freemyer > > > _______________________________________________ > linux-lvm mailing list > linux-lvm@sistina.com > http://lists.sistina.com/mailman/listinfo/linux-lvm > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/ -- Regards, Heinz -- The LVM Guy -- *** Software bugs are stupid. Nevertheless it needs not so stupid people to solve them *** =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Heinz Mauelshagen Sistina Software Inc. Senior Consultant/Developer Am Sonnenhang 11 56242 Marienrachdorf Germany Mauelshagen@Sistina.com +49 2626 141200 FAX 924446 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] What command do I use to make a PV active? 2003-07-07 12:32 ` Heinz J . Mauelshagen @ 2003-07-07 16:42 ` Greg Freemyer 0 siblings, 0 replies; 5+ messages in thread From: Greg Freemyer @ 2003-07-07 16:42 UTC (permalink / raw) To: linux-lvm On Mon, 2003-07-07 at 13:30, Heinz J . Mauelshagen wrote: > On Mon, Jul 07, 2003 at 11:37:04AM -0400, Greg Freemyer wrote: > > On Fri, 2003-07-04 at 07:49, Heinz J . Mauelshagen wrote: > > > On Thu, Jul 03, 2003 at 01:05:43PM -0400, Greg Freemyer wrote: > > > > > > > > Somehow I inactived a PV > > > > > > Hmm, there's no direct (in)activation of PVs. > > > A bit strange, that both are in diffrent states (they should be either inactive > > > in case the VG is or both active in case the VG got activated). > > > > This is a lab/test machine. I have a couple of others that have a > > similar LVM layout, and all of them have hot-swap drives. I likely > > moved a drive around at the wrong time. > > Ah, the let me assume, that this is the reason why the inactive status > is stored on the PV. > > > > > > > > > > > > > > # pvscan > > > > pvscan -- reading all physical volumes (this may take a while...) > > > > pvscan -- inactive PV "/dev/sda3" of VG "TruStore-Data" [53.63 GB / 48.63 GB free] > > > > pvscan -- ACTIVE PV "/dev/sdb1" of VG "TruStore-Data" [74.54 GB / 13.54 GB free] > > > > pvscan -- total: 2 [128.19 GB] / in use: 2 [128.19 GB] / in no VG: 0 [0] > > > > > > > > What command do I use to make it active? > > > > > > If the VG "TruStore-Data" is inactive, "vgchange -ay TruStore-Data" should turn > > > /dev/sda3 active as well. > > > > It is already active, and I just tried a reboot. sda3 is still > > inactive. > > You might want to create a dummy LV and remove it. > That changes PV state stored on disks. > That did not work. Apparently the VG did not think sda3 was part of it. I ended up doing a 'pvcreate -ff /dev/sda3'. Then a vgextend to re-add it to the VG. I had to recreate and populate the LV I had on there previously, but it was not a huge deal. Thanks for the help. Greg -- Greg Freemyer ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-07-07 16:42 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2003-07-03 11:58 [linux-lvm] What command do I use to make a PV active? Greg Freemyer 2003-07-04 6:50 ` Heinz J . Mauelshagen 2003-07-07 10:29 ` Greg Freemyer 2003-07-07 12:32 ` Heinz J . Mauelshagen 2003-07-07 16:42 ` Greg Freemyer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox