All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Brian J. Murrell" <lvm@interlinx.bc.ca>
To: linux-lvm@sistina.com
Subject: [linux-lvm] pvmove root filesystem?
Date: Thu Nov  1 22:30:02 2001	[thread overview]
Message-ID: <20011101233119.P21136@pc.ilinx> (raw)

I have all of my filesystems on LVM, including my root filesystem.  I
also have a separate /boot partition right at the front of my (boot)
IDE disk which is not LVM.  So my boot disk layout currently looks
like this:

   Device Boot    Start       End    Blocks   Id  System
   /dev/hda1            63     19151      9544+  83  Linux
   /dev/hda2         19152  39102335  19541592   8e  Linux LVM

And I have a bunch of scsi disks in the box too which I am going to
commit to LVM as well, shuffling data around until I have _all_ disks
and filesystems under LVM.

I have done some preliminary bonnie++ benchmarks and it appears that
even my 7200 rpm scsi disk is better than my ide disk, so I want to
migrate my 10k rpm scsi disk into being my boot/root disk (my bios
will support booting from a scsi disk despite there being an ide disk
in the system).

My question is, if I put a small boot partition at the front of the
scsi disk I want to be my new boot disk, dedicate the rest of the disk
to LVM, add it to my "rootvol" LVM volume (which currently has root,
usr, home, var, etc. on the IDE disk) and then pvmove the logical
volumes to the scsi disk, can I safely pvmove the root filesystem
while the machine is running?  I think I would move the root
filesystem first in fact.

Once I have copied the /boot from the ide disk to the scsi disk,
and pvmoved the root filesystem (and possibly all of the rest of the
filesystems in the rootvol) to the SCSI disk, I should be able to do
the required "lilo" magic to get the MBR on the SCSI disk active and
then make it the boot drive and reboot no?

Is there anything about pvmoving the root filesystem that I am missing
in my description above that is going to cause disaster?

Thanx,
b.

-- 
Brian J. Murrell

             reply	other threads:[~2001-11-01 22:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-01 22:30 Brian J. Murrell [this message]
2001-11-01 23:14 ` [linux-lvm] pvmove root filesystem? Andreas Dilger
2001-11-01 23:32   ` Brian J. Murrell
2001-11-02  0:49     ` Andreas Dilger
2001-11-02  5:20       ` Joe Thornber
2001-11-02 10:50         ` Brent Harding
2001-11-02 10:41       ` Brent Harding
2001-11-02 11:01         ` Andreas Dilger
2001-11-02 13:47           ` Brent Harding

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011101233119.P21136@pc.ilinx \
    --to=lvm@interlinx.bc.ca \
    --cc=linux-lvm@sistina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.