On 12/15/2016 11:09 AM, Rick Stevens wrote: > On 12/15/2016 10:20 AM, Wes James wrote: >> I just tried to mount the lvm. I used lvscan and found the volume name, >> but now when I try to activate the volume I get this error: >> >> # vgchange -a y fedora_25 >> Volume group "fedora_25" not found >> Cannot process volume group fedora_25 > > The volume group is typically NOT the same as the logical volume name. > The default volume group is usually "fedora" unless you changed it > during installation. You should do a "vgscan" to find the volume group > names actually used, then you can "vgchange -ay <VGNAME>" to activate > it. I should have also said you can do a "lvdisplay --all" to show detailed info on each logical volume--active or not. In the stanzas for each LV, you'll see the a line, "VG Name", with the name of the volume group that LV belongs to. You can "vgchange -ay <name-from-VG Name-line>" to activate that VG. With LVM, remember that PVs (physical volumes--be they whole disks or partitions on disks) are grouped together into VGs (volume groups). The VGs are cut into pieces that become LVs (logical volumes). Another way to look at it is that VGs are made up of one or more PVs. "Chunks" of VGs are used to make up LVs. One VG may have multiple LVs on it. For example, one of my desktop machines looks like this: [root@prophead system]# lvdisplay --all --- Logical volume --- LV Path /dev/fedora/home LV Name home VG Name fedora LV UUID 9o2Oww-i7ee-vcXW-GGVK-1Xiz-zz1L-LRt8pS LV Write Access read/write LV Creation host, time (none), 2016-10-17 11:56:05 -0700 LV Status available # open 1 LV Size 577.23 GiB Current LE 147771 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2 --- Logical volume --- LV Path /dev/fedora/root LV Name root VG Name fedora LV UUID 8LkGoY-fjNl-XdLA-Mjzu-s1CC-mwAf-NAiAnd LV Write Access read/write LV Creation host, time (none), 2016-10-17 11:56:06 -0700 LV Status available # open 1 LV Size 1.18 TiB Current LE 309842 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1 --- Logical volume --- LV Path /dev/fedora/swap LV Name swap VG Name fedora LV UUID UQX2cC-oyA3-KPq4-4vrG-3aQi-kv3B-kvv18s LV Write Access read/write LV Creation host, time (none), 2016-10-17 11:56:07 -0700 LV Status available # open 2 LV Size 37.24 GiB Current LE 9533 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0 --- Logical volume --- LV Path /dev/fedora/tmp LV Name tmp VG Name fedora LV UUID fmfS6q-9fJC-MU4H-4qEk-WJOk-vq77-YHnNPt LV Write Access read/write LV Creation host, time (none), 2016-10-17 11:56:08 -0700 LV Status available # open 1 LV Size 37.24 GiB Current LE 9533 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:3 Note there are four LVs (home, root, swap and tmp), all four of those LVs are from a single VG named "fedora". That single VG looks like this: [root@prophead system]# vgdisplay --- Volume group --- VG Name fedora System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 5 VG Access read/write VG Status resizable MAX LV 0 Cur LV 4 Open LV 4 Max PV 0 Cur PV 1 Act PV 1 VG Size 1.82 TiB PE Size 4.00 MiB Total PE 476681 Alloc PE / Size 476679 / 1.82 TiB Free PE / Size 2 / 8.00 MiB VG UUID ij08o5-dfeC-dber-WkmT-PrD3-KD17-ON63IK If you look at that, you'll see there's one PV involved (the "Cur PV" and "Act PV" lines). That PV looks like: [root@prophead system]# pvdisplay --- Physical volume --- PV Name /dev/sda2 VG Name fedora PV Size 1.82 TiB / not usable 4.09 MiB Allocatable yes PE Size 4.00 MiB Total PE 476681 Free PE 2 Allocated PE 476679 PV UUID 99spuJ-d1lL-R3PB-Ueaw-eXMf-8tjA-CdISrn So it's the second partition on my primary disk (/dev/sda1 is my boot partition) and this confirms it's in the "fedora" VG. There are other drives (external USB-based) in my system, but they're not involved in LVM: [root@prophead system]# pvs --all PV VG Fmt Attr PSize PFree /dev/fedora/home --- 0 0 /dev/fedora/root --- 0 0 /dev/fedora/swap --- 0 0 /dev/fedora/tmp --- 0 0 /dev/sda1 --- 0 0 /dev/sda2 fedora lvm2 a-- 1.82t 8.00m /dev/sdb1 --- 0 0 /dev/sdc1 --- 0 0 The first four are the LVs themselves. /dev/sda1 is the boot partition, the /dev/sda2 partition is the PV used in the fedora VG that is used to make up the four LVs. /dev/sdb and /dev/sdc are the external USB drives. They are partitioned normally and aren't involved in LVM (they get moved around to other systems like Macs and such so I didn't set them up using LVM). That's probably more than you wanted to know, but LVM can be confusing and someone else might be able to use this info. >> On Thu, Dec 15, 2016 at 9:35 AM, Jaroslav Mracek <jmracek@xxxxxxxxxx >> <mailto:jmracek@xxxxxxxxxx>> wrote: >> >> I just published blog about how to repair broken system: >> https://dnf.baseurl.org/2016/12/15/repair-of-broken-system-with-dnf-2-0/ >> <https://dnf.baseurl.org/2016/12/15/repair-of-broken-system-with-dnf-2-0/>. >> I think that it will be useful to solve your problem. >> >> Jaroslav >> >> On Thu, Dec 15, 2016 at 12:59 AM, Wes James <comptekki@xxxxxxxxx >> <mailto:comptekki@xxxxxxxxx>> wrote: >> >> I just installed fedora 24 and was doing the initial dnf update >> and it had gotten past downloading the packages, doing the drpm >> part and was installing. I accidentally clicked the close >> button on the terminal window when moving the mouse. Is there a >> way to recover the update? I get errors about file from this >> package conflicts with file from that package. >> >> If there's no easy fix, I can just reinstall. >> >> Thanks, >> >> -wes >> >> _______________________________________________ >> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx >> <mailto:users@xxxxxxxxxxxxxxxxxxxxxxx> >> To unsubscribe send an email to >> users-leave@xxxxxxxxxxxxxxxxxxxxxxx >> <mailto:users-leave@xxxxxxxxxxxxxxxxxxxxxxx> >> >> >> >> _______________________________________________ >> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx >> <mailto:users@xxxxxxxxxxxxxxxxxxxxxxx> >> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx >> <mailto:users-leave@xxxxxxxxxxxxxxxxxxxxxxx> >> >> >> >> >> _______________________________________________ >> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx >> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx >> > > -- ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ricks@xxxxxxxxxxxxxx - - AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 - - - - I don't suffer from insanity...I enjoy every minute of it! - ---------------------------------------------------------------------- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx