Posts

Showing posts with the label lvm

extend logical volumes

The LVs I set up for my Arch install are getting full - / is 15G and /home is 150G. Both are pushing 90%, so time to extend. [edit] Well, that was stupidly easy. system-config-lvm in the AUR. download it and install it. tar -xvf [file] cd [file] makepkg -sri run it and select/edit volumes in the logical view. It let me extend /home and / in the live system. wow.

diskfilter writes are not supported

http://askubuntu.com/questions/468466/why-this-occurs-error-diskfilter-writes-are-not-supported " It's a BUG! This is a bug that occurs in the most recent version of Ubuntu Server (Ubuntu Server 14.04 LTS), when you create the boot partition (or the root partition, when the boot partition doesn't exists) inside a LVM or a RAID partition. You can get more info about this bug in Ubuntu Launchpad: Bug #1274320 "Error: diskfilter writes are not supported" . Why does this bug occur? When the system is booting, GRUB reads ( load_env ) data in /boot/grub/grubenv . This file is called GRUB Environment Block . From the GRUB Manual: It is often useful to be able to remember a small amount of information from one boot to the next. [...] At boot time, the load_env command (see load_env) loads environment variables from it, and the save_env (see save_env) command saves environment variables to it. ...

LVM - cannot create new logical volume

This is on a new laptop that I shrank the windows partition on and used a live CD to create a PV and volume group on. It wouldn't let me create a logical volume, giving me various messages like, the named volume wasn't found, volume group needed cleared, whatever. Found a page suggesting udev needed reloaded, but I don't want to have to do that 'cause I'm using the gui system-config-lvm and I don't want to have to update the live disc's repositories and re-install that again... sudo udevadm control --reload-rules Sorted , straight off.

Crunchbang Changes

Added sftp://root@192.168.1.107/media shares  to ~/.gtk-bookmarks  to create a shortcut to pi media centre in the thunar sidebar (shortcut view only). Upon subsequent reboot that has disappeared, which I need to investigate. Added  KERNEL=="dm-*",ENV{UDISKS_PRESENTATION_HIDE}="1" to  /etc/udev/rules.d/99-dmapper-hide.rules to remove lvm partitions from the thunar sidebar. I was concerned that I'd have to comment this out and reboot if I wanted access to, say, my Arch install's home folder, but no fear: sudo lvdisplay /dev/linuxVG lists the lvm partitions (where lunuxVG is my volume group) sudo mount /dev/linuxVG/OS3-home /mnt/arch_home mounts the volume at a previously created directory. I also want to get rid of the unused Network shortcut, but the only way I've found so far involves recompiling thunar, which I can't be arsed with. Preferable would be to use samba to connect to an actual windows network with, if that's the way to...

LVM snapshots

I'd used LVM to set up logical volumes as per this guide on my last crunchbang install. I created root, home and swap volumes for my main distro and then later (as per Funishment post) set up similar volumes to dual-boot Arch. The snapshot bit looked beyond me at the time so I never got round to that. Now I'm confident enough to get GRML installed to USB and use that, with LVM in the command line (as opposed to the system-config-lvm gui) to follow the instructions here . So, there's not much more to say, beyond following the instructions on the thread. Initially I thought about using LVM to shrink the crunchbang root volume, which I've crazily allocated nearly 20GB after running out of space for the OS last time and having to grow it with LVM. Shat it, though. the thought of messing up the root partition while trying to find a way to back up the root partition was too scary. So I went ahead and allocated 4G to the snap volume instead of the 1G used in the example...