 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

13th June 2012, 01:41 AM
|
|
Registered User
|
|
Join Date: Nov 2006
Posts: 110

|
|
|
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.
|

13th June 2012, 01:18 PM
|
|
Registered User
|
|
Join Date: Dec 2006
Posts: 1,718

|
|
|
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
or check your /etc/fstab for swap entries.
|

13th June 2012, 11:09 PM
|
|
Registered User
|
|
Join Date: Nov 2006
Posts: 110

|
|
|
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.
|

14th June 2012, 12:01 AM
|
 |
"Shells" (of a sub world)
|
|
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,608

|
|
|
Re: LVM Issues
Where is /boot located?
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
|

14th June 2012, 12:06 AM
|
|
Registered User
|
|
Join Date: Nov 2006
Posts: 110

|
|
|
Re: LVM Issues
It has own ext4 partition on 128gb ssd.
|

14th June 2012, 02:17 AM
|
 |
"Shells" (of a sub world)
|
|
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,608

|
|
|
Re: LVM Issues
Have you removed the F16 swap entry out out /etc/crypttab of f17?
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
|

14th June 2012, 11:29 AM
|
|
Registered User
|
|
Join Date: Nov 2006
Posts: 110

|
|
|
Re: LVM Issues
Quote:
Originally Posted by sea
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 ~]$
|
|

16th June 2012, 12:38 AM
|
|
Registered User
|
|
Join Date: Nov 2006
Posts: 110

|
|
|
Re: LVM Issues
Guys, help me how do I make my F17 not want to use swap on other sdd? HELP!
|

16th June 2012, 01:42 AM
|
 |
"Shells" (of a sub world)
|
|
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,608

|
|
|
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
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
|

16th June 2012, 11:28 AM
|
|
Registered User
|
|
Join Date: Dec 2006
Posts: 1,718

|
|
|
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
|

16th June 2012, 11:29 AM
|
|
Registered User
|
|
Join Date: Nov 2006
Posts: 110

|
|
|
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 ~]$
|
|

18th June 2012, 01:31 AM
|
|
Registered User
|
|
Join Date: Nov 2006
Posts: 110

|
|
|
Re: LVM Issues
Still cant figure out how to disable swap in vg-janpc so it will let me delete it and boot.
|

19th June 2012, 01:16 AM
|
|
Registered User
|
|
Join Date: Nov 2006
Posts: 110

|
|
|
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!!!!!
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 16:10 (Friday, 24-05-2013)
|
|
 |
 |
 |
 |
|
|