Hi,
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?
thanks much, -- mike
--------------------------------- Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.
On Thu, Jul 05, 2007 at 12:05:14PM -0700, Michael Mueller alleged:
Hi,
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 this:
# 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 <mountpoint>
Garrick Staples garrick@usc.edu wrote: On Thu, Jul 05, 2007 at 12:05:14PM -0700, Michael Mueller alleged:
Hi,
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 this:
# 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
-- Mike
--------------------------------- Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.
On Thu, 2007-07-05 at 15:42 -0700, Michael Mueller wrote:
Garrick Staples garrick@usc.edu wrote: On Thu, Jul 05, 2007 at 12:05:14PM -0700, Michael Mueller alleged: > <snip>
# 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 -- Mike
These are done without the drive mounted. Also, pvscan -v might be useful. The fdisk -l that someone suggested will probably the first and most useful step. It will tell you whether hdb was a standard ext* or LVM partition.
<snip>
HTH -- Bill
----- "Michael Mueller" eadgbe_mjm@yahoo.com escreveu:
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?
Well,
I will first try to boot from the install CD/DVD on rescue mode, if it can't handle the LVM data on the HDD. I will try Ubuntu :)
Can you send more info on the partition schema for this HDD ?
Antonio.
Antonio da Silva Martins Junior asmartins@uem.br wrote: ----- "Michael Mueller" escreveu:
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?
Well,
I will first try to boot from the install CD/DVD on rescue mode, if it can't handle the LVM data on the HDD. I will try Ubuntu :)
Can you send more info on the partition schema for this HDD ?
Thanks for your help.
I tried the rescue mode; it only found what was on the new install of 4.3 single server cd;
i tried adding mount /dev/hdb1 /export to fstab and rebooted again; /export/samba/netdisk0 was there - but it was just an empty file - probably because of the LV structure on the disk
it seems to me that if a system is built under LVM and is comprised of multiple disks, recovery out to be quite easy; i must be missing something here; with the pre-LVM partitioning, i would just mount the /dev/hdb1 and be on my way; i am hoping there is a similarly easy way to get my disk back into a file system
-- Mike
--------------------------------- Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
Btw, your email client appears to be misconfigured as it fails to quote previous email bodies.
On Thu, Jul 05, 2007 at 03:49:43PM -0700, Michael Mueller alleged:
Thanks for your help.
I tried the rescue mode; it only found what was on the new install of 4.3 single server cd;
i tried adding mount /dev/hdb1 /export to fstab and rebooted again; /export/samba/netdisk0 was there - but it was just an empty file - probably because of the LV structure on the disk
it seems to me that if a system is built under LVM and is comprised of multiple disks, recovery out to be quite easy; i must be missing something here; with the pre-LVM partitioning, i would just mount the /dev/hdb1 and be on my way; i am hoping there is a similarly easy way to get my disk back into a file system
If you were directly mounting /dev/hdb1, then you weren't using LVM.
Perhaps hda was under LVM but hdb wasn't?
Try 'fdisk -l /dev/hdb' and try mounting the largest partition.