You are not logged in.
I need to back-up some data from another computer, so I just plugged in the other drive as my 2nd hard drive.
[root@localhost ~]# fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x003f003f
Device Boot Start End Blocks Id System
/dev/sda1 * 63 312560639 156280288+ 7 HPFS/NTFS/exFAT
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6506b52e
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 208844 104391 83 Linux
/dev/sdb2 208845 1269134 530145 82 Linux swap / Solaris
/dev/sdb3 1269135 72951164 35841015 83 Linux
/dev/sdb4 72951165 976768064 451908450 83 Linux
Disk /dev/sdc: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b16ec
Device Boot Start End Blocks Id System
/dev/sdc1 * 2048 1026047 512000 83 Linux
/dev/sdc2 1026048 312580095 155777024 8e Linux LVM
Disk /dev/sdd: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders, total 2930277168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xda847333
Device Boot Start End Blocks Id System
/dev/sdd1 * 2048 2930274303 1465136128 7 HPFS/NTFS/exFAT
So I need to mount /dev/sdc2, but it's a LVM, so I lvdisplay.
[root@localhost ~]# lvdisplay
--- Logical volume ---
LV Name /dev/vg_garage/lv_swap
VG Name vg_garage
LV UUID vIXGHW-2HC3-9Ck3-NeU8-Xbvy-uZBI-UmiJSS
LV Write Access read/write
LV Status NOT available
LV Size 3.94 GiB
Current LE 126
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Name /dev/vg_garage/lv_home
VG Name vg_garage
LV UUID 1GScaI-TcEj-mRJ6-E14t-k0xD-tllj-dWrhI4
LV Write Access read/write
LV Status NOT available
LV Size 94.59 GiB
Current LE 3027
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Name /dev/vg_garage/lv_root
VG Name vg_garage
LV UUID gP5UXV-zk2u-pa0v-9br2-Mhwt-4l9M-rcJ1Rh
LV Write Access read/write
LV Status NOT available
LV Size 50.00 GiB
Current LE 1600
Segments 1
Allocation inherit
Read ahead sectors auto
I need /dev/vg_garage/lv_home.
[root@localhost ~]# mount /dev/vg_garage/lv_home /media/extern
mount: special device /dev/vg_garage/lv_home does not exist
[root@localhost ~]# vgchange -ay /dev/vg_garage/lv_home
Invalid volume group name: vg_garage/lv_home
Run `vgchange --help' for more information.
What do I try next?
Last edited by infested999 (2011-08-28 02:12:25)
Offline
# vgchange -ay vg_garage
Just the volume group name, not the whole path. The wiki entry has some more troubleshooting tips
Scott
Wow that was easy, I wonder why all these tutorials I find on Google have the wrong information? http://trustle.wordpress.com/2008/09/17 … not-exist/
Offline
I think, and someone will shoot me if I am wrong, that you need to do:
vgchange -ay vg_garage
After that, issue this:
lvchange -ay lv_home
That should work for you.
This line --
vgchange -ay /dev/vg_garage/lv_home
will not work because you need the volgroup to be "mounted," as it were, first. I hope that made sense. Please post back if something goes right (or wrong) to let us know how you're getting on. Or Please mark this solved. Apparently I'm too far behind this morning.
Last edited by MoonSwan (2011-08-27 17:00:37)
Offline
The wiki is ALWAYS the best place to start...some of the best info on the webz! Edit your first post and mark [SOLVED] in the title
Scott
Offline