Using LVM on RAID, some questions
Hello,
I'm planning to install Slackware 12 on software raid 1, using LVM to manage partitions. My knowledge of LVM is limited to what I've read the past few days, plus a quick test install on a spare machine, so naturally I have some questions. I understand it's not possible to boot from LVM, and it's generally not recommended to have / or swap on a logical volume, so my thoughts on partitions would be something like this: /dev/md0 raid1 consisting of /dev/sd[ab]1, 128M /boot /dev/md1 raid1 consisting of /dev/sd[ab]2, 2G swap /dev/md2 raid1 consisting of /dev/sd[ab]3, 6G / /dev/md3 raid1 consisting of /dev/sd[ab]4, "the rest", linux LVM / would contain everything but /usr/local, /var, /tmp and /home, which I plan to have as separate logical volumes on a volume group using /dev/md3 as a physical volume. The first question would be, is this a good setup? I've read that LVM on some systems supports raid1 style mirroring, but most of the LVM howto's out there suggest using md for that instead. What are the pros and cons of LVM mirroring compared to md raid? What about the partitions? I'd like to split up everything that could potentially grow out of control and hang the system (/var, /tmp, /home), as well as everything that isn't part of the distribution (/usr/local). Would it make sense to split /usr onto its own logical volume? How "safe" is this setup; if something breaks, can I boot from a CD and fix it without having to worry about the logical volumes? My last concern is about file systems. Can I just use any file system with LVM? I know reiserfs supports online growing and offline shrinking. Would it be a good file system of choice for use on logical volumes or should I look at something else instead? Comments and input appreciated. :) |
Quote:
Quote:
All the lvm tools reside under /sbin, so putting /usr in a logical volume will work fine. If the lvm volumes get screwed up somehow, you will still be able to boot up and attempt a repair as long as /sbin, /bin, and /etc are still under / on a filesystem that is not lvm. Quote:
|
Thank you for your reply.
Quote:
Meanwhile I've done some more research into file systems. It seems JFS and XFS only support growing, while reiserfs and ext3 support (offline) shrinking as well. The ability to resize both ways seems to make sense within the LVM environment. |
All times are GMT -5. The time now is 05:53 PM. |