search for: pv_dev

Displaying 4 results from an estimated 4 matches for "pv_dev".

Did you mean: p_dev
2010 Mar 23
1
[PATCH node][RFC] Fix uninstall to detect and cleanup correct partitions
...gt;&1 >/dev/null; then + root2=RootBackup + elif findfs LABEL=RootUpdate 2>&1 >/dev/null; then + root2=RootUpdate + elif findfs LABEL=RootNew 2>&1 >/dev/null; then + root2=RootNew + fi + local root_dev root_part pv_dev pv_part root2_dev root2_part + if ! get_part_info $(findfs LABEL=Root 2>/dev/null) root_dev root_part; then + log "Can't find Root device" + exit 2 + fi + if ! get_part_info $(findfs LABEL=root2 2>/dev/null) root2_dev root2_part; then +...
2010 Oct 27
0
[PATCH node] add uninstall module
...sys.exit(3) + root2_dev, root2_part = get_part_info(root2_device) + + pv_lookup_cmd = "pvs --noheadings -o pv_name,vg_name | grep HostVG | awk '{print $1}'" + pv_lookup = subprocess.Popen(pv_lookup_cmd, shell=True, stdout=PIPE, stderr=STDOUT) + pv_device = pv_lookup.stdout.read() + if pv_device is None: + log("Can't find HostVG device") + sys.exit(4) + pv_dev, pv_part = get_part_info(pv_device) + + log("Removing volume group") + wipe_volume_group("HostVG") +...
2010 Mar 23
0
[PATCH node] Fix uninstall to detect and cleanup correct partitions
...t_part_info $(findfs LABEL=${root2} 2>/dev/null) root2_dev root2_part; then + log "Can't find RootBackup/RootNew/RootUpdate device" + exit 3 + fi + if ! get_part_info $(pvs --noheadings -o pv_name,vg_name | grep HostVG | awk '{print $1}') pv_dev pv_part; then + log "Can't find HostVG device" + exit 4 + fi log "Removing volume group" wipe_volume_group "HostVG" - partition=$(readlink -f $(findfs LABEL=Root)) - if [ -n "$partition" ]; then...
2010 Mar 24
2
[PATCH node][REPOST 1/2] Fix uninstall to detect and cleanup correct partitions
...t_part_info $(findfs LABEL=${root2} 2>/dev/null) root2_dev root2_part; then + log "Can't find RootBackup/RootNew/RootUpdate device" + exit 3 + fi + if ! get_part_info $(pvs --noheadings -o pv_name,vg_name | grep HostVG | awk '{print $1}') pv_dev pv_part; then + log "Can't find HostVG device" + exit 4 + fi log "Removing volume group" wipe_volume_group "HostVG" - partition=$(readlink -f $(findfs LABEL=Root)) - if [ -n "$partition" ]; then...