Displaying 7 results from an estimated 7 matches for "wipe_partitions".
2010 Mar 23
0
[PATCH node] Fix uninstall to detect and cleanup correct partitions
...partpv="$drive}p2"
- else
- partpv="${drive}2"
- fi
- parted -s $drive "rm 1"
- pvremove ${partpv}
- parted -s $drive "rm 2"
- parted -s $drive "rm 3"
- wipe_partitions $drive
- fi
+ log "Removing partitions"
+ parted -s $root_dev "rm $root_part"
+ pvremove ${vg_dev}
+ parted -s $root2_dev "rm $root2_part"
+ parted -s $vg_dev "rm $vg_part"
+ wipe_partitions $pv_dev
+ wipe_...
2010 Mar 23
1
[PATCH node][RFC] Fix uninstall to detect and cleanup correct partitions
...partpv="$drive}p2"
- else
- partpv="${drive}2"
- fi
- parted -s $drive "rm 1"
- pvremove ${partpv}
- parted -s $drive "rm 2"
- parted -s $drive "rm 3"
- wipe_partitions $drive
- fi
+ log "Removing partitions"
+ parted -s $root_dev "rm $root_part"
+ pvremove ${vg_dev}
+ parted -s $root2_dev "rm $root2_part"
+ parted -s $vg_dev "rm $vg_part"
+ wipe_partitions $pv_dev
+ wipe_...
2010 Mar 24
2
[PATCH node][REPOST 1/2] Fix uninstall to detect and cleanup correct partitions
...partpv="$drive}p2"
- else
- partpv="${drive}2"
- fi
- parted -s $drive "rm 1"
- pvremove ${partpv}
- parted -s $drive "rm 2"
- parted -s $drive "rm 3"
- wipe_partitions $drive
- fi
+ log "Removing partitions"
+ parted -s $root_dev "rm $root_part"
+ pvremove ${vg_dev}
+ parted -s $root2_dev "rm $root2_part"
+ parted -s $vg_dev "rm $vg_part"
+ wipe_partitions $pv_dev
+ wipe_...
2010 Oct 27
0
[PATCH node] add uninstall module
...t;\"")
+ os.system("pvremove " + vg_dev)
+ os.system("parted -s " + root2_dev + "\"rm " + root2_part +"\"")
+ os.system("parted -s " + vg_dev + "\"rm " + vg_part + "\"")
+ wipe_partitions(pv_dev)
+ wipe_partitions(root_dev)
+ wipe_partitions(root2_dev)
+ #restart multipath
+ os.system("multipath -F")
+ os.system("multipath -v3")
+ os.system("service multipathd start")
+ log("Finished uninstalling nod...
2010 Jul 21
0
[PATCH] RFC: Advanced Storage Configuration
...te_hostvg()
log "Mounting data partition"
mount_data
fi
- log "Completed!"
+ log "Completed HostVG!"
+
+}
+
+create_appvg()
+{
+ log "Creating LVM partition(s) for AppVG"
+ local drv=
+ for drv in $APPVGDRIVE; do
+ wipe_partitions "$drv"
+ reread_partitions "$drv"
+ log "Labeling Drive: $drv"
+ parted "$drv" -s "mklabel ${LABEL_TYPE}"
+ parted "$drv" -s "mkpart primary ext2 0M -1"
+ appvgpart="1"
+ log &q...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...+ os.system(hook)
+ os.system("/sbin/reboot")
+
+# Check if networking is already up
+def network_up():
+ ret = os.system("ip addr show | grep -q 'inet.*scope global'")
+ if ret == 0:
+ return True
+ return False
+# Cleans partition tables
+def wipe_partitions(drive):
+ log("Wiping old boot sector")
+ os.system("dd if=/dev/zero of=\"%s\" bs=1024K count=1") % drive
+ # zero out the GPT secondary header
+ log("Wiping secondary gpt header")
+ disk_kb = subprocess.Popen("sfdisk -s \"%s\" 2...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...ot;
+ root_dev="$(findfs LABEL=Root 2>/dev/null)"
+ e2label "$root_dev" RootBackup
+ e2label "$root_update_dev" Root
fi
fi
# run post-install hooks
@@ -812,12 +812,12 @@ network_up () {
# Cleans partition tables
wipe_partitions() {
- local drive=$1
+ local drive="$1"
log "Wiping old boot sector"
- dd if=/dev/zero of=$drive bs=1024K count=1
+ dd if=/dev/zero of="$drive" bs=1024K count=1
# zero out the GPT secondary header
log "Wiping secondary gpt header"
-...