[mythtv-users] An LVM'd drive died! What do I do...

David Bennett davidbennett1979 at gmail.com
Fri Oct 28 12:10:53 EDT 2005


I am still debating about whether to move to this Raid 5 or not, but
here is the current story.

I am running an XFS filesystem, and I recently added a 200G harddrive
to my LVM group. I believe it is linear and I don't think my /video
has gotten big enough to start using the 200g (if it is in fact
sequential). Problem is, I think the 200G is dying.

Is it possible to remove this from the LVM group and revert back to
just my original 1HD LVM??

I added the 2nd hard drive with the following commands:

Extending an LVM Partition

   1. Using fdisk, created /dev/hda4 as LVM
   2. Created physical volume:  pvcreate /dev/hda4
   3. Extended volume group:  vgextend VideoGroup /dev/hda4
   4. Ran vgdisplay to determine space to be extended (free space)
   5. unmount the volume group:  umount /dev/VideoGroup/VG01
   6. extend:  lvextend -l +18214 /dev/VideoGroup/VG01
   7. mount /dev/VideoGroup/VG01
   8. grow the xfs file system:  xfs_growfs /dev/VideoGroup/VG01

... can I undo this?


(On a side note, I also think I would like to backup my linux so that
if it ever dies I can restore it and not have to setup everything
again. I am currently rsyncing a whole bunch of directories to a nfs
drive. Is this enough? I am worried that if I tar or rsync the proper
directories that I will be missing some hidden/system files... or is
this just worries leftover from the windows days?)

This also leads to the questions
1) What tar commands should I use to make a backup of my system that I
can easily restore-and-go?
2) i am rsyncing all of my directories off of the root except the
following: (does this look good, or should I be rsyncing some of these
as well?)

/video
/proc
/dev
/sys
/tmp
/mnt

(sorry for all the questions. you guys are like my mentors now...)

dave


More information about the mythtv-users mailing list