Fedora Linux Support Community & Resources Center
  #1  
Old 13th June 2012, 01:41 AM
jan1024188 Offline
Registered User
 
Join Date: Nov 2006
Posts: 110
linuxfirefox
LVM Issues

Ok,

After almost getting killed by LVM's second time this year today (near heart attack) I'm never using them again (from F18 on).

So I have 2 SSDs:
128gb with Fedora 17 - volume group vg_janpc00
64gb with Fedora 16 - volume group vg_janpc

So when I was installing F17 I had F16 ssd on. Now today I decided to cleanup my 64gb drive (created new partition table) and after rebooting I get this:
http://shrani.si/f/P/5V/MPBoxFN/2012-06-13-010427.jpg

So I reinstalled fedora on 64gb ssd that recreated vg_janpc and lv_swap respectively, however Id like to be able to boot and use F17 without dependence of my other SSD.

How can I achieve this? I believe swap, root and home are all on 128gb ssd.
Quote:
[jan@janpc ~]$ ls /dev/vg_janpc/
lv_home lv_root lv_swap
[jan@janpc ~]$ ls /dev/vg_janpc00/
lv_home lv_root lv_swap
Also bootloader is on 128gb one. The whole LVM is luks encrypted.
Reply With Quote
  #2  
Old 13th June 2012, 01:18 PM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 2,082
linuxfirefox
Re: LVM Issues

Do you always scare this easily?

As far as I can tell this has nothing to do with LVMs.

Linux is often trying to use all available swap space and now it's just complaining because one of them has disappeared. Try
Code:
cat /proc/swaps
or check your /etc/fstab for swap entries.
Reply With Quote
  #3  
Old 13th June 2012, 11:09 PM
jan1024188 Offline
Registered User
 
Join Date: Nov 2006
Posts: 110
linuxfirefox
Re: LVM Issues

In both instances I happend to have my work without backup. Thats why I scare. Now Ill setup another encrypted drive and have automatic daily backups on it.

Quote:
[jan@janpc ~]$ sudo cat /proc/swaps
[sudo] password for jan:
Filename Type Size Used Priority
/dev/dm-3 partition 10256380 0 0
/dev/dm-1 partition 4095996 0 0
[jan@janpc ~]$
Quote:
#
# /etc/fstab
# Created by anaconda on Tue May 29 17:58:53 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_janpc00-lv_root / ext4 defaults 1 1
UUID=a785cc3f-a3f2-483f-8758-10d96b438f84 /boot ext4 defaults 1 2
/dev/mapper/vg_janpc00-lv_home /home ext4 defaults 1 2
/dev/mapper/vg_janpc-lv_swap swap swap defaults 0 0
/dev/mapper/vg_janpc00-lv_swap swap swap defaults 0 0
So if I remove:
/dev/mapper/vg_janpc-lv_swap swap swap defaults 0 0

Will this solve the issue?

---------- Post added at 02:09 PM ---------- Previous post was at 08:13 AM ----------

Removing it from fstab didnt fix, please help.
Reply With Quote
  #4  
Old 14th June 2012, 12:01 AM
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,696
linuxfirefox
Re: LVM Issues

Where is /boot located?
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Guide: Windows 8+ & Fedora 20+ Dualboot
Repo (sea-devel) :: Text User Interface (TUI), Video Handler Script (VHS), efi-helper, grub2-circled-nasa-themes, Essentials (blame, p, rmtf, rnd, siggen, screenshot...), (BETA) Dev-Scripts, (BETA) Fedora Account Scripts (FAS)
Reply With Quote
  #5  
Old 14th June 2012, 12:06 AM
jan1024188 Offline
Registered User
 
Join Date: Nov 2006
Posts: 110
linuxfirefox
Re: LVM Issues

It has own ext4 partition on 128gb ssd.
Reply With Quote
  #6  
Old 14th June 2012, 02:17 AM
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,696
linuxfirefox
Re: LVM Issues

Have you removed the F16 swap entry out out /etc/crypttab of f17?
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Guide: Windows 8+ & Fedora 20+ Dualboot
Repo (sea-devel) :: Text User Interface (TUI), Video Handler Script (VHS), efi-helper, grub2-circled-nasa-themes, Essentials (blame, p, rmtf, rnd, siggen, screenshot...), (BETA) Dev-Scripts, (BETA) Fedora Account Scripts (FAS)
Reply With Quote
  #7  
Old 14th June 2012, 11:29 AM
jan1024188 Offline
Registered User
 
Join Date: Nov 2006
Posts: 110
linuxfirefox
Re: LVM Issues

Quote:
Originally Posted by sea View Post
Have you removed the F16 swap entry out out /etc/crypttab of f17?
I dont think its there.
Quote:
[jan@janpc ~]$ sudo cat /etc/crypttab
luks-a35ca127-7576-492f-9739-3285c2073397 UUID=a35ca127-7576-492f-9739-3285c2073397 none
[jan@janpc ~]$
Reply With Quote
  #8  
Old 16th June 2012, 12:38 AM
jan1024188 Offline
Registered User
 
Join Date: Nov 2006
Posts: 110
linuxfirefox
Re: LVM Issues

Guys, help me how do I make my F17 not want to use swap on other sdd? HELP!
Reply With Quote
  #9  
Old 16th June 2012, 01:42 AM
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,696
linuxfirefox
Re: LVM Issues

Interesting, your crypttab has just 1 entry.
So i assume, you just have to enter the UUID of the swap partition, in the pattern that is for the root partition already done.

To get the missing uuid, check lsblk or blkid
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Guide: Windows 8+ & Fedora 20+ Dualboot
Repo (sea-devel) :: Text User Interface (TUI), Video Handler Script (VHS), efi-helper, grub2-circled-nasa-themes, Essentials (blame, p, rmtf, rnd, siggen, screenshot...), (BETA) Dev-Scripts, (BETA) Fedora Account Scripts (FAS)
Reply With Quote
  #10  
Old 16th June 2012, 11:28 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 2,082
linuxfirefox
Re: LVM Issues

So what exactly did you do?

After you edit /etc/fstab you'll have to reboot or at least swapoff/swapon for the changes to take effect.

Is the swap space still being used?

Code:
cat /proc/swaps

cat /etc/fstab
Reply With Quote
  #11  
Old 16th June 2012, 11:29 AM
jan1024188 Offline
Registered User
 
Join Date: Nov 2006
Posts: 110
linuxfirefox
Re: LVM Issues

Here outputs:
Quote:
[jan@janpc ~]$ sudo lsblk
[sudo] password for jan:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 119.2G 0 disk
├─sda1 8:1 0 500M 0 part /boot
└─sda2 8:2 0 118.8G 0 part
└─luks-a35ca127-7576-492f-9739-3285c2073397 (dm-0)
253:0 0 118.8G 0 crypt
├─vg_janpc00-lv_swap (dm-1) 253:1 0 3.9G 0 lvm [SWAP]
├─vg_janpc00-lv_root (dm-2) 253:2 0 9.8G 0 lvm /
└─vg_janpc00-lv_home (dm-6) 253:6 0 105.1G 0 lvm /home
sdb 8:16 0 59.6G 0 disk
├─sdb1 8:17 0 500M 0 part
└─sdb2 8:18 0 59.1G 0 part
├─vg_janpc-lv_swap (dm-3) 253:3 0 9.8G 0 lvm
├─vg_janpc-lv_home (dm-4) 253:4 0 16.4G 0 lvm
└─vg_janpc-lv_root (dm-5) 253:5 0 32.9G 0 lvm
sdc 8:32 0 232.9G 0 disk
└─sdc1 8:33 0 232.9G 0 part /run/media/jan/523EB2
sr0 11:0 1 1024M 0 rom
[jan@janpc ~]$ sudo blkid
/dev/sda1: UUID="a785cc3f-a3f2-483f-8758-10d96b438f84" TYPE="ext4"
/dev/sda2: UUID="a35ca127-7576-492f-9739-3285c2073397" TYPE="crypto_LUKS"
/dev/sdb1: UUID="75ee405f-7f68-4796-ad9b-3b717bdd3a15" TYPE="ext4"
/dev/sdb2: UUID="FJT1O0-Nq3r-rZgE-Jj7i-H7WT-AdQp-dqCt8I" TYPE="LVM2_member"
/dev/sdc1: UUID="523EB211445CEA9A" TYPE="ntfs"
/dev/mapper/luks-a35ca127-7576-492f-9739-3285c2073397: UUID="7tla3u-2X0X-tuWL-g0S9-a9N9-CyYF-M6fHjv" TYPE="LVM2_member"
/dev/mapper/vg_janpc00-lv_swap: UUID="4d7fea51-5248-495f-815c-55bb1096cb5c" TYPE="swap"
/dev/mapper/vg_janpc00-lv_root: LABEL="_Fedora-17-x86_6" UUID="9e322a0a-8a86-46dc-9ae0-e84922bd7078" TYPE="ext4"
/dev/mapper/vg_janpc-lv_swap: UUID="0f3a40db-6a7e-4f36-8152-48dcc510f065" TYPE="swap"
/dev/mapper/vg_janpc-lv_home: UUID="78cb10c4-d3e0-4fd6-83c3-ac8b145002d4" TYPE="ext4"
/dev/mapper/vg_janpc-lv_root: LABEL="_Fedora-17-x86_6" UUID="bb5d2d2a-5430-4d46-9113-4bc5b58e860d" TYPE="ext4"
/dev/mapper/vg_janpc00-lv_home: UUID="42283e16-3a2e-4726-bbed-6f3755a175b8" TYPE="ext4"
[jan@janpc ~]$


[jan@janpc ~]$ sudo cat /proc/swaps
Filename Type Size Used Priority
/dev/dm-1 partition 4095996 0 0
[jan@janpc ~]$ sudo cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Tue May 29 17:58:53 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_janpc00-lv_root / ext4 defaults 1 1
UUID=a785cc3f-a3f2-483f-8758-10d96b438f84 /boot ext4 defaults 1 2
/dev/mapper/vg_janpc00-lv_home /home ext4 defaults 1 2
/dev/mapper/vg_janpc00-lv_swap swap swap defaults 0 0
[jan@janpc ~]$
Reply With Quote
  #12  
Old 18th June 2012, 01:31 AM
jan1024188 Offline
Registered User
 
Join Date: Nov 2006
Posts: 110
linuxfirefox
Re: LVM Issues

Still cant figure out how to disable swap in vg-janpc so it will let me delete it and boot.
Reply With Quote
  #13  
Old 19th June 2012, 01:16 AM
jan1024188 Offline
Registered User
 
Join Date: Nov 2006
Posts: 110
linuxfirefox
Re: LVM Issues

Actually I've just noticed its in grub.cfg the requirement for swap I dont want.
Quote:
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora (3.4.2-4.fc17.x86_64)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-9e322a0a-8a86-46dc-9ae0-e84922bd7078' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd1,msdos1' a785cc3f-a3f2-483f-8758-10d96b438f84
else
search --no-floppy --fs-uuid --set=root a785cc3f-a3f2-483f-8758-10d96b438f84
fi
echo 'Loading Fedora (3.4.2-4.fc17.x86_64)'
linux /vmlinuz-3.4.2-4.fc17.x86_64 root=/dev/mapper/vg_janpc00-lv_root ro rd.md=0 rd.dm=0 SYSFONT=True rd.luks.uuid=luks-a35ca127-7576-492f-9739-3285c2073397 KEYTABLE=us rd.lvm.lv=vg_janpc00/lv_swap rd.lvm.lv=vg_janpc/lv_swap rd.lvm.lv=vg_janpc00/lv_root LANG=en_US.UTF-8 rhgb quiet nouveau.modeset=0 rd.driver.blacklist=nouveau
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.4.2-4.fc17.x86_64.img
}
How do I remove it and non make it ever appear again?

---------- Post added at 04:14 PM ---------- Previous post was at 04:04 PM ----------

Ok, I just did this, hope it works.
Quote:
echo 'GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Fedora"
GRUB_DEFAULT=saved
GRUB_CMDLINE_LINUX="rd.md=0 rd.dm=0 SYSFONT=True rd.luks.uuid=luks-a35ca127-7576-492f-9739-3285c2073397 KEYTABLE=us rd.lvm.lv=vg_janpc00/lv_swap rd.lvm.lv=vg_janpc00/lv_root LANG=en_US.UTF-8 rhgb quiet"
#GRUB_THEME="/boot/grub2/themes/system/theme.txt"' > /etc/default/grub

[root@janpc grub2]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.4.2-4.fc17.x86_64
Found initrd image: /boot/initramfs-3.4.2-4.fc17.x86_64.img
Found linux image: /boot/vmlinuz-3.4.0-1.fc17.x86_64
Found initrd image: /boot/initramfs-3.4.0-1.fc17.x86_64.img
Found linux image: /boot/vmlinuz-3.3.7-1.fc17.x86_64
Found initrd image: /boot/initramfs-3.3.7-1.fc17.x86_64.img
done


---------- Post added at 04:16 PM ---------- Previous post was at 04:14 PM ----------

It worked!!!!!
Reply With Quote
Reply

Tags
issues, lvm

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
updater issues and yum issues chris53 Using Fedora 12 23rd June 2010 11:36 AM
HAL issues? Lebenskuenstler Hardware & Laptops 0 21st February 2009 01:26 PM
fedora 9 issues - nVIDIA issues. Help please! pinoyboy Using Fedora 8 12th June 2008 11:04 AM
Yum Issues noelslevin Using Fedora 2 9th October 2005 08:00 AM


Current GMT-time: 10:44 (Sunday, 21-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
...Infinity Pool At Marina Bay Sands Photos on Instagram - Papaya cafeteria Photos on Instagram - Utah Olympic Oval Travel Photos - Gran Palas hotel Travel Photos