[CentOS] LVM recovery questions
eadgbe_mjm at yahoo.com
Thu Jul 5 22:42:42 UTC 2007
Garrick Staples <garrick at usc.edu> wrote: On Thu, Jul 05, 2007 at 12:05:14PM -0700, Michael Mueller alleged:
> I have a centos 4 box i use for a file server (nfs and samba). It has two hdd: hda is for the standard install; hdb is for /export/samba/netdisk0
> hda is lost - it just clicks now
> i think hdb is still good
> i can't figure out how i can remount the hdb disk in a new machine and retrieve the info from it; i've scanned the LVM howto and googled some LVM topics, but nothing seems to address my particular need
> i was oblivious to LVM until now, so i did not save anything from the /etc dir on the hda disk
> can someone help me get a clue?
** assuming hdb (or a partition on hdb) is the sole PV in the VG with the
LV that contains the netdisk0 filesystem... **
The new box should have already scanned the volumes at boot so all you'd
really need to do is mount the filesystem. But the logical order of
operations if you were starting from the ground up is something like
# lvm pvscan <-- should see hdb as a PV in a VG
# lvm vgscan
# lvm lvscan <-- tells you the LV name that has the fs
# lvm lvchange -a y /dev/$VGNAME/$LVNAME <-- activates the LV
# mount /dev/$VGNAME/$LVNAME
Thanks for the suggestions.
I loaded a new hdd hda with 4.3 single cd server; then i powered down and connected the hdb from the failed system and rebooted; the hdb was not found using the commands above so i was not able to mount
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the CentOS