[SOLVED] AIF and LVM under peculiar circumstances
I am developing a virtual machine builder called varch and I am using aif to do the installs. So far it works will with regular partitions, but I am having trouble with lvm. I am fairly confident my BLOCK_DEVICES variable is accurate but aif fails to run lvcreate.
So let me paint the environment, varch is a python application which takes an aif config file as an argument, varch creates a raw disk image and then makes it available by using kpartx. The disk image becomes available on a loopback device, like /dev/loop0, and partitions become available under /dev/mapper/loop0px.
Varch takes the aif file and edits it to ensure that aif does not modify anything on the actual running system by changing the config file to point to the loopback device.
Then varch runs aif -p automatic <modified config>
like I said, it works great with regular partitions, but fails on lvm, aif makes the pv and the vg but never calls lvcreate.
What I am asking is, can someone help me navigate AIF a bit so I can figure out why it is failing? Here is the aif config I am using with varch:
SOURCE=net
#FILE_URL=file:///src/core/pkg
SYNC_URL=http://mirror.rit.edu/archlinux/\$repo/os/x86_64
HARDWARECLOCK=UTC
TIMEZONE=America/Denver
# Do you want to have additional pacman repositories or packages available at runtime (during installation)?
# RUNTIME_REPOSITORIES = array like this ('name1' 'location of repo 1' ['name2' 'location of repo2',..])
RUNTIME_REPOSITORIES=
# space separated list
RUNTIME_PACKAGES=
# packages to install
TARGET_GROUPS=base # all packages in this group will be installed (defaults to base if no group and no packages are specified)
TARGET_PACKAGES_EXCLUDE='nano reiserfsprogs'
TARGET_PACKAGES=openssh # you can also specify separate packages to install (this is empty by default)
# These variables are mandatory
GRUB_DEVICE=/dev/vda
PARTITIONS='/dev/vda 100:ext4:+ *:ext4'
BLOCKDATA='/dev/vda1 raw no_label ext4;yes;/boot;target;no_opts;no_label;no_params
/dev/vda2 raw no_label lvm-pv;yes;no_mountpoint;target;no_opts;no_label;no_params
/dev/vda2+ lvm-pv no_label lvm-vg;yes;no_mountpoint;target;no_opts;vmvg;/dev/vda2
/dev/mapper/vmvg lvm-vg vmvg lvm-lv:yes;no_mountpoint;target;no_opts;root;5000M
/dev/mapper/vmvg-root lvm-lv root xfs;yes;/;target;no_opts;no_label;no_params'
Thanks in advance, I know this is a deep question!
Last edited by Ryujin (2010-11-07 17:40:54)
Why do you have a colon instead of a semicolon between lvm-lv and yes? on the line where you define the LV's on the VG.
Probably that's it.
Similar Messages
-
Hi,
I am getting a warning message on screen, saying that myiPad hasn't been backed up to iCloud for two weeks, and advising under what circumstances the message appears. My problem is, is that I have backed it up, but am unable to remove the message, and whilst the message is there, the iPad is frozen, and I cannot do anything.
Has any other user had such a problem, and if so, how did they rectify it.
Any advice would be greatly appreciated.
Thanks in advance.
clarinet99Try this.
Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up -
[SOLVED] Grub2 and LVM -- "Couldn't find physical volume `pv1'"
Hello Folks
I'm trying to upgrade from grub-legacy to grub2, following the instructions at https://wiki.archlinux.org/index.php/GRUB2
I've installed grub-bios, and run this without problem:
# modprobe dm-mod
# grub-install --recheck /dev/sda
But this command
# grub-mkconfig -o /boot/grub/grub.cfg
gives this:
Generating grub.cfg ...
/usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
/usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
done
So now I'm reluctant to try to reboot the system because it seems likely to be broken. Should I ignore the warnings, or fix something?
I'm using LVM2 as you can see. /boot is on a separate non-LVM partition (/dev/sdc1). root is on LVM. This is all on a recently-updated 64-bit Arch installation using systemd.
Here's a load of information -- I hope it's relevant.
# fdisk -lu
Disk /dev/sdb: 250.1 GB, 250059350016 bytes, 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xea22bb30
Device Boot Start End Blocks Id System
/dev/sdb1 63 488392064 244196001 83 Linux
Disk /dev/sda: 250.0 GB, 250000000000 bytes, 488281250 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000080
Device Boot Start End Blocks Id System
/dev/sda1 2048 488281249 244139601 8e Linux LVM
Disk /dev/sdc: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdc1 * 63 481949 240943+ 83 Linux
/dev/sdc2 481950 12482504 6000277+ 82 Linux swap / Solaris
/dev/sdc3 12482505 976773167 482145331+ 8e Linux LVM
Disk /dev/mapper/vg1-root: 64.4 GB, 64424509440 bytes, 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/vg1-home: 583.0 GB, 583008256000 bytes, 1138688000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
# pvdisplay
--- Physical volume ---
PV Name /dev/sdc3
VG Name vg1
PV Size 459.81 GiB / not usable 1.05 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 117711
Free PE 0
Allocated PE 117711
PV UUID zaLJiO-1LCH-TGi6-hwBr-OyNs-Sjlm-HggrMo
--- Physical volume ---
PV Name /dev/sda1
VG Name vg1
PV Size 232.83 GiB / not usable 1.58 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 59604
Free PE 22955
Allocated PE 36649
PV UUID P05c2d-1d2i-bf0M-u6BX-EEq0-fvZW-VkTLhY
# lvdisplay
--- Logical volume ---
LV Path /dev/vg1/root
LV Name root
VG Name vg1
LV UUID Z68H3p-VvbC-ZNau-7Ds7-GptS-Hpl0-VZNjo4
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 1
LV Size 60.00 GiB
Current LE 15360
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0
--- Logical volume ---
LV Path /dev/vg1/home
LV Name home
VG Name vg1
LV UUID uUfmS9-C4CK-Vw3V-cmwD-hEC1-VcwD-90yAyO
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 1
LV Size 542.97 GiB
Current LE 139000
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
Last edited by Chris Dennis (2013-04-03 19:04:58)Chris Dennis wrote:
Oh well, I took a punt on the word 'Warning' in the message, and rebooted anyway.
It worked!
I've just completed a series of experiments involving LVM and GRUB2. The short story is that such warnings are innocuous and arise from extending a volume group.
Now in some detail, here's what happens (all of which was performed in VirtualBox with the current Arch rolling release just to make it easy to add and remove disk devices):
a). pvcreate /dev/sde1 /dev/sdf1
* Use partitions of type 8e, spanning the whole drive, for BOTH devices comprising the physical
volume to prove that partitioning is irrelevant to the matter.
b). vgcreate vg_x /dev/sde1
* Start with just one device in the volume group.
c). lvcreate --extents 100%VG --name boot vg_x
d). mkfs.ext4 /dev/vg_x/boot && mount /dev/vg_x/boot /mnt/other
e). grub2-install --boot-directory=/mnt/other /dev/sde
Installation finished. No error reported.
All is well...but now let's extend the vg_x volume group with the pre-allocated device, /dev/sdf1:
f). vgextend vg_x /dev/sdf1
g). grub2-install --boot-directory=/mnt/other /dev/sde
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core
Installation finished. No error reported.
...and boom goes the dynamite. As Chris Dennis stated, GRUB2 installs fine and the system is bootable in spite of the warning. The grub-2.00 source where the warning arises is in ./grub-core/disk/diskfilter.c and has this comment:
/* TRANSLATORS: This message kicks in during the detection of
which modules needs to be included in core image. This happens
in the case of degraded RAID and means that autodetection may
fail to include some of modules. It's an installation time
message, not runtime message. */
I haven't tried to hack the GRUB code but, based upon my experimentation and the ease of replicating the problem, my guess is that somehow a volume group that extended in manner shown above is mishandled by GRUB. It's arguably a bug, IMHO, since a volume group, even when extended, is still a valid entity. -
[Solved] consolekit and polkit under systemd
I was wondering if I still had vestiges of the sysv init left on my system since I have supposedly gone completely over to systemd.
The consolekit wiki page strongly suggests that systemd is incompatible with it. If I do "systemctl list-unit-files --no-pager|grep -i console" I see
console-kit-daemon.service disabled
console-kit-log-system-restart.service static
console-kit-log-system-start.service static
console-kit-log-system-stop.service static
console-shell.service disabled
Yet when I do "systemctl --all --no-pager|grep -i console" for some reason I see
console-kit-daemon.service loaded active running Console Manager
console-...m-start.service loaded active exited Console System Startup Logg
It strikes me as strange for a loaded, active, running service to be disabled. Anyway should consolekit be "uninstalled" and completely eliminated?
Polkit causes somewhat similar questions although it is less obvious from the wiki that it is incompatible with systemd.
Journalctl does show systemd starting up polkit and consolekit, but it also shows several messages, "console-kit-daemon[553]: missing action", and for polkitd it shows both a "Registered Authentication Agent" and later a "Unregistered Authentication Agent" - for several different buses, apparently. Not sure if that is normal.
Just wondering how all this fits together, and if some of it should be gone now that systemd is here.
Last edited by PaulBx1 (2013-01-21 19:35:10)I wonder if there are any more things like that? I was a little surprised there were no warnings on the systemd conversion to get rid of consolekit, or that the compatibility package didn't take care of it. Maybe there were warnings and I just missed them.
I also wonder about the "ck-launch-session" at the end of my .xinitrc file. The consolekit wiki article says,
An easy method to be able to remove ConsoleKit is to automatically log in to a virtual console and start X from there. It is important that, as mentioned in the latter article, the X server is started on the same virtual console that you log in to, otherwise logind can not keep track of the user session. You can then simply remove ck-launch-session from your ~/.xinitrc.
I don't quite understand that. Just delete the line? Or does something else (having to do with systemd) go in there? And why the virtual console bit? Why not just go to single user and handle it there?
Here is my .xinitrc:
#!/bin/sh
# ~/.xinitrc
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
exec ck-launch-session startlxde
Last edited by PaulBx1 (2013-01-21 07:10:23) -
[Solved]Slock and Unclutter under Xmonad
Hello,
I am currently using Xmonad with unclutter. I recently installed slock but I noticed that it doesn't play nice with unclutter. When locking, the screen will automatically unlock after a few seconds. Removing unclutter resolves the problem. I very much like both software and would like to use them in conjunction.
Does anyone have an idea on how to fix this?
Thanks
Last edited by The Stranger (2014-07-28 11:39:51)I've found the reason why slock is failing(and thats probably the reason for sflock ans sxlock too as they're forks of slock):
slock immediately unlocks the screen if it is unable to grab the mouse pointer. unclutter with grab option already grabs it. Therefore slock can't grab it.
As a workaround it is possible to add an option to slock for disabling mouse grabbing. Don't know if this is good but I just tried it and it works:
Here is my repo on bitbucket
make install it and then invoke it with
<installpath-to-slock>slock -nomousegrab
NOTE: I didn't change copyright statement and version and such stuff so it's not quite correct at the moment....just a quick hack -
In the DAQmx 9.4 Readme the following is stated:
Samples Not Acquired on NI 660x or NI 6624 Devices When using pulse width, semi-period or two-edge separation buffered measurements with the NI 660x and NI 6624 on counters 0 and 1, some samples may not be acquired under certain circumstances.
Could anyone elaborate on this? I am particularly interested in knowing under what circumstances this problem arises for the 6602 PCI devices.
How should I understand 'NI 660x and NI 6624 on counters 0 and 1'. Is it only a problem on counter 0 and 1 for the 660x or does this only apply for the 6624 devices.
/molaAre there any NI Product Support Engineers out there who has an answer to this question and who are willing to share it with me?
-
[Solved] Installing and using GRUB on LVM
New installation, no more windows, using LVM.
pvdisplay :
--- Physical volume ---
PV Name /dev/sda1
VG Name DesktopLVM
PV Size 243.14 MiB / not usable 3.14 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 60
Free PE 0
Allocated PE 60
PV UUID 9LXTZW-zZNI-dQ3W-RMTD-C3Fl-5blw-TbPwOo
--- Physical volume ---
PV Name /dev/sda2
VG Name DesktopLVM
PV Size 19.07 GiB / not usable 4.15 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 4882
Free PE 0
Allocated PE 4882
PV UUID bgu0dD-seVt-nz7i-3Vdi-PZ4U-MKKa-pk3i6V
--- Physical volume ---
PV Name /dev/sda3
VG Name DesktopLVM
PV Size 7.63 GiB / not usable 4.86 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 1952
Free PE 0
Allocated PE 1952
PV UUID lybKyF-aqIM-3tTA-FEH3-LRPn-cjI5-qqhG75
--- Physical volume ---
PV Name /dev/sda4
VG Name DesktopLVM
PV Size 438.82 GiB / not usable 3.84 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 112337
Free PE 0
Allocated PE 112337
PV UUID l1h3Hh-BkzT-Fj0q-9mDH-1IGx-DtI0-v8AGgS
lvdisplay :
--- Logical volume ---
LV Path /dev/DesktopLVM/boot
LV Name boot
VG Name DesktopLVM
LV UUID Je7Lat-TOzj-vWei-5fLe-4cc8-ZAUF-J2IGAu
LV Write Access read/write
LV Creation host, time archiso, 2013-08-01 16:54:03 +0000
LV Status available
# open 1
LV Size 256.00 MiB
Current LE 64
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
--- Logical volume ---
LV Path /dev/DesktopLVM/root
LV Name root
VG Name DesktopLVM
LV UUID xRK2SN-4IG1-RjNV-RHAl-qeXL-R8F3-k4SDQt
LV Write Access read/write
LV Creation host, time archiso, 2013-08-01 16:54:12 +0000
LV Status available
# open 1
LV Size 20.00 GiB
Current LE 5120
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:2
--- Logical volume ---
LV Path /dev/DesktopLVM/var
LV Name var
VG Name DesktopLVM
LV UUID Ej5zmm-7Q2x-HubD-JCBp-rg3F-g1oo-4rGBEn
LV Write Access read/write
LV Creation host, time archiso, 2013-08-01 16:54:21 +0000
LV Status available
# open 1
LV Size 8.00 GiB
Current LE 2048
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:3
--- Logical volume ---
LV Path /dev/DesktopLVM/home
LV Name home
VG Name DesktopLVM
LV UUID jU5Fdz-Tgdl-wPeE-ePOB-NaZk-CsGN-Xc8rkn
LV Write Access read/write
LV Creation host, time archiso, 2013-08-01 16:54:37 +0000
LV Status available
# open 1
LV Size 437.50 GiB
Current LE 111999
Segments 4
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:4
The problem is when using grub-install :
sh-4.2# grub-install --recheck /dev/sda
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
/usr/bin/grub-bios-setup: warning: your core.img is unusually large. It won't fit in the embedding area.
/usr/bin/grub-bios-setup: error: embedding is not possible, but this is required for RAID and LVM install.
cat /boot/grub/grub.cfg :
# DO NOT EDIT THIS FILE
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod lvm
insmod ext2
set root='lvm/DesktopLVM-root'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvm/DesktopLVM-root' b881e4e6-ad72-495c-8ae1-610ec15d27c8
else
search --no-floppy --fs-uuid --set=root b881e4e6-ad72-495c-8ae1-610ec15d27c8
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_input console
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-b881e4e6-ad72-495c-8ae1-610ec15d27c8' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod lvm
insmod ext2
set root='lvm/DesktopLVM-boot'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvm/DesktopLVM-boot' edf3011c-e581-448e-baad-d1e03d5fb8f6
else
search --no-floppy --fs-uuid --set=root edf3011c-e581-448e-baad-d1e03d5fb8f6
fi
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=/dev/mapper/DesktopLVM-root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
menuentry 'Arch Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-b881e4e6-ad72-495c-8ae1-610ec15d27c8' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod lvm
insmod ext2
set root='lvm/DesktopLVM-boot'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvm/DesktopLVM-boot' edf3011c-e581-448e-baad-d1e03d5fb8f6
else
search --no-floppy --fs-uuid --set=root edf3011c-e581-448e-baad-d1e03d5fb8f6
fi
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=/dev/mapper/DesktopLVM-root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###
Partially related, fdisk -l :
Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x1bbed4e9
Device Boot Start End Blocks Id System
/dev/sda1 * 63 498014 248976 8e Linux LVM
/dev/sda2 498015 40499864 20000925 8e Linux LVM
/dev/sda3 40499865 56500604 8000370 8e Linux LVM
/dev/sda4 56500605 976773167 460136281+ 8e Linux LVM
Disk /dev/mapper/arch_root-image: 1494 MB, 1494220800 bytes, 2918400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/DesktopLVM-boot: 268 MB, 268435456 bytes, 524288 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/DesktopLVM-root: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/DesktopLVM-var: 8589 MB, 8589934592 bytes, 16777216 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/DesktopLVM-home: 469.8 GB, 469757853696 bytes, 917495808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
How do i install grub now ?
L.E. : do not include the boot partition into LVM.
Last edited by psycho (2013-08-01 18:58:18)Your first partition starts at block 63. Grub has gotten so bloated that it now writes to not only the MBR, but also to the space from the MBR (after sector 0) to the start of the first partition, which these days is sector 2048. This new start point is for alignment purposes.
You either need to recreate your first partition and let fdsik align it to sector 2048, or you need to create a grub bios boot partition (as though you were using GPT).
Honestly, although grub2 can handle this, I think putting /boot inside the LVM is a bad idea. It just makes you totally reliant on grub2 with no other bootloader choice. For example, if something in some poorly designed program decided to write some crap to the area between the MBR and the first partition (which applications have been known to do), and you had a USB flash drive with syslinux on it (which the Arch live media has), then you could not set it up to boot your disc.
I think you should use the pvremove command to take that first partition out temporarily, then create two new partitions. One for /boot and one to add back. But this is not going to be very straight forward since you already have four primary partitions. It might be better to convert your partitions to GPT (which is super easy using gdisk) because then you are limited to only 128 primary partitions instead of a measly four. If you do that though, then you will have to make three new partitions if you want to continue to use grub2. You will additionally need the grub bios partition mentioned above. The grub2 wiki page had more info on this. But then you should make the /boot partition and then the partition to add back.
At the very least, you are going to have to remove the first partition so that it can be resized, and then add it back. Hopefully, you have not already filled the LVM space, so that you can easily shift things around. -
when I try to make a new video, a window comes up that says,"The operation could not be completed," and then under it, it says,"No other information is available about the problem," what is happening and how do I fix it?
Hi
And without info - it's near to impossibly to help. Try my general troubleshooting note:
Troubleshooting note
When iMovie doesn't work as intended this can be due to a lot of reasons
iMovie Pref files got corrupted - trash it/they and iMovie makes new and error free one's
problem in iMovie Cache folder - trash Cache.mov and Cache.plist
Creating a new User-Account and log into this
This forces iMovie to create all pref. and cache files new and error free
Event or Project got corrupted - try to make a copy and repair
a Codec is used that doesn't work (even though iMovie and/or iDVD tries to / they fail in the end)
version miss match of QuickTime Player / iMovie / iDVD
preferences are wrong - Repair Preferences
other hard disk problem - Repair Hard Disk (Disk Util tool - but start Mac from ext HD or DVD)
External hard disks - MUST BE - Mac OS Extended (hfs) formatted to work with Video
( UNIX/DOS/FAT32/Mac OS Exchange - works for most other things - but not for Video )
USB-flash-memories - usually do not work
Net-work connected hard disks - usually do not work (most often not fast enough and WRONGLY FORMATTES as DOS etc)
iPhoto Library got problems - let iPhoto select another one or repair it. Re-build this first then try to re-start iMovie. When iMovie starts-up it first look trough this iPhoto library and if faulty it all Halt’s.
This You do by
First - close iPhoto
Secondly - on start up of iPhoto - Keep {cmd and alt-keys down}
Thirdly - now select all five options presented
THEN - WAIT a long long time (>20 hours are not strange)
free space on Start-Up (Mac OS) hard disk to low (<1Gb) - I never go under 25Gb free space for SD-Video (4-5 times more for HD)
external devices interferes - turn off Mac - disconnect all of them and - Start up again and re-try
GarageBand fix - start GB - play a few notes - Close it again and now try iMovie
Screen must be set to million-colors
Third-party plug-ins doesn't work OK
Run "Cache Out X", clear out all caches and restarts the Mac
Let Your Mac be turned on during one night. At about midnight there is a set of maintenance programs that runs and tidying up. This might help
Turn off Your Mac - and disconnect Mains - for about 20-30 minutes - at least this resets the FireWire port.
In QuickTime - DivX, 3ivx codec, Flip4Mac, Perian etc - might be problematic - temporarily move them out and re-try
(I deleted the file "3ivxVideoCodec.component" located in Mac HD/Library/Quicktime and this resolved my issue.)
buenrodri wrote
I solved the problem by removing the file: 3ivxVideoCodec.component. after that, up-dated iMovie runs ok.
Last resort: Trash all of iMovie and re-install it
Yours Bengt W -
After a months of stable work my new IPad suddenly denies to find cell network under any circumstances.Please advice if anyone familiar with that problem?
It sounds like there are a couple things going on here. First check if you have a successful install of SQL Server, then we'll figure out the connection issues.
Can you launch SQL Server Configuration Manager and check for SQL Server (MSSQLSERVER) if default instance or SQL Server (other name) if you've configured your instance as a named instance. Once you find this, make sure the service is started.
If not started, try to start it and see if it throws an error. If you get an error, post the error message your hitting. If the service starts, you can then launch SSMS and try to connect. If you have a default instance, you can use the machine
name in the connection dialog. Ex: "COWBOYS" where Cowboys is the machine name. However, if you named the SQL Server instance during install, you'll need to connect using the machine\instance format. Ex: COWBOYS\Romo (where Romo
is the instance name you set during install).
You can also look at the summary.txt file in the SQL Server setup error logs to see what happened on the most recent install. Past install history is archived in the log folder if you need to dig those up to help troubleshoot, but the most
recent one may help get to the bottom of it if there is an issue with setup detecting a prior instance that needs to be repaired.
Thanks,
Sam Lester (MSFT)
http://blogs.msdn.com/b/samlester
This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
"Mark as Answer" and
"Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread. -
[SOLVED] mpd and sonata issue
Hi again!
I've installed mpd and sonata but i don't see my library in sonata .
This is my /etc/mpd.conf file
# An example configuration file for MPD
# See the mpd.conf man page for a more detailed description of each parameter.
# Files and directories #######################################################
# This setting controls the top directory which MPD will search to discover the
# available audio files and add them to the daemon's online database. This
# setting defaults to the XDG directory, otherwise the music directory will be
# be disabled and audio files will only be accepted over ipc socket (using
# file:// protocol) or streaming files over an accepted protocol.
music_directory "/home/andreas/Downloads"
# This setting sets the MPD internal playlist directory. The purpose of this
# directory is storage for playlists created by MPD. The server will use
# playlist files not created by the server but only if they are in the MPD
# format. This setting defaults to playlist saving being disabled.
#playlist_directory "~/.mpd/playlists"
# This setting sets the location of the MPD database. This file is used to
# load the database at server start up and store the database while the
# server is not up. This setting defaults to disabled which will allow
# MPD to accept files over ipc socket (using file:// protocol) or streaming
# files over an accepted protocol.
db_file "/var/lib/mpd/mpd.db"
# These settings are the locations for the daemon log files for the daemon.
# These logs are great for troubleshooting, depending on your log_level
# settings.
# The special value "syslog" makes MPD use the local syslog daemon. This
# setting defaults to logging to syslog, otherwise logging is disabled.
log_file "/var/log/mpd/mpd.log"
# This setting sets the location of the file which stores the process ID
# for use of mpd --kill and some init scripts. This setting is disabled by
# default and the pid file will not be stored.
pid_file "/var/run/mpd/mpd.pid"
# This setting sets the location of the file which contains information about
# most variables to get MPD back into the same general shape it was in before
# it was brought down. This setting is disabled by default and the server
# state will be reset on server start up.
state_file "/var/lib/mpd/mpdstate"
# General music daemon options ################################################
# This setting specifies the user that MPD will run as. MPD should never run as
# root and you may use this setting to make MPD change its user ID after
# initialization. This setting is disabled by default and MPD is run as the
# current user.
user "mpd"
# This setting sets the address for the daemon to listen on. Careful attention
# should be paid if this is assigned to anything other then the default, any.
# This setting can deny access to control of the daemon.
# For network
#bind_to_address "any"
# And for Unix Socket
#bind_to_address "~/.mpd/socket"
# This setting is the TCP port that is desired for the daemon to get assigned
# to.
#port "6600"
# This setting controls the type of information which is logged. Available
# setting arguments are "default", "secure" or "verbose". The "verbose" setting
# argument is recommended for troubleshooting, though can quickly stretch
# available resources on limited hardware storage.
#log_level "default"
# If you have a problem with your MP3s ending abruptly it is recommended that
# you set this argument to "no" to attempt to fix the problem. If this solves
# the problem, it is highly recommended to fix the MP3 files with vbrfix
# (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
# point gapless MP3 playback can be enabled.
#gapless_mp3_playback "yes"
# This setting enables MPD to create playlists in a format usable by other
# music players.
#save_absolute_paths_in_playlists "no"
# This setting defines a list of tag types that will be extracted during the
# audio file discovery process. Optionally, 'comment' can be added to this
# list.
#metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
# Symbolic link behavior ######################################################
# If this setting is set to "yes", MPD will discover audio files by following
# symbolic links outside of the configured music_directory.
#follow_outside_symlinks "yes"
# If this setting is set to "yes", MPD will discover audio files by following
# symbolic links inside of the configured music_directory.
#follow_inside_symlinks "yes"
# Zeroconf / Avahi Service Discovery ##########################################
# If this setting is set to "yes", service information will be published with
# Zeroconf / Avahi.
#zeroconf_enabled "yes"
# The argument to this setting will be the Zeroconf / Avahi unique name for
# this MPD server on the network.
#zeroconf_name "Music Player"
# Permissions #################################################################
# If this setting is set, MPD will require password authorization. The password
# can setting can be specified multiple times for different password profiles.
#password "password@read,add,control,admin"
# This setting specifies the permissions a user has who has not yet logged in.
#default_permissions "read,add,control,admin"
# Input #######################################################################
input {
plugin "curl"
# proxy "proxy.isp.com:8080"
# proxy_user "user"
# proxy_password "password"
# Audio Output ################################################################
# MPD supports various audio output types, as well as playing through multiple
# audio outputs at the same time, through multiple audio_output settings
# blocks. Setting this block is optional, though the server will only attempt
# autodetection for one sound card.
# See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
# other audio outputs.
# An example of an ALSA output:
#audio_output {
# type "alsa"
# name "My ALSA Device"
## device "hw:0,0" # optional
## format "44100:16:2" # optional
## mixer_device "default" # optional
## mixer_control "PCM" # optional
## mixer_index "0" # optional
# An example of an OSS output:
#audio_output {
# type "oss"
# name "My OSS Device"
## device "/dev/dsp" # optional
## format "44100:16:2" # optional
## mixer_device "/dev/mixer" # optional
## mixer_control "PCM" # optional
# An example of a shout output (for streaming to Icecast):
#audio_output {
# type "shout"
# encoding "ogg" # optional
# name "My Shout Stream"
# host "localhost"
# port "8000"
# mount "/mpd.ogg"
# password "hackme"
# quality "5.0"
# bitrate "128"
# format "44100:16:1"
## protocol "icecast2" # optional
## user "source" # optional
## description "My Stream Description" # optional
## genre "jazz" # optional
## public "no" # optional
## timeout "2" # optional
# An example of a httpd output (built-in HTTP streaming server):
#audio_output {
# type "httpd"
# name "My HTTP Stream"
# encoder "vorbis" # optional, vorbis or lame
# port "8000"
## quality "5.0" # do not define if bitrate is defined
# bitrate "128" # do not define if quality is defined
# format "44100:16:1"
# An example of a pulseaudio output (streaming to a remote pulseaudio server)
#audio_output {
# type "pulse"
# name "My Pulse Output"
## server "remote_server" # optional
## sink "remote_server_sink" # optional
## Example "pipe" output:
#audio_output {
# type "pipe"
# name "my pipe"
# command "aplay -f cd 2>/dev/null"
## Or if you're want to use AudioCompress
# command "AudioCompress -m | aplay -f cd 2>/dev/null"
## Or to send raw PCM stream through PCM:
# command "nc example.org 8765"
# format "44100:16:2"
## An example of a null output (for no audio output):
#audio_output {
# type "null"
# name "My Null Output"
# This setting will change all decoded audio to be converted to the specified
# format before being passed to the audio outputs. By default, this setting is
# disabled.
#audio_output_format "44100:16:2"
# If MPD has been compiled with libsamplerate support, this setting specifies
# the sample rate converter to use. Possible values can be found in the
# mpd.conf man page or the libsamplerate documentation. By default, this is
# setting is disabled.
#samplerate_converter "Fastest Sinc Interpolator"
# Volume control mixer ########################################################
# These are the global volume control settings. By default, this setting will
# be detected to the available audio output device, with preference going to
# hardware mixing. Hardware and software mixers for individual audio_output
# sections cannot yet be mixed.
# An example for controlling an ALSA, OSS or Pulseaudio mixer; If this
# setting is used other sound applications will be affected by the volume
# being controlled by MPD.
#mixer_type "hardware"
# An example for controlling all mixers through software. This will control
# all controls, even if the mixer is not supported by the device and will not
# affect any other sound producing applications.
#mixer_type "software"
# This example will not allow MPD to touch the mixer at all and will disable
# all volume controls.
#mixer_type "disabled"
# Normalization automatic volume adjustments ##################################
# This setting specifies the type of ReplayGain to use. This setting can have
# the argument "album" or "track". See <http://www.replaygain.org> for more
# details. This setting is disabled by default.
#replaygain "album"
# This setting sets the pre-amp used for files that have ReplayGain tags. By
# default this setting is disabled.
#replaygain_preamp "0"
# This setting enables on-the-fly normalization volume adjustment. This will
# result in the volume of all playing audio to be adjusted so the output has
# equal "loudness". This setting is disabled by default.
#volume_normalization "no"
# MPD Internal Buffering ######################################################
# This setting adjusts the size of internal decoded audio buffering. Changing
# this may have undesired effects. Don't change this if you don't know what you
# are doing.
#audio_buffer_size "2048"
# This setting controls the percentage of the buffer which is filled before
# beginning to play. Increasing this reduces the chance of audio file skipping,
# at the cost of increased time prior to audio playback.
#buffer_before_play "10%"
# Resource Limitations ########################################################
# These settings are various limitations to prevent MPD from using too many
# resources. Generally, these settings should be minimized to prevent security
# risks, depending on the operating resources.
#connection_timeout "60"
#max_connections "10"
#max_playlist_length "16384"
#max_command_list_size "2048"
#max_output_buffer_size "8192"
# Character Encoding ##########################################################
# If file or directory names do not display correctly for your locale then you
# may need to modify this setting. After modification of this setting mpd
# --create-db must be run to change the database.
#filesystem_charset "UTF-8"
# This setting controls the encoding that ID3v1 tags should be converted from.
#id3v1_encoding "ISO-8859-1"
I've add the mpd daemon in rc.conf and i've chosen my directory /home/andreas/Downloads in sonata .Also i put mpd:ALL to etc/hosts.allow
Sonata connects fine to the server but i can't see my libary .
What might be the issue ?
Thanks again
Last edited by shak (2010-06-10 11:27:13)If you continue to have issues with permissions, the solution i use is to simply run MPD as my normal user, storing all the necessary directories and files under ~/.mpd and just pointing it at the config file I stuck there:
$ mpd ~/.mpd/config
No more permissions issues! There's an explanation of this in the wiki. -
I purchased my Iphone 4 outright, without a contract from the Japanese Carrier Softbank. That means I paid the entire price upfront. They refuse to unlock the Iphone under any circumstances, despite the fact I am no longer in Japan.
Can Apple help me? I've checked out some unlocking services online, but the price seems a bit too high.
Thanks,
J.No, Apple cannot help. Only the network to which the phone is locked can unlock it (if they choose to).
Nobody else can legitimately unlock it. Other services that claim to offer unlocks are hacks, void the warranty and prevent you from updating the phone OS in the future. -
[SOLVED] chroot to LVM filesystem with Arch Installer CD
Just a while ago, I was trying to disable KMS on my computer, as when I booted, for some reason the computer wouldn't connect to the monitor and display a picture until udev started loading modules.
I started by adding the line radeon.modeset=0 to menu.lst's kernel option line, but this only made the problem worse as the computer would then never connect to the monitor.
I couldn't blindly fix this as it would involve guessing when the login prompt was up, typing in my password, opening the editor, and finding the line in menu.lst to edit it.
So I booted up the Arch Install CD, and thought I would try the Change Root method detailed in the wiki, but realised that I didn't know how to mount the LVM filesystem, because root was contained there.
The volume group I had was absent from /dev/mapper and /dev, and the only reference I seemed to be able to find was /dev/sda2, which was listed as 'Linux LVM' under fdisk -l. I tried loading the dm-mod module with modprobe then mounting sda2, but it didn't work.
Fortunately, I had my /boot partition on a separate partition (i.e. sda1) as recommended by the wiki, so I could mount it and fix the problem anyway.
However, I need to fix this problem with KMS somehow in the future, which may require editing files outside of /boot and it may need me to know how to mount the LVM filesystem and chroot to it, so how do I do that with the Arch Installer?
Last edited by louis058 (2012-04-14 10:24:13)jasonwryan wrote:
vgchange --available y $volgroupname
man vgchange wrote: -a, --available [e|l]{y|n}
Controls the availability of the logical volumes in the volume group for input/output. In other words,
makes the logical volumes known/unknown to the kernel.
Wow, thank you. I did look at 'man lvm', but I guess I wasn't looking hard enough. I'll go test it out right away. -
[Solved] systemd and fstab with /var bind
I'm having some troubles migrating to systemd. I have the following in my fstab:
# /etc/fstab: static file system information
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid,size=8G 0 0
UUID=2bedbb1a-015f-4c46-ab48-f3ffc55b154b /boot ext2 defaults 0 1
#UUID=2c5f02a3-c8a1-45ed-92f4-dc09e56c09d7 /var ext4 discard,noatime 0 1
UUID=2c5f02a3-c8a1-45ed-92f4-dc09e56c09d7 /mnt/mythtv ext4 discard,noatime 0 1
UUID=910898cb-2d67-4689-ba51-358d94b2531d swap swap defaults 0 0
UUID=cac6ccea-456a-4c09-a1db-57cec02b238d / ext4 discard,noatime 0 1
/dev/mapper/VolGroupArray-lvmedia /mnt/media ext4 auto 0 0
mnt/media/var /var bind defaults,bind 0 0
(/dev/sda is an ssd disk so I decided to move /var to my software raid and lvm disks)
However this doesn't seem to work anymore with systemd as it doesn't get mounted automatically anymore. I've setup a debug console, there I can mount it by simply typing mount /var and then I can manually start the services that failed.
didn't actually solve the bind stuff, but decided to make a new partition on the lvm disk and mount /var there.
Last edited by blahbla77 (2012-11-18 13:58:13)Are you really missing a leading / from the last line?
-
Am I Entitled To A New iPod Under These Circumstances.
First of all, Hi guys I'm new to these forums I hope that I help you all as I hope you can answer some of my queries
I'm a fanatic Apple Fan, I have bought over 6 different iPod, just bought the new iMac 20inch 2.4ghz and have purchased loads of other extra software and hardware.
__Right here is my question...__
I purchased the new iPod nano 3rd gen PRODUCT(RED) 8GB from the apple website about 40 days ago, I also got my name on the back (If this changes anything). The iPod was in my bag and unfortunately later when getting it out, I discovered that there was a crack in the screen, the was a black mark across the screen caused by the crack. Although the product still turns on and does play music It is very difficult to navigate around the nano and I cannot see what is playing.
I was not please with the product overall and I would prefer to swap the product back in and pay the extra $100 and get the iPod touch.Under the circumstances, with apples free 90 day protection, am I entitled to do so? If not what "damages" would the iPod have to of sustained to be entitled to the swap?
ALSO: What number must I phone to speak to someone who I could explain the situation and I could arrange the exchange (if possible) or discuss other options. (im located in the UK)
Thanks Guys for all your helpThe warranty doesn't cover accidental damage, it covers manufacturing defects. I think it's unlikely that Apple will accept that it was defective since it wasn't cracked when you received it. I suspect they'll put this down to accidental damage that occurred while the iPod was in your bag. However you can contact them and see what they say, you'll get contact information for the UK and Ireland on this page: Contacting Apple
-
Can Apple unlock a phone under certain circumstances?
My friend recently committed suicide and the reasons were unknown, we are hoping to get some answers from her iPhone but it is locked. Can apple help under these circumstances?
Thanks for your advice. The problem is the family attempted to unlock the phone too many times and now the phone is disabled. Can Apple still try to recover
Maybe you are looking for
-
The problem is that switch on....The phone remains locked lights, we could not click any button, I can just remove the battery,can not be 'shut down normally ... I upgraded the firmware but nothing has changed
-
Is there anything like Ad Block for the iPhone?
I'm really getting tired of seeing all those ads that I never see when I'm on my MBP! Thanks in advance!
-
"Messages" has incorrect e-mail listed.
I purchased my iPod as an open box item at BestBuy and the previous owners "e-mail" is included in the "Messages" app. How can I correct this?
-
I have a Mac Book Pro with 10.7.5 and I am trying to upgrade to the free Mavericks but when I click on the download it doesn't do anything. What am I dong wrong?
-
Problems when starting applications on my new iBook. Please help!
I have just bought myself a nice shiny new iBook G4 running 10.4.4. My problem is this - When I start Firefox or Entourage it comes up all the time saying "would you like to make this your default browser/mail application"?? Has anyone got an idea as