linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Removal of PV
@ 2001-04-16 21:50 hail narcissus
  2001-04-20 10:29 ` Patrick Caulfield
  0 siblings, 1 reply; 5+ messages in thread
From: hail narcissus @ 2001-04-16 21:50 UTC (permalink / raw)
  To: linux-lvm

I know this has been asked before and I browsed the archives for the info.  
But I want to be sure since I am dealing with 500+GB of data.

Here is my configuration:
hda-h (80Gig IDE's)
sda-n (9Gig SCSI's)
652.81 GB VG
505GB Used 140GB Free

I want to remove the SCSI drives since I am having some SCSI bus problems 
and they are just old and I am not feeling comfortable with it's 
reliability.

I believe this would be the proper steps:

resize2fs /dev/lv/vg 520G  <-- Is 520G correct, particularly the G.
pvmove /dev/sda /dev/hdh   <-- Assuming /dev/hdh has free space
pvmove /dev/sdb /dev/hdh
pvmove /dev/sdc /dev/hdh
...
lvreduce -L 520G /dev/lv/vg
vgreduce vg /dev/sda
vgreduce vg /dev/sdb
vgreduce vg /dev/sdc

I saw in the mailing list where someone suggested:

ext2resize/resize2fs
lvreduce
pvmove
vgreduce

But I would think you would want to do pvmove before the lvreduce.  
Otherwise you might truncate data?

Thanks for any help!!
_________________________________________________________________
Get your FREE download of MSN Explorer@http://explorer.msn.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Removal of PV
  2001-04-16 21:50 [linux-lvm] Removal of PV hail narcissus
@ 2001-04-20 10:29 ` Patrick Caulfield
  2001-04-30 12:59   ` Rupert Heesom
  0 siblings, 1 reply; 5+ messages in thread
From: Patrick Caulfield @ 2001-04-20 10:29 UTC (permalink / raw)
  To: linux-lvm

On Mon, Apr 16, 2001 at 02:50:07PM -0700, hail narcissus wrote:
> 
> I know this has been asked before and I browsed the archives for the info.  
> But I want to be sure since I am dealing with 500+GB of data.
> 
> Here is my configuration:
> hda-h (80Gig IDE's)
> sda-n (9Gig SCSI's)
> 652.81 GB VG
> 505GB Used 140GB Free
> 
> I want to remove the SCSI drives since I am having some SCSI bus problems 
> and they are just old and I am not feeling comfortable with it's 
> reliability.
> 
> I believe this would be the proper steps:
> 
> resize2fs /dev/lv/vg 520G  <-- Is 520G correct, particularly the G.
> pvmove /dev/sda /dev/hdh   <-- Assuming /dev/hdh has free space
> pvmove /dev/sdb /dev/hdh
> pvmove /dev/sdc /dev/hdh
> ...
> lvreduce -L 520G /dev/lv/vg
> vgreduce vg /dev/sda
> vgreduce vg /dev/sdb
> vgreduce vg /dev/sdc
> 
> I saw in the mailing list where someone suggested:
> 
> ext2resize/resize2fs
> lvreduce
> pvmove
> vgreduce
> 
> But I would think you would want to do pvmove before the lvreduce.  
> Otherwise you might truncate data?

Either way round should be fine. If you're using <beta7 then, due to bugs, you
should take the volume offline before moving it though.

patrick

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Removal of PV
@ 2001-04-20 17:22 hail narcissus
  0 siblings, 0 replies; 5+ messages in thread
From: hail narcissus @ 2001-04-20 17:22 UTC (permalink / raw)
  To: linux-lvm

Thanks, thought no one was going to reply.  :)

I'll back up more critical data and try this weekend.

>From: Patrick Caulfield <caulfield@sistina.com>
>Reply-To: linux-lvm@sistina.com
>To: linux-lvm@sistina.com
>Subject: Re: [linux-lvm] Removal of PV
>Date: Fri, 20 Apr 2001 11:29:23 +0100
>
>On Mon, Apr 16, 2001 at 02:50:07PM -0700, hail narcissus wrote:
> >
> > I know this has been asked before and I browsed the archives for the 
>info.
> > But I want to be sure since I am dealing with 500+GB of data.
> >
> > Here is my configuration:
> > hda-h (80Gig IDE's)
> > sda-n (9Gig SCSI's)
> > 652.81 GB VG
> > 505GB Used 140GB Free
> >
> > I want to remove the SCSI drives since I am having some SCSI bus 
>problems
> > and they are just old and I am not feeling comfortable with it's
> > reliability.
> >
> > I believe this would be the proper steps:
> >
> > resize2fs /dev/lv/vg 520G  <-- Is 520G correct, particularly the G.
> > pvmove /dev/sda /dev/hdh   <-- Assuming /dev/hdh has free space
> > pvmove /dev/sdb /dev/hdh
> > pvmove /dev/sdc /dev/hdh
> > ...
> > lvreduce -L 520G /dev/lv/vg
> > vgreduce vg /dev/sda
> > vgreduce vg /dev/sdb
> > vgreduce vg /dev/sdc
> >
> > I saw in the mailing list where someone suggested:
> >
> > ext2resize/resize2fs
> > lvreduce
> > pvmove
> > vgreduce
> >
> > But I would think you would want to do pvmove before the lvreduce.
> > Otherwise you might truncate data?
>
>Either way round should be fine. If you're using <beta7 then, due to bugs, 
>you
>should take the volume offline before moving it though.
>
>patrick
>
>_______________________________________________
>linux-lvm mailing list
>linux-lvm@sistina.com
>http://lists.sistina.com/mailman/listinfo/linux-lvm

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Removal of PV
  2001-04-20 10:29 ` Patrick Caulfield
@ 2001-04-30 12:59   ` Rupert Heesom
  2001-04-30 19:17     ` Ben Lutgens
  0 siblings, 1 reply; 5+ messages in thread
From: Rupert Heesom @ 2001-04-30 12:59 UTC (permalink / raw)
  To: linux-lvm; +Cc: caulfield

On 20 Apr 2001 11:29:23 +0100, Patrick Caulfield wrote:
> On Mon, Apr 16, 2001 at 02:50:07PM -0700, hail narcissus wrote:
> Either way round should be fine. If you're using <beta7 then, due to bugs, you
> should take the volume offline before moving it though.

I'm new to LVM, and trying to get used to how to use it.
You mentioned taking the volume offline.  How is that done?
 

-- 
regs
rupert

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Removal of PV
  2001-04-30 12:59   ` Rupert Heesom
@ 2001-04-30 19:17     ` Ben Lutgens
  0 siblings, 0 replies; 5+ messages in thread
From: Ben Lutgens @ 2001-04-30 19:17 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]

On Mon, Apr 30, 2001 at 08:59:30AM -0400, Rupert Heesom wrote:
>I'm new to LVM, and trying to get used to how to use it.
>You mentioned taking the volume offline.  How is that done?
> 

http://www.sistina.com/lvm/doc/lvm_howto/index.html

-- 
Ben Lutgens		cell: XXX.XXX.XXXX
Sistina Software Inc.	work: XXX.XXX.XXXX
Mailing list admin / Punching Bag (and sorta sysadmin guy)
http://www.sistina.com/	<--- great software 
http://www.gentoo.org/  <--- great distro
Kernel panic: I have no root and I want to scream <--- perfect error message

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-04-30 19:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-16 21:50 [linux-lvm] Removal of PV hail narcissus
2001-04-20 10:29 ` Patrick Caulfield
2001-04-30 12:59   ` Rupert Heesom
2001-04-30 19:17     ` Ben Lutgens
  -- strict thread matches above, loose matches on Subject: below --
2001-04-20 17:22 hail narcissus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).