LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot mount Volume Group (http://www.linuxquestions.org/questions/linux-newbie-8/cannot-mount-volume-group-4175427455/)

flebber 09-15-2012 09:45 PM

Cannot mount Volume Group
 
I am in ubuntu trying to mount a Sabayon lvm so grub2 can see it. This is what I have done but cannot mount can someone help please.

so I did fdisk -l
Code:

sayth@sayth-TravelMate-5740G:~$ fdisk -l

Disk /dev/sda: 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: 0x104abfd7

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *        2048    27265023    13631488  27  Hidden NTFS WinRE
/dev/sda2        27265024    27469823      102400    7  HPFS/NTFS/exFAT
/dev/sda3        27469824  786911894  379721035+  7  HPFS/NTFS/exFAT
/dev/sda4      786913218  976773119    94929951    5  Extended
/dev/sda5      786913280  812302335    12694528  83  Linux
/dev/sda6      812304384  816254975    1975296  82  Linux swap / Solaris
/dev/sda7      816257024  909033471    46388224  83  Linux
/dev/sda8      909035520  910059519      512000  83  Linux
/dev/sda9      910061568  976773119    33355776  8e  Linux LVM

Then used pvs to view the groups.
Code:

sayth@sayth-TravelMate-5740G:~$ sudo pvs
  PV        VG              Fmt  Attr PSize  PFree
  /dev/sda9  vg_sabayonx8664 lvm2 a-  31.78g    0

Then I displayed the volume groups.
Code:

sayth@sayth-TravelMate-5740G:~$ sudo lvdisplay vg_sabayonx8664
  --- Logical volume ---
  LV Name                /dev/vg_sabayonx8664/lv_root
  VG Name                vg_sabayonx8664
  LV UUID                EZEswp-zXb4-3cGd-d5oC-n9En-JdBB-Pul3ua
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                28.00 GiB
  Current LE            896
  Segments              1
  Allocation            inherit
  Read ahead sectors    auto
 
  --- Logical volume ---
  LV Name                /dev/vg_sabayonx8664/lv_swap
  VG Name                vg_sabayonx8664
  LV UUID                eEgzEH-rrRS-fKle-98iu-cAFR-L7su-yK9hXC
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                3.78 GiB
  Current LE            121
  Segments              1
  Allocation            inherit
  Read ahead sectors    auto

here is where it errors I am trying to mount the root volume group so I can detect it in the update-grub2 command.
But it fails. Tried a couple of variations
Code:

sayth@sayth-TravelMate-5740G:~$ sudo mount /dev/vg_sabayonx8664/lv_root /mnt
mount: special device /dev/vg_sabayonx8664/lv_root does not exist
sayth@sayth-TravelMate-5740G:~$ sudo mount vg_sabayonx8664 /mnt
mount: special device vg_sabayonx8664 does not exist
sayth@sayth-TravelMate-5740G:~$ sudo mount /dev/vg_sabayonx8664 /mnt
mount: special device /dev/vg_sabayonx8664 does not exist


sackboy 09-15-2012 10:09 PM

Have you tried activating the inactive volumes first?

# vgchange -a y

What's the output of `ls /dev/vg_sabayonx8664/` ?

flebber 09-15-2012 10:31 PM

Actually sudo vgchange -a y did the job all by itself. Don't think the other stuff I was doing was necessary.

flebber 09-15-2012 10:40 PM

Code:

sayth@sayth-TravelMate-5740G:~$ sudo ls /dev/vg_sabayonx8664/
[sudo] password for sayth:
lv_root  lv_swap



All times are GMT -5. The time now is 04:50 PM.