LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Mounting an LVM Volume (https://www.linuxquestions.org/questions/linux-general-1/mounting-an-lvm-volume-920897/)

rgbeard 12-28-2011 10:35 AM

Mounting an LVM Volume
 
I have a 1TB USB disk that I use for storage.
OS is Redhat 5.6
FS Type is ext3

I used Redhat's LVM to build the Logical volume, and all is normally well.

now my /dev/TSMVG/TSMLV is missing, and the LVM GUI shows /dev/sdc1 as an uninitialized entry.

I doubt anything is really "wrong" with the disk itself, and just want to get it to where I can mount it.

I plugged the disk into a CentOS laptop to verify that it functions - and ran fdisk just to print the partition table. It gave me:


Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 121602 976762583+ 8e Linux LVM



Where can I go from here? I really don't want to lose all the data.

lithos 12-28-2011 10:56 AM

Hi,

maybe mounting LVM or this will help you.

good luck

fukawi1 12-28-2011 10:56 AM

Does the LVM show up in any of the LVM tools scans? (vgscan, lvscan, lv/pv/vgdisplay etc)

If it doesn't show up in lvscan, since its on a USB device, you may need to manually activate the VG.

Code:

# vgchange -a y $lvname
May activate the VG allowing you to mount it normally.

Unfortunately, i cant help with the LVM GUI, I have no experience with it.

rgbeard 12-28-2011 09:20 PM

Well I feel silly, but figured I would post my resolution.

I'm not command-line savvy on LVM for Linux. On AIX that's another issue, I'm mostly kung-fu-master over there.

I simply rebooted the server, making sure the USB disk was powered on prior.

That made sure LVM did the correct scan and built the special devices.

All is fine now.

I just need to learn more about Linux/LVM.


All times are GMT -5. The time now is 09:02 PM.