Displaying 11 results from an estimated 11 matches for "unmount_logging".
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 Oct 27
0
[PATCH node] add uninstall module
...quot;):
+ log("Uninstalling node")
+ log("Detaching logging")
+ # multipathd holds all mounts under /var in a private namespace
+ os.system("service multipathd stop")
+ os.system("rm -f /var/lib/multipath/bindings")
+ unmount_logging()
+ unmount_config("/etc/default/ovirt")
+ #get partition info
+ root2=""
+ rc = os.system("findfs LABEL=RootBackup 2>&1 >/dev/null")
+ if rc == 0:
+ root2 = "RootBackup"
+ rc = os.system("fi...
2010 Apr 05
1
RESEND: [PATCH node 1/3] enables ability for a common shared root
...ROOT_SIZE * 2 - $CONFIG_SIZE - $LOGGING_SIZE ))
test $remaining_mb -lt 0 && is_negative=1
@@ -557,7 +575,7 @@ check_existing_hostvg()
# - remove LVM volumes and groups
wipe_lvm_on_disk()
{
- local dev=${1-$HOSTVGDRIVE}
+ local dev=${1-"$HOSTVGDRIVE"}
unmount_logging
local part_delim="p"
if [[ "$dev" =~ "/dev/sd" ]]; then
@@ -604,8 +622,8 @@ perform_partitioning()
unmount_config /etc/default/ovirt
log "Removing old LVM partitions"
- wipe_lvm_on_disk $HOSTVGDRIVE
- wipe_lvm_on_disk $ROOTDRIVE
+...
2010 Mar 23
0
[PATCH node] Fix uninstall to detect and cleanup correct partitions
...b/scripts/ovirt-config-uninstall
index 3b7b48d..b6675e7 100755
--- a/scripts/ovirt-config-uninstall
+++ b/scripts/ovirt-config-uninstall
@@ -37,27 +37,37 @@ if ask_yes_or_no "Do you wish to continue and uninstall this node ([Y]es/[N]o)?"
rm -f /var/lib/multipath/bindings
unmount_logging
unmount_config /etc/default/ovirt
+ #get partition info
+ root2=""
+ if findfs LABEL=RootBackup 2>&1 >/dev/null; then
+ root2=RootBackup
+ elif findfs LABEL=RootUpdate 2>&1 >/dev/null; then
+ root2=RootUpdate
+...
2010 Mar 23
1
[PATCH node][RFC] Fix uninstall to detect and cleanup correct partitions
...b/scripts/ovirt-config-uninstall
index 3b7b48d..b319abd 100755
--- a/scripts/ovirt-config-uninstall
+++ b/scripts/ovirt-config-uninstall
@@ -37,27 +37,38 @@ if ask_yes_or_no "Do you wish to continue and uninstall this node ([Y]es/[N]o)?"
rm -f /var/lib/multipath/bindings
unmount_logging
unmount_config /etc/default/ovirt
+ #get partition info
+ local root2
+ if findfs LABEL=RootBackup 2>&1 >/dev/null; then
+ root2=RootBackup
+ elif findfs LABEL=RootUpdate 2>&1 >/dev/null; then
+ root2=RootUpdate
+...
2010 Mar 24
2
[PATCH node][REPOST 1/2] Fix uninstall to detect and cleanup correct partitions
...b/scripts/ovirt-config-uninstall
index 3b7b48d..b6675e7 100755
--- a/scripts/ovirt-config-uninstall
+++ b/scripts/ovirt-config-uninstall
@@ -37,27 +37,37 @@ if ask_yes_or_no "Do you wish to continue and uninstall this node ([Y]es/[N]o)?"
rm -f /var/lib/multipath/bindings
unmount_logging
unmount_config /etc/default/ovirt
+ #get partition info
+ root2=""
+ if findfs LABEL=RootBackup 2>&1 >/dev/null; then
+ root2=RootBackup
+ elif findfs LABEL=RootUpdate 2>&1 >/dev/null; then
+ root2=RootUpdate
+...
2009 Oct 22
0
[PATCH node] merge Root and /boot partitions
...size}
diff --git a/scripts/ovirt-config-uninstall b/scripts/ovirt-config-uninstall
index 22633a0..820eead 100755
--- a/scripts/ovirt-config-uninstall
+++ b/scripts/ovirt-config-uninstall
@@ -34,16 +34,13 @@ if ask_yes_or_no "Do you wish to continue and uninstall this node ([Y]es/[N]o)?"
unmount_logging
log "Removing volume group"
wipe_volume_group "HostVG"
- partition=$(findfs LABEL=BOOT)
+ partition=$(findfs LABEL=Root)
if [ -n "$partition" ]; then
- log "Unmounting boot partition"
- umount $partition
log "Removing partitions"...
2009 Nov 04
1
[PATCH node] add ability to select separate disks for Root and HostVG in o-c-storage
...ot Drive: $(get_drive_size $ROOTDRIVE)
+ HostVG Drive: $(get_drive_size $HOSTVGDRIVE)
Swap partition size: $SWAP_SIZE MB
Installation partition size: $ROOT_SIZE * 2 MB
Configuration partition size: $CONFIG_SIZE MB
@@ -299,21 +324,21 @@ EOF
wipe_lvm_on_disk()
{
unmount_logging
- for vg in $(pvs -o vg_name --noheadings $DRIVE* 2>/dev/null|sort -u); do
+ for vg in $(pvs -o vg_name --noheadings $HOSTVGDRIVE* 2>/dev/null|sort -u); do
wipe_volume_group $vg
done
}
perform_partitioning()
{
- log "Partitioning drive: $DRIVE"
- if [...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...le
+ return False
+
+def mount_boot():
+ if os.path.ismount("/boot"):
+ return
+ else:
+ os.system("mkdir -p /boot")
+ os.system("mount LABEL=Boot /boot")
+
+# stop any service which keeps /var/log busy
+# keep the list of services
+def unmount_logging_services():
+ # mapping command->service is lame, but works for most initscripts
+ logging_services=""
+ prgs_cmd = "cd /etc/init.d|sudo lsof -Fc +D /var/log|grep ^c|sort -u"
+ prgs = subprocess.Popen(prgs_cmd, shell=True, stdout=PIPE, stderr=STDOUT)
+ prgs_out...
2010 Jul 21
0
[PATCH] RFC: Advanced Storage Configuration
...;
fi
rc=1
if [ -n "$devices" ]; then
@@ -531,15 +575,29 @@ check_existing_hostvg()
# - remove LVM volumes and groups
wipe_lvm_on_disk()
{
- local dev=${1-"$HOSTVGDRIVE"}
+ local devs=${1-"$HOSTVGDRIVE"}
+ local query1=
+ local query2=
unmount_logging
- local part_delim="p"
- if [[ "$dev" =~ "/dev/sd" ]]; then
- part_delim=""
- fi
- for vg in $(pvs -o vg_uuid --noheadings "$dev" "$dev${dev_delim}[0-9]"* 2>/dev/null|sort -u); do
+ for d in $devs; do
+ loca...
2009 Sep 26
10
Adding handling for Multipath storage devices
The following patches introduce support for multipath and cciss devices to the ovirt-node and node-image. Comments are appreciated.
These patches assume that the 3 patches (2 node, 1 node-image) from Joey are all incorporated.
Mike