search for: hostvg

Displaying 20 results from an estimated 48 matches for "hostvg".

Did you mean: hostvm
2009 Sep 30
1
[PATCH node] split root filesystems out of HostVG and onto their own partitions
...(-) diff --git a/scripts/ovirt-config-boot b/scripts/ovirt-config-boot index 2961f76..dd53988 100755 --- a/scripts/ovirt-config-boot +++ b/scripts/ovirt-config-boot @@ -56,11 +56,11 @@ ovirt_boot_setup() { mkdir -p /liveos # prepare Root partition update candidate= - if [ -e /dev/HostVG/RootBackup ]; then + if [ -e /dev/disk/by-label/RootBackup ]; then candidate=RootBackup - elif [ -e /dev/HostVG/RootUpdate ]; then + elif [ -e /dev/disk/by-label/RootUpdate ]; then candidate=RootUpdate - elif [ -e /dev/HostVG/RootNew ]; then + elif [ -e /dev/disk/by...
2011 Sep 09
0
[PATCH node] only wipe HostVG if storage_init is not passed in dracut
...om> --- dracut/ovirt-cleanup.sh | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/dracut/ovirt-cleanup.sh b/dracut/ovirt-cleanup.sh index c96d6fe..e9674d8 100755 --- a/dracut/ovirt-cleanup.sh +++ b/dracut/ovirt-cleanup.sh @@ -48,11 +48,16 @@ fi # Check for HostVG lvm pvscan >/dev/null 2>&1 -for hostvg in $(lvm pvs --noheadings -o vg_name,pv_name 2>/dev/null | awk '/^ HostVG/{print $2}'); do - storage_init="$hostvg,$storage_init" - info "Found HostVG on $hostvg" -done - +if [ -z "$storage_init" ]; t...
2009 Sep 30
0
[PATCH node] RESEND: split root file systems out of HostVG onto separate partitions
...(-) diff --git a/scripts/ovirt-config-boot b/scripts/ovirt-config-boot index ed2bb9f..01c1821 100755 --- a/scripts/ovirt-config-boot +++ b/scripts/ovirt-config-boot @@ -56,11 +56,11 @@ ovirt_boot_setup() { mkdir -p /liveos # prepare Root partition update candidate= - if [ -e /dev/HostVG/RootBackup ]; then + if [ -e /dev/disk/by-label/RootBackup ]; then candidate=RootBackup - elif [ -e /dev/HostVG/RootUpdate ]; then + elif [ -e /dev/disk/by-label/RootUpdate ]; then candidate=RootUpdate - elif [ -e /dev/HostVG/RootNew ]; then + elif [ -e /dev/disk/by...
2011 Aug 25
0
[PATCH node] always remove HostVG in dracut when reinstall/uninstall/firstboot passed
...ot;$(getargs ovirt_init)" if [ $? -eq 1 ]; then info "storage_init or ovirt_init arguments not found" - return 0 + else + info "Found storage_init: $storage_init" fi fi -info "Found storage_init: $storage_init" + +# Check for HostVG +lvm pvscan >/dev/null 2>&1 + +for hostvg in $(lvm pvs --noheadings -o vg_name,pv_name 2>/dev/null | awk '/^ HostVG/{print $2}'); do + storage_init="$hostvg,$storage_init" + info "Found HostVG on $hostvg" +done + # storage_init is passed in a specif...
2009 Nov 04
1
[PATCH node] add ability to select separate disks for Root and HostVG in o-c-storage
This adds the ability to select 2 different disks for root and HostVG. ovirt_init kernel arg still works as intended but does not support multiple arguments, this will be added in next --- scripts/ovirt-config-storage | 150 ++++++++++++++++++++++++++---------------- 1 files changed, 94 insertions(+), 56 deletions(-) diff --git a/scripts/ovirt-config-storage b/scr...
2010 Feb 24
5
New Storage related patches
This set of patches introduces support for multipath devices for storage. Comments and suggestions are appreciated. Mike
2010 Jul 21
0
[PATCH] RFC: Advanced Storage Configuration
...ing the original style of specifying LVs. It accomplishes the following: * Add an optional AppVG * Offer new optional LVs - Data2,Swap2 - as part of the new AppVG * Allows the specification of multiple disks, per VG The new syntax for ovirt_init, which includes the original one, is: virt_init=HOSTVGDISK1[,HOSTVGDISK2...][;APPVGDISK1[,APPVGDISK2...]] where DISK=[usb|scsi[:serial#]|/dev/...] The new syntax for ovirt_vol, which includes the original one, is: ovirt_vol=size[,{Swap|Data|Config|Logging|Data2|Swap2}][:size...] or simply ovirt_vol=BOOT_MB:SWAP_MB:ROOT_MB:CONFIG_MB:LOG...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...ode does not try to contact the oVirt Server +def is_standalone(): + if is_managed: + return False + else: + return True + +# return 0 if local storage is configured +# return 1 if local storage is not configured +def is_local_storage_configured(): + ret = os.system("lvs HostVG/Config >/dev/null >&1") + if ret > 0: + return False + return True + +# perform automatic local disk installation +# when at least following boot parameters are present: +# for networking - OVIRT_BOOTIF, management NIC +# if other ip bootparams are not specified...
2009 May 20
2
[PATCH node] Adds support for a core dump partition to the node.
...$ROOT_SIZE * 2 MB Configuration partition size: $CONFIG_SIZE MB Logging partition size: $LOGGING_SIZE MB + Core dump partition size: $COREDUMP_SIZE MB Data partition size: $data_size_display EOF @@ -381,6 +385,14 @@ perform_partitioning() tune2fs -c 0 -i 0 /dev/HostVG/Logging echo "/dev/HostVG/Logging /var/log ext3 defaults 0 0" >> /etc/fstab fi + if [ "$COREDUMP_SIZE" -gt 0 ]; then + log "Creating core dump partition" + lvcreate --name CoreDump --size ${COREDUMP_SIZE}M /dev/HostVG + mke2fs -j /dev/HostVG/Core...
2010 Oct 27
0
[PATCH node] add uninstall module
...755 scripts/uninstall.py diff --git a/scripts/uninstall.py b/scripts/uninstall.py new file mode 100755 index 0000000..9e0baff --- /dev/null +++ b/scripts/uninstall.py @@ -0,0 +1,75 @@ +#!/usr/bin/python +# +# uninstall.py - destroys an installed copy of the oVirt node + +# SYNOPSIS +# Destroys the HostVG volume group and logical volumes. +# +import ovirtfunctions +import subprocess +from subprocess import STDOUT, PIPE + +def uninstall(): + if os.path.isdir("/dev/HostVG"): + log("Uninstalling node") + log("Detaching logging") + # multipathd holds...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...y" ]; then get_drive_size "$BOOTDRIVE" BOOTDRIVESPACE drive_list="BOOT" - BOOT_NEED_SIZE=$BOOT_SIZE + BOOT_NEED_SIZE="$BOOT_SIZE" else get_drive_size "$ROOTDRIVE" ROOTDRIVESPACE get_drive_size "$HOSTVGDRIVE" HOSTVGDRIVESPACE @@ -172,7 +172,7 @@ check_partition_sizes() HOSTVG_NEED_SIZE=$(echo "scale=0;" \ "$SWAP_SIZE + $CONFIG_SIZE + $LOGGING_SIZE + $min_data_size" | bc -l) - if [ $ROOTDRIVE == $HOSTVGDRIVE ]; then + if [ &...
2010 Mar 24
2
[PATCH node][REPOST 1/2] Fix uninstall to detect and cleanup correct partitions
Previous implementation had staticly defined partitions to remove. This would break in the case of split Root and HostVG devices. Signed-off-by: Mike Burns <mburns at redhat.com> --- scripts/ovirt-config-boot | 11 +-------- scripts/ovirt-config-uninstall | 48 ++++++++++++++++++++++++--------------- scripts/ovirt-functions | 33 +++++++++++++++++++++++++++ 3 files changed, 63 insertions(+),...
2010 Apr 05
1
RESEND: [PATCH node 1/3] enables ability for a common shared root
...-a "$doreboot" = "yes" ]; then disable_firstboot diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage index 8d59a6b..c91b0ea 100755 --- a/scripts/ovirt-config-storage +++ b/scripts/ovirt-config-storage @@ -172,7 +172,7 @@ check_partition_sizes() HOSTVG_NEED_SIZE=$(echo "scale=0;" \ "$SWAP_SIZE + $CONFIG_SIZE + $LOGGING_SIZE + $min_data_size" | bc -l) - if [ $ROOTDRIVE == $HOSTVGDRIVE ]; then + if [ "$ROOTDRIVE" == "$HOSTVGDRIVE" ]; then drive_list=&quot...
2010 Jul 21
0
[PATCH] RFC: Encrypted swap support
...3 +78,4 @@ device-mapper-multipath kpartx dracut-network patch +cryptsetup-luks diff --git a/recipe/common-post.ks b/recipe/common-post.ks index c79e186..4fae515 100644 --- a/recipe/common-post.ks +++ b/recipe/common-post.ks @@ -221,3 +221,15 @@ mkdir -p /data2 mkdir -p /liveos echo "/dev/HostVG/Config /config ext3 defaults,noauto,noatime 0 0" >> /etc/fstab +# load modules required by crypto swap +cat > /etc/sysconfig/modules/swap-crypt.modules <<EOF +#!/bin/sh + +modprobe aes >/dev/null 2>&1 +modprobe dm_mod >/dev/null 2>&1 +modprobe dm_crypt >...
2009 Dec 10
0
[PATCH node] Enables stateless iscsi remote boot
...ovirt-config-storage b/scripts/ovirt-config-storage index f9a5b41..2ffcaa4 100755 --- a/scripts/ovirt-config-storage +++ b/scripts/ovirt-config-storage @@ -85,17 +85,23 @@ check_partition_sizes() fi printf "\n" - get_drive_size $ROOTDRIVE ROOTDRIVESPACE - get_drive_size $HOSTVGDRIVE HOSTVGDRIVESPACE - ROOT_NEED_SIZE=$(echo "scale=0; $ROOT_SIZE * 2"| bc -l) - HOSTVG_NEED_SIZE=$(echo "scale=0;" \ - "$SWAP_SIZE + $CONFIG_SIZE + $LOGGING_SIZE + $min_data_size" | bc -l) - - if [ $ROOTDRIVE == $HOSTVGDRIVE ]; then -...
2013 Nov 19
2
virsh and multi source-dev
Hi, I'm using LVM based storage pools and I'm wondering if there is a way to specify several source-dev on the command line for creating a volume group spread over several devices : one device /dev/sdc1 is ok: * virsh pool-define-as --name lvmpool --type logical --source-dev /dev/sdc1 --source-name vg --target /dev/vg I would like something like (but sadly doesn't work): ? virsh
2010 Mar 23
0
[PATCH node] Fix uninstall to detect and cleanup correct partitions
Previous implementation had staticly defined partitions to remove. This would break in the case of split Root and HostVG devices. Signed-off-by: Mike Burns <mburns at redhat.com> --- scripts/ovirt-config-boot | 11 +-------- scripts/ovirt-config-uninstall | 48 ++++++++++++++++++++++++--------------- scripts/ovirt-functions | 33 +++++++++++++++++++++++++++ 3 files changed, 63 insertions(+),...
2010 May 13
1
Non-functional replacement...
This patch just includes the repo name in the subject.
2010 Mar 17
1
[PATCH][node REPOST] Improve performance of multipath translations
...quot; == "y" ]; then - get_drive_size $BOOTDRIVE BOOTDRIVESPACE + get_drive_size "$BOOTDRIVE" BOOTDRIVESPACE drive_list="BOOT" BOOT_NEED_SIZE=$BOOT_SIZE else - get_drive_size $ROOTDRIVE ROOTDRIVESPACE - get_drive_size $HOSTVGDRIVE HOSTVGDRIVESPACE + get_drive_size "$ROOTDRIVE" ROOTDRIVESPACE + get_drive_size "$HOSTVGDRIVE" HOSTVGDRIVESPACE ROOT_NEED_SIZE=$(echo "scale=0; $ROOT_SIZE * 2"| bc -l) HOSTVG_NEED_SIZE=$(echo "scale=0;" \...
2010 May 13
0
[PATCH] Replace the HAL calls with udev/systool calls.
...di"))\n" + local uuid + + get_uuid $device uuid + printf "\t$device ${uuid}\n" done printf "We cannot proceed until either device is removed from the system\n" printf "or until the HostVG volume group is removed.\n" @@ -260,40 +232,19 @@ manual_input() # Sample output: /dev/sda get_dev_name() { - local udi_list=$(hal-find-by-capability --capability storage) local byid_list=$(find /dev/disk/by-id -mindepth 1 -not -name '*-part*' 2>/dev/null) - if test -z...