LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-22-2008, 11:04 AM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
Mounting Second LVM HDD to an existing ext3 file system.


I pulled another hdd from another cpu with a LVM Volume. It has a lot of data on it that I need. my current system has is using ext3 file system. How can I mount an LVM volume from an old hdd to my new machine that has a ext3 file system on it? It is being seen as hdb:hdb1,hdb2,hdb3. I tried

PHP Code:
mount  /dev/VolGroup00/LogVol00 /media/oldhdd
neither worked. help

Here is a snippet of dmeg:

PHP Code:
   ide0BM-DMA at 0xd800-0xd807BIOS settingshda:DMAhdb:DMA
    ide1
BM-DMA at 0xd808-0xd80fBIOS settingshdc:DMAhdd:DMA
Probing IDE 
interface ide0...
hdaWDC WD205AAATA DISK drive
hdb
ST3120026AATA DISK drive
hdb
max request size512KiB
hdb
234441648 sectors (120034 MBw/8192KiB CacheCHS=16383/255/63UDMA(66)
hdbcache flushes supported
 hdb
hdb1 hdb2 hdb3 

Last edited by metallica1973; 02-22-2008 at 08:40 PM.
 
Old 02-22-2008, 11:14 AM   #2
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
Wow I made a mistake. It is a LVM:

PHP Code:
Disk /dev/hdb120.0 GB120034123776 bytes
255 heads
63 sectors/track14593 cylinders
Units 
cylinders of 16065 512 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1          25      200781   83  Linux
/dev/hdb2              26         152     1020127+  82  Linux swap Solaris
/dev/hdb3             153       14593   115997332+  8e  Linux LVM 
I ran pvs:

PHP Code:
 PV         VG         Fmt  Attr PSize   PFree 
  
/dev/hdb3  VolGroup00 lvm2 a-   110.59G 32.00M 
and lvdisplay

PHP Code:
  --- Logical volume ---
  
LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                5rgQoX
-V80q-oPc0-OHdi-Sm94-xAqI-GoFA3B
  LV Write Access        read
/write
  LV Status              NOT available
  LV Size                9.75 GB
  Current LE             312
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
 

 
--- Logical volume ---
  
LV Name                /dev/VolGroup00/LogVol04
  VG Name                VolGroup00
  LV UUID                gCVyYo
-gTIX-3Xge-CQfu-ZRZE-84jk-mF1gea
  LV Write Access        read
/write
  LV Status              NOT available
  LV Size                22.72 GB
  Current LE             727
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
   
  
--- Logical volume ---
  
LV Name                /dev/VolGroup00/LogVol03
  VG Name                VolGroup00
  LV UUID                nM1xz1
-fEty-ERJg-d8KS-j7P3-F4ao-uRnVvK
  LV Write Access        read
/write
  LV Status              NOT available
  LV Size                19.53 GB
  Current LE             625
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
   
  
--- Logical volume ---
  
LV Name                /dev/VolGroup00/LogVol02
  VG Name                VolGroup00
  LV UUID                F4tZw4
-6Bvw-DOto-cgDL-ylMO-30hh-S1ndms
  LV Write Access        read
/write
  LV Status              NOT available
  LV Size                29.28 GB
  Current LE             937
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
   
  
--- Logical volume ---
  
LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                NQ6ewo
-5Nj3-q2YK-Ttr6-FaTK-oWKY-KzOlv1
  LV Write Access        read
/write
  LV Status              NOT available
  LV Size                29.28 GB
  Current LE             937
  Segments               1
  Allocation             inherit
  Read ahead sectors     0 
and then tried:

PHP Code:
mount  /dev/VolGroup00/LogVol00 /media/oldhdd
to get:

PHP Code:
mountspecial device /dev/VolGroup00/LogVol00 does not exist 
what next?

Last edited by metallica1973; 02-22-2008 at 11:47 AM.
 
Old 02-22-2008, 10:20 PM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
I was able to figure out how to mount a secondary hdd that has a LVM volume to an existing system that is running ext3. Here we go: I used several utilities for LVM such as pvscan,vgdisplay,lvdisplay,pvs,vgchange:

I used pvscan to give me my volume name:

PHP Code:
  PV /dev/hdb3   VG VolGroup00   lvm2 [110.59 GB 32.00 MB free]
  
Total[110.59 GB] / in use: [110.59 GB] / in no VG[0   
for more info I used vgdisplay

PHP Code:
  --- Volume group ---
  
VG Name               VolGroup00
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  6
  VG Access             read
/write
  VG Status             resizable
  MAX LV                0
  Cur LV                5
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               110.59 GB
  PE Size               32.00 MB
  Total PE              3539
  Alloc PE 
Size       3538 110.56 GB
  Free  PE 
Size       1 32.00 MB
  VG UUID               p6PTty
-7HUX-tJFD-ucRX-rxkZ-TEo3-D98mom 
more info pvs

PHP Code:
  PV         VG         Fmt  Attr PSize   PFree 
  
/dev/hdb3  VolGroup00 lvm2 a-   110.59G 32.00M 
but the most handy was the lgdisplay which give me all the volume information that I need.

PHP Code:
    --- Logical volume ---
  
LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                5rgQoX
-V80q-oPc0-OHdi-Sm94-xAqI-GoFA3B
  LV Write Access        read
/write
  LV Status              available
  
# open                 0
  
LV Size                9.75 GB
  Current LE             312
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253
:0
   
  
--- Logical volume ---
  
LV Name                /dev/VolGroup00/LogVol04
  VG Name                VolGroup00

  LV UUID                gCVyYo
-gTIX-3Xge-CQfu-ZRZE-84jk-mF1gea
  LV Write Access        read
/write
  LV Status              available
  
# open                 1
  
LV Size                22.72 GB
  Current LE             727
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253
:1
   
  
--- Logical volume ---
  
LV Name                /dev/VolGroup00/LogVol03
  VG Name                VolGroup00
  LV UUID                nM1xz1
-fEty-ERJg-d8KS-j7P3-F4ao-uRnVvK
  LV Write Access        read
/write
  LV Status              available
  
# open                 0
  
LV Size                19.53 GB
  Current LE             625
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253
:2
   
  
--- Logical volume ---
  
LV Name                /dev/VolGroup00/LogVol02
  VG Name                VolGroup00
  LV UUID                F4tZw4
-6Bvw-DOto-cgDL-ylMO-30hh-S1ndms
  LV Write Access        read
/write
  LV Status              available
  
# open                 0
  
LV Size                29.28 GB
  Current LE             937
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253
:3
   
  
--- Logical volume ---
  
LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                NQ6ewo
-5Nj3-q2YK-Ttr6-FaTK-oWKY-KzOlv1
  LV Write Access        read
/write
  LV Status              available
  
# open                 0
  
LV Size                29.28 GB
  Current LE             937
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253
:
and finally vgchange which changes the attributes of a volume:

PHP Code:
vgchange -ay 
and then you have to mount the volume that you need and in my case it was
/dev/VolGroup00/LogVol04

PHP Code:
 mount /dev/VolGroup00/LogVol04 /media/oldhdd
I used this reference link:

http://www.fedoraforum.org/forum/arc...p/t-64964.html

I hope this help.

Last edited by metallica1973; 02-22-2008 at 10:22 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access an EXT3 HDD from the Windows chanwcom Linux - Newbie 5 03-27-2006 09:19 AM
ext3-fs warning: while connecting the external HDD sathyguy Linux - Hardware 1 12-17-2005 11:48 AM
mounting 2nd ext3 HDD redmoon Linux - Newbie 8 07-22-2005 12:28 AM
Mounting an ext3 HDD (?) AndrewZorn Linux - General 11 04-12-2005 12:04 PM
fstab problems with second ext3 HDD movintocali Fedora 3 10-22-2004 03:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration