Re: How to mount an LVM2 volume in Fedora Linux.

2017-05-28 Thread Lucélio Gomes de Freitas


On 22-05-2017 02:44, stan wrote:
> On Sun, 21 May 2017 13:40:51 -0300
> Lucélio Gomes de Freitas  wrote:
> 
> 
>> Problem:
>> Want to mount the SSD on "Fedora 20" to recover some files, copying it
>> to /dev/sdb3 space(/dev/sdb3 not used/mounted). After this, I can
>> erase all SSD and install "Fedora 25" on it.
> 
> Caveat:  I don't use VG or LV, so not familiar with its usage.
> 
> Can you look at the /etc/fstab on the drive you want to copy files
> from?  Create some mount points under /mnt in F20, add the lines from
> the F16 /etc/fstab to the F20 /etc/fstab, mounting under your new mount
> points.  Reboot, and those mount points should be active, allowing you
> to cp from them.  When you are done, just delete the lines in fstab.
> 
> e.g. instead of mounting /home of F16 under /home, mount it
> under /mnt/f16_home in F20, but with the same parameters as it was
> mounted with in the /etc/fstab under F16.
> 
Great. Thank you.
___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> 
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: How to mount an LVM2 volume in Fedora Linux.

2017-05-28 Thread Lucélio Gomes de Freitas
On 21-05-2017 21:33, Boris Epstein wrote:
> Wouldn't it be /dev/vg_maq01/lv_home that you want to mount to read files
> out of your home directory?
> 
Yes, You are correct. Thank you for teatching me.

[lucelio@localhost ~]$ sudo pvs
  PV VG   Fmt  Attr PSize   PFree
  /dev/sda3  vg_maq01 lvm2 a--  118,75g0
  /dev/sdb5  fedora   lvm2 a--  102,24g0

[lucelio@localhost ~]$ mount | grep mapper
/dev/mapper/fedora-root on / type ext4 (rw,relatime,seclabel,data=ordered)
/dev/mapper/fedora-home on /home type ext4
(rw,relatime,seclabel,data=ordered)

[lucelio@localhost ~]$ sudo mount /dev/vg_maq01/lv_home /mnt/F16_home -r
[lucelio@localhost ~]$ sudo mount /dev/vg_maq01/lv_root /mnt/F16_root -r

[lucelio@localhost ~]$ mount | grep mapper
/dev/mapper/fedora-root on / type ext4 (rw,relatime,seclabel,data=ordered)
/dev/mapper/fedora-home on /home type ext4
(rw,relatime,seclabel,data=ordered)
/dev/mapper/vg_maq01-lv_home on /mnt/F16_home type ext4
(ro,relatime,seclabel,data=ordered)
/dev/mapper/vg_maq01-lv_root on /mnt/F16_root type ext4
(ro,relatime,seclabel,data=ordered)

> Boris.
> 
> On Sun, May 21, 2017 at 12:40 PM, Lucélio Gomes de Freitas <
> aa.luce...@gmail.com> wrote:
> 
>> Hi friends,
>>
>> Anybody helps?
>>
>> Runnning old "Fedora 20-x86_64", and want to install
>> Fedora-Kde-live-25-1-3.
>>
>> Situation:
>> [lucelio@localhost ~]$ uname -rov
>> 3.19.8-100.fc20.x86_64 #1 SMP Tue May 12 17:08:50 UTC 2015 GNU/Linux
>>
>> [lucelio@localhost ~]$ sudo lvmdiskscan
>>   /dev/fedora/root  [  50,00 GiB]
>>   /dev/fedora/swap  [   3,77 GiB]
>>   /dev/sda2 [ 500,00 MiB]
>>   /dev/vg_maq01/lv_swap [   5,75 GiB]
>>   /dev/sda3 [ 118,75 GiB] LVM physical volume
>>   /dev/vg_maq01/lv_home [  63,00 GiB]
>>   /dev/vg_maq01/lv_root [  50,00 GiB]
>>   /dev/fedora/home  [  48,48 GiB]
>>   /dev/sdb2 [ 500,00 MiB]
>>   /dev/sdb3 [ 194,87 GiB]
>>   /dev/sdb4 [ 500,00 MiB]
>>   /dev/sdb5 [ 102,24 GiB] LVM physical volume
>>   6 disks
>>   4 partitions
>>   0 LVM physical volume whole disks
>>   2 LVM physical volumes
>>
>> The /dev/sda* is a SSD(KINGSTON SV200S3128G) 128GB, with old "Fedora
>> 16-x86_64", and only want to recover some files in /home.
>>
>> The /dev/sdb* is a Seagate(ST3320613AS) 320GB, running old "Fedora
>> 20-x86_64", with some important file in /home.
>>
>> [lucelio@localhost ~]$ sudo lvscan
>>   ACTIVE'/dev/fedora/swap' [3,77 GiB] inherit
>>   ACTIVE'/dev/fedora/home' [48,48 GiB] inherit
>>   ACTIVE'/dev/fedora/root' [50,00 GiB] inherit
>>   ACTIVE'/dev/vg_maq01/lv_swap' [5,75 GiB] inherit
>>   ACTIVE'/dev/vg_maq01/lv_home' [63,00 GiB] inherit
>>   ACTIVE'/dev/vg_maq01/lv_root' [50,00 GiB] inherit
>>
>> [lucelio@localhost ~]$ mount | grep /dev/mapper
>> /dev/mapper/fedora-root on / type ext4 (rw,relatime,seclabel,data=ordered)
>> /dev/mapper/fedora-home on /home type ext4
>> (rw,relatime,seclabel,data=ordered)
>>
>> Problem:
>> Want to mount the SSD on "Fedora 20" to recover some files, copying it
>> to /dev/sdb3 space(/dev/sdb3 not used/mounted). After this, I can
>> erase all SSD and install "Fedora 25" on it.
>>
>> Thanks for help if possible.
>> ___
>> users mailing list -- users@lists.fedoraproject.org
>> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>>
> 
> 
> 
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> 
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: How to mount an LVM2 volume in Fedora Linux.

2017-05-22 Thread Rick Stevens
On 05/21/2017 09:40 AM, Lucélio Gomes de Freitas wrote:
> Hi friends,
> 
> Anybody helps?
> 
> Runnning old "Fedora 20-x86_64", and want to install
> Fedora-Kde-live-25-1-3.
> 
> Situation:
> [lucelio@localhost ~]$ uname -rov
> 3.19.8-100.fc20.x86_64 #1 SMP Tue May 12 17:08:50 UTC 2015 GNU/Linux
> 
> [lucelio@localhost ~]$ sudo lvmdiskscan
>   /dev/fedora/root  [  50,00 GiB]
>   /dev/fedora/swap  [   3,77 GiB]
>   /dev/sda2 [ 500,00 MiB]
>   /dev/vg_maq01/lv_swap [   5,75 GiB]
>   /dev/sda3 [ 118,75 GiB] LVM physical volume
>   /dev/vg_maq01/lv_home [  63,00 GiB]
>   /dev/vg_maq01/lv_root [  50,00 GiB]
>   /dev/fedora/home  [  48,48 GiB]
>   /dev/sdb2 [ 500,00 MiB]
>   /dev/sdb3 [ 194,87 GiB]
>   /dev/sdb4 [ 500,00 MiB]
>   /dev/sdb5 [ 102,24 GiB] LVM physical volume
>   6 disks
>   4 partitions
>   0 LVM physical volume whole disks
>   2 LVM physical volumes
> 
> The /dev/sda* is a SSD(KINGSTON SV200S3128G) 128GB, with old "Fedora
> 16-x86_64", and only want to recover some files in /home.
> 
> The /dev/sdb* is a Seagate(ST3320613AS) 320GB, running old "Fedora
> 20-x86_64", with some important file in /home.
> 
> [lucelio@localhost ~]$ sudo lvscan
>   ACTIVE'/dev/fedora/swap' [3,77 GiB] inherit
>   ACTIVE'/dev/fedora/home' [48,48 GiB] inherit
>   ACTIVE'/dev/fedora/root' [50,00 GiB] inherit
>   ACTIVE'/dev/vg_maq01/lv_swap' [5,75 GiB] inherit
>   ACTIVE'/dev/vg_maq01/lv_home' [63,00 GiB] inherit
>   ACTIVE'/dev/vg_maq01/lv_root' [50,00 GiB] inherit
> 
> [lucelio@localhost ~]$ mount | grep /dev/mapper
> /dev/mapper/fedora-root on / type ext4 (rw,relatime,seclabel,data=ordered)
> /dev/mapper/fedora-home on /home type ext4
> (rw,relatime,seclabel,data=ordered)
> 
> Problem:
> Want to mount the SSD on "Fedora 20" to recover some files, copying it
> to /dev/sdb3 space(/dev/sdb3 not used/mounted). After this, I can
> erase all SSD and install "Fedora 25" on it.

Looks like you've used Fedora's default naming scheme for VGs and LVs
(the default VG name of "fedora" and LVs such as "root", "home", "swap"
and the like). This is normal, but can cause pain if you want to mount
LVs on other systems that ALSO use the default naming conventions. I
tend to bypass the default naming conventions and embed the OS version
in the VG and LV names, e.g. "f25vg" for the volume group and "f25root",
"f25home" and such for the volume names to avoid such issues, but I'm
weird.

Judging from what you have above, I doubt seriously that the /dev/sda-
related stuff is really your old F16. Generally, /dev/sda will be your
boot disk, and the VGs/LVs on it is your current system. Checking isn't
hard.

First off, note that device mapper names can take several forms:

/dev/mapper/--OR-
/dev//

Using that information, it's easy to find the volume group (VG). In
my case my root filesystem is "/dev/mapper/f25vg-f25root" (or
"/dev/f25vg/f25root". From that, I know the VG is "f25vg".

If, however, you're not sure about that:

1. Do a "mount" as the root user. Go through the list and find the
line that describes your / (root) filesystem. For example, in my case:

/dev/mapper/f25vg-f25root on / type ext4 (rw,relatime,seclabel,data=ordered)

The first entry in that line (/dev/mapper/f25vg-f25root) is the root
filesystem.

2. Do an "lvdisplay -v" on that and look for the line that contains
"VG Name"

[root@prophead ~]# lvdisplay -v /dev/mapper/f25vg-f25root
  
  VG Namef25vg

So, the volume group is "f25vg" (as could have been deciphered from
name easily).

Now, you want to know what physical volumes (PVs) make up that volume
group. Do an "vgdisplay -v" on that VG name:

[root@prophead ~]# vgdisplay -v f25vg

You'll get a bunch of data from that. There will be data on the volume
group itself and each of the logical volumes it has. Down at the bottom
of all that, you'll see some information headed by the line
"--- Physical volumes ---". You're interested in the line that contains
"PV Name":

PV Name   /dev/sda2

So, my / (root) filesystem is the logical volume "f25root" in the volume
group "f25vg". The volume group itself lives on physical device
/dev/sda2.

Using this, verify what devices are actually active on your machine. As
I said, if you're running an OS other than F16 or F20 (the two you
mentioned) and your active filesystems are on /dev/sda, then /dev/sda
is NOT your old F16 data. We may have to dig a bit deeper on your system
to find your data and we may have to rename VGs and LVs to actually
mount them.
--
- Rick Stevens, Systems Engineer, AllDigitalri...@alldigital.com -
- AIM/Skype: therps2ICQ: 226437340   Yahoo: origrps2 -
--
-   

Re: How to mount an LVM2 volume in Fedora Linux.

2017-05-22 Thread Ed Greshko
On 05/22/17 00:40, Lucélio Gomes de Freitas wrote:
> Anybody helps?


http://ask.xmodulo.com/mount-lvm-partition-linux.html

-- 
I'm jet lagged. That's my excuse and I'm sticking to it.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: How to mount an LVM2 volume in Fedora Linux.

2017-05-21 Thread stan
On Sun, 21 May 2017 13:40:51 -0300
Lucélio Gomes de Freitas  wrote:


> Problem:
> Want to mount the SSD on "Fedora 20" to recover some files, copying it
> to /dev/sdb3 space(/dev/sdb3 not used/mounted). After this, I can
> erase all SSD and install "Fedora 25" on it.

Caveat:  I don't use VG or LV, so not familiar with its usage.

Can you look at the /etc/fstab on the drive you want to copy files
from?  Create some mount points under /mnt in F20, add the lines from
the F16 /etc/fstab to the F20 /etc/fstab, mounting under your new mount
points.  Reboot, and those mount points should be active, allowing you
to cp from them.  When you are done, just delete the lines in fstab.

e.g. instead of mounting /home of F16 under /home, mount it
under /mnt/f16_home in F20, but with the same parameters as it was
mounted with in the /etc/fstab under F16.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: How to mount an LVM2 volume in Fedora Linux.

2017-05-21 Thread Boris Epstein
Wouldn't it be /dev/vg_maq01/lv_home that you want to mount to read files
out of your home directory?

Boris.

On Sun, May 21, 2017 at 12:40 PM, Lucélio Gomes de Freitas <
aa.luce...@gmail.com> wrote:

> Hi friends,
>
> Anybody helps?
>
> Runnning old "Fedora 20-x86_64", and want to install
> Fedora-Kde-live-25-1-3.
>
> Situation:
> [lucelio@localhost ~]$ uname -rov
> 3.19.8-100.fc20.x86_64 #1 SMP Tue May 12 17:08:50 UTC 2015 GNU/Linux
>
> [lucelio@localhost ~]$ sudo lvmdiskscan
>   /dev/fedora/root  [  50,00 GiB]
>   /dev/fedora/swap  [   3,77 GiB]
>   /dev/sda2 [ 500,00 MiB]
>   /dev/vg_maq01/lv_swap [   5,75 GiB]
>   /dev/sda3 [ 118,75 GiB] LVM physical volume
>   /dev/vg_maq01/lv_home [  63,00 GiB]
>   /dev/vg_maq01/lv_root [  50,00 GiB]
>   /dev/fedora/home  [  48,48 GiB]
>   /dev/sdb2 [ 500,00 MiB]
>   /dev/sdb3 [ 194,87 GiB]
>   /dev/sdb4 [ 500,00 MiB]
>   /dev/sdb5 [ 102,24 GiB] LVM physical volume
>   6 disks
>   4 partitions
>   0 LVM physical volume whole disks
>   2 LVM physical volumes
>
> The /dev/sda* is a SSD(KINGSTON SV200S3128G) 128GB, with old "Fedora
> 16-x86_64", and only want to recover some files in /home.
>
> The /dev/sdb* is a Seagate(ST3320613AS) 320GB, running old "Fedora
> 20-x86_64", with some important file in /home.
>
> [lucelio@localhost ~]$ sudo lvscan
>   ACTIVE'/dev/fedora/swap' [3,77 GiB] inherit
>   ACTIVE'/dev/fedora/home' [48,48 GiB] inherit
>   ACTIVE'/dev/fedora/root' [50,00 GiB] inherit
>   ACTIVE'/dev/vg_maq01/lv_swap' [5,75 GiB] inherit
>   ACTIVE'/dev/vg_maq01/lv_home' [63,00 GiB] inherit
>   ACTIVE'/dev/vg_maq01/lv_root' [50,00 GiB] inherit
>
> [lucelio@localhost ~]$ mount | grep /dev/mapper
> /dev/mapper/fedora-root on / type ext4 (rw,relatime,seclabel,data=ordered)
> /dev/mapper/fedora-home on /home type ext4
> (rw,relatime,seclabel,data=ordered)
>
> Problem:
> Want to mount the SSD on "Fedora 20" to recover some files, copying it
> to /dev/sdb3 space(/dev/sdb3 not used/mounted). After this, I can
> erase all SSD and install "Fedora 25" on it.
>
> Thanks for help if possible.
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


How to mount an LVM2 volume in Fedora Linux.

2017-05-21 Thread Lucélio Gomes de Freitas
Hi friends,

Anybody helps?

Runnning old "Fedora 20-x86_64", and want to install
Fedora-Kde-live-25-1-3.

Situation:
[lucelio@localhost ~]$ uname -rov
3.19.8-100.fc20.x86_64 #1 SMP Tue May 12 17:08:50 UTC 2015 GNU/Linux

[lucelio@localhost ~]$ sudo lvmdiskscan
  /dev/fedora/root  [  50,00 GiB]
  /dev/fedora/swap  [   3,77 GiB]
  /dev/sda2 [ 500,00 MiB]
  /dev/vg_maq01/lv_swap [   5,75 GiB]
  /dev/sda3 [ 118,75 GiB] LVM physical volume
  /dev/vg_maq01/lv_home [  63,00 GiB]
  /dev/vg_maq01/lv_root [  50,00 GiB]
  /dev/fedora/home  [  48,48 GiB]
  /dev/sdb2 [ 500,00 MiB]
  /dev/sdb3 [ 194,87 GiB]
  /dev/sdb4 [ 500,00 MiB]
  /dev/sdb5 [ 102,24 GiB] LVM physical volume
  6 disks
  4 partitions
  0 LVM physical volume whole disks
  2 LVM physical volumes

The /dev/sda* is a SSD(KINGSTON SV200S3128G) 128GB, with old "Fedora
16-x86_64", and only want to recover some files in /home.

The /dev/sdb* is a Seagate(ST3320613AS) 320GB, running old "Fedora
20-x86_64", with some important file in /home.

[lucelio@localhost ~]$ sudo lvscan
  ACTIVE'/dev/fedora/swap' [3,77 GiB] inherit
  ACTIVE'/dev/fedora/home' [48,48 GiB] inherit
  ACTIVE'/dev/fedora/root' [50,00 GiB] inherit
  ACTIVE'/dev/vg_maq01/lv_swap' [5,75 GiB] inherit
  ACTIVE'/dev/vg_maq01/lv_home' [63,00 GiB] inherit
  ACTIVE'/dev/vg_maq01/lv_root' [50,00 GiB] inherit

[lucelio@localhost ~]$ mount | grep /dev/mapper
/dev/mapper/fedora-root on / type ext4 (rw,relatime,seclabel,data=ordered)
/dev/mapper/fedora-home on /home type ext4
(rw,relatime,seclabel,data=ordered)

Problem:
Want to mount the SSD on "Fedora 20" to recover some files, copying it
to /dev/sdb3 space(/dev/sdb3 not used/mounted). After this, I can
erase all SSD and install "Fedora 25" on it.

Thanks for help if possible.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org