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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070705/5c1b9251/attachment.html>
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, GNU/Linux HPCC SysAdmin University of Southern California Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20070705/fef850e9/attachment.sig>
----- "Michael Mueller" <eadgbe_mjm at 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 S. Martins Jr. - Support Analist | "Only The Shadow Knows | | Universidade Estadual de Maring?? - Brasil| what evil lurks in the | | NPD - N??cleo de Processamento de Dados | Heart of Men!" | | E-Mail: asmartins at uem.br / shadow at uem.br | !!! Linux User: 52392 !!! | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -- Esta mensagem foi verificada pelo sistema de antiv?rus e acredita-se estar livre de perigo.
Were hda and hdb part of the same volume group? Or did hdb belong to a separate volume group? If hdb was in a separate volume group, you should be able to do a "vgscan" followed by "vgchange -a y". Those commands will scan your disks for any volume groups and activate them (see the man pages for details). Then mount the lvm that contains the samba partition and your data should be there. -Tim> > > 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.