Re: Universal drive adapter -

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/10/2009 03:28 PM, Bob Goodwin wrote:
> On 10/12/09 10:19, Bryn M. Reeves wrote:
> 
>>     blkid /dev/sdc1
>>          
>     Ok, thank you, that gives me a bit more information:
> 
>     [root@box6 bob]# file -s /dev/sdc1
>     /dev/sdc1: LVM2 (Linux Logical Volume Manager) , UUID:
>     X5Vx9im0hf7hS6Y4WNhdW2ju8heRtUh
> 
>     [root@box6 bob]# blkid /dev/sdc1
>     /dev/sdc1: UUID="X5Vx9i-m0hf-7hS6-Y4WN-hdW2-ju8h-eRtUhR"
>     TYPE="LVM2_member"
> 
>     Is there a way to list directories and files?
> 

The drive was configured for use with the logical volume manager
(LVM2). You need to use the LVM2 tools to find out what volume group
is on the disk and what logical volumes it contains. Then you can
activate and mount the devices like any other block device.

Have a look at the LVM2 documentation/man pages or how-tos for more
information.

To display volume groups use vgs or vgdisplay:

# vgs
  VG     #PV #LV #SN Attr   VSize   VFree
  system   1  11   0 wz--n- 231.66G 88.81G
# vgdisplay
  --- Volume group ---
  VG Name               system
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  32
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                11
  Open LV               4
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               231.66 GB
  PE Size               32.00 MB
  Total PE              7413
  Alloc PE / Size       4571 / 142.84 GB
  Free  PE / Size       2842 / 88.81 GB
  VG UUID               qNA2zi-ArAk-htTG-5m4t-G4My-DNSW-2jCzE6

Once you know the name of the volume group you can activate it with
vgchange:

# vgchange -ay <vg name>

Or, if you omit the vg name the command will activate all inactive VGs
on the system.

Display the logical volumes with lvs or lvdisplay:

# lvs
  LV      VG     Attr   LSize   Origin Snap%  Move Log Copy%  Convert
  foo     system -wi-a- 128.00M
  fooS    system -wi-a- 224.00M
  home    system -wi-ao 100.00G
  lv00    system -wi-a- 416.00M
  rootvol system -wi-ao  21.03G
  swap0   system -wi-ao   8.00G
  t0      system -wi-a-  32.00M
  t1      system -wi-a-  32.00M
  tmp     system -wi-a-   1.00G
  usr     system -wi-a-   8.00G
  var     system -wi-ao   4.00G

Once you know the name of the vg and lv you want to look and they have
been activated you can mount them with:

# mount /dev/<vg name>/<lv name> /path/to/mount/point

You can also carry on inspecting LV contents with file/blkid as you
did for the partition.

Regards,
Bryn.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux