Displaying 20 results from an estimated 29 matches for "vgremov".
Did you mean:
vgremove
2013 Aug 14
1
Can't remove a physical_volume from a volume_group
...s of /dev/sda5 amd /dev/sdb1):
volume_group {
"system":
ensure => absent,
physical_volumes => "/dev/sdb1",
}
But I get this error:
Error: Execution of ''/sbin/vgremove system'' returned 5: Do you really want
to remove volume group "system" containing 2 logical volumes? [y/n]:
Volume group "system" not removed
Error: /Stage[main]/Node_emake/Volume_group[system]/ensure: change from
present to absent failed: Execution of ''/...
2013 Sep 25
3
Best Practice to remove an ISCSI LVM from a system
Hi,
I'd like to know what would be the best way to remove an iscsi lvm
storage from a server. (removing all reference to that storage etc.)
The storage in question will be reset and reformated and used on a
different server; so no LVM export is needed.
Do I have to do lvremove ..., vgremove ..., pvremove ... and do an
iscsiadm -m node -T ... -p ... -u and
iscsiadm -m node -o delete -T ... -p ...
in order to achieve that?
Or is there some more simple way?
Thanks for any suggestion and best regards . G?tz
--
G?tz Reinicke
IT-Koordinator
Tel. +49 7141 969 82 420
Fax +49 7141...
2012 Aug 29
1
delete storage pool error
hi,all
I create pool with lvm,but i carelessly add a blank space in the pool name
like ' lvm_pool' , now I want to delete this pool,but encounter a error:
error: Failed to delete pool lvm_pool
error: internal error Child process (/sbin/vgremove -f lvm_pool) status
unexpected: exit status 5
how to solve this problem?
thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120829/4f61560a/attachment.htm>
2011 Apr 08
1
Kickstart and lvm
I've written some %pre code to grab a few files off a logical volume, if it
exits, before the disk gets formatted, but can't get get it to work correctly.
Essentially:
%pre
...
lvm vgscan
lvm vgchange -a y
...
if [ -d /dev/vol0 ]; then
# do stuff
fi
lvm vgremove -f vol0
The problem is that /dev/vol0 does not exist after lvm vgchange. I added a
few debug statements (lvm pvdisplay, lvm vgdisplay, lvm lvdisplay, ls -l /dev)
that confirm the existance of all logical volumes, but there's no sign of
the volume group under /dev. What am I missing?
2016 Aug 05
1
CentOS 7 kickstart question
...gt; re-installation. So if you're reusing the names of volumes groups, you
> might encounter an error. I do something like this in a %pre section:
>
> %pre --interpreter=/usr/bin/bash
> # DANGER: will remove all volume groups
> for VG in $(vgs -o vg_name --noheadings); do
> vgremove -f "$VG"
> done
> %end
>
Thanks Paul,
here is my unsuccessful (requiring human intervention) kistart disk
related part:
# System bootloader configuration
#bootloader --location=mbr --boot-drive=sda
# Darn, they changed grub password encryption standard
#bootloader --location=...
2016 Aug 04
4
CentOS 7 kickstart question
Dear Experts,
Could somebody point to kicstart HOWTO specific for CentOS 7?
On CentOS 7 I somehow am always given human intervention questions about
drive which defeats unattended ks install.
<rant ??>
I'm doing kickstart installations for quite some time, normally I was just
installing system when new release comes, and am basing kickstart file on
anaconda-ks.cfg - with some
2017 Apr 23
0
Proper way to remove a qemu-nbd-mounted volume usnig lvm
...above>
vgchange -an <qemu-nbd related volume>
Now what? How do I get the volume out of the list so I can use
'qemu-nbd -d /dev/nbd0' to dis-associate the image with /dev/nbd0?
vgreduce seems to be for volumes which have multiple underlying
devices. I started to use vgremove but, when it started prompting for
confirmation about removing logical volumes, I wasn't sure exactly what
it was going to do and responded 'no'.
If there is a web reference explaining this specific situation just
point me to it - I'm not opposed to reading. Thanks for the hel...
2016 Aug 05
0
CentOS 7 kickstart question
...ion will stick around during a
re-installation. So if you're reusing the names of volumes groups, you
might encounter an error. I do something like this in a %pre section:
%pre --interpreter=/usr/bin/bash
# DANGER: will remove all volume groups
for VG in $(vgs -o vg_name --noheadings); do
vgremove -f "$VG"
done
%end
--
Paul Heinlein <> heinlein at madboa.com <> http://www.madboa.com/
2011 Jul 29
0
[PATCH node] Add debugging info to dracut plugin
...IFS=$oldIFS
for i in $(lvm pvs --noheadings -o pv_name,vg_name --separator=, $device* 2>/dev/null); do
pv="${i%%,*}"
vg="${i##*,}"
if [ -n "$vg" ]; then
+ info "Found and removing vg: $vg"
yes | lvm vgremove -ff "$vg"
fi
+ info "Found and removing pv: $pv"
yes | lvm pvremove -ff "$pv"
done
IFS=,
--
1.7.4.4
2008 Feb 08
0
Installation problems with large mirrored drives (SU CCESS!)
...LVM PV
>
> LogVol00: 10GB, /
> LogVol01: rest of the VG, /home
Thanks for all the suggestions! I tried a few of them. They didn't
solve the problem, but they did help me find it.
When I tried to run the install without LVM, I still got the same
anaconda crash (referencing vgremove). I realized that anaconda was
trying to remove the volume groups that already existed on the drives.
Once I erased all of the partition information on the drives with fdisk,
I was able to do a normal install with LVM.
--
Bowie
2011 May 25
1
Hook script to preserve one partition untouched during install
...lvremove -ff "$VG"
if [ $? -ne 0 ]; then
log "Error: Can not remove Logical Volumes"
return 1
fi
fi
log "Removing Volume Group"
vgremove -ff "$VG"
if [ $? -ne 0 ]; then
log "Error: Can not remove Volume Group"
return 1
fi
fi
else
log "Creating Physical Volume"
pvcreate "$PV"...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...log "Unmounting $d"
@@ -156,10 +156,10 @@ wipe_volume_group()
done
for d in $(grep $vg /proc/swaps|awk '{print $1}'); do
log "Turning off $d"
- swapoff $d
+ swapoff "$d"
done
log "Removing $vg"
- vgremove -f $vg
+ vgremove -f "$vg"
}
# find_srv SERVICE PROTO
@@ -719,10 +719,10 @@ reboot() {
if [ "$OVIRT_ISCSI_ENABLED" = "yes" ]; then
# setup new Root if update is prepared
if findfs LABEL=RootUpdate 2>&1 >/dev/null; then
-...
2011 Nov 18
2
newbie question re block-attach on ubuntu 11.10
I''m a complete newbie at Xen, just getting started.
I was happy to see that Ubuntu 11.10 includes Xen again,
http://zulcss.wordpress.com/2011/09/04/xen-4-1-1-on-ubuntu/
So I installed ubuntu 11.10''s precompiled Xen,
and started playing around with it.
I''m not even trying to start another VM at the moment,
just playing around with mounting block devices,
and had trouble
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...t, see note above. */
- (void) command (NULL, NULL, "lvm", "vgchange", "-an", xs[i], NULL);
+ (void) command (NULL, NULL, str_lvm, "vgchange", "-an", xs[i], NULL);
udev_settle ();
- r = command (NULL, &err, "lvm", "vgremove", "-f", xs[i], NULL);
+ r = command (NULL, &err, str_lvm, "vgremove", "-f", xs[i], NULL);
if (r == -1) {
reply_with_error ("vgremove: %s: %s", xs[i], err);
free (err);
@@ -402,7 +404,7 @@ do_lvm_remove_all (void)
return -1...
2012 Aug 30
1
[PATCH] collect list of called external commands
...t, see note above. */
- (void) command (NULL, NULL, "lvm", "vgchange", "-an", xs[i], NULL);
+ (void) command (NULL, NULL, str_lvm, "vgchange", "-an", xs[i], NULL);
udev_settle ();
- r = command (NULL, &err, "lvm", "vgremove", "-f", xs[i], NULL);
+ r = command (NULL, &err, str_lvm, "vgremove", "-f", xs[i], NULL);
if (r == -1) {
reply_with_error ("vgremove: %s: %s", xs[i], err);
free (err);
@@ -402,7 +404,7 @@ do_lvm_remove_all (void)
return -1...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...t, see note above. */
- (void) command (NULL, NULL, str_lvm, "vgchange", "-an", xs[i], NULL);
+ (void) command (NULL, NULL, "lvm", "vgchange", "-an", xs[i], NULL);
udev_settle ();
- r = command (NULL, &err, str_lvm, "vgremove", "-f", xs[i], NULL);
+ r = command (NULL, &err, "lvm", "vgremove", "-f", xs[i], NULL);
if (r == -1) {
reply_with_error ("vgremove: %s: %s", xs[i], err);
return -1;
@@ -530,7 +528,7 @@ do_lvm_remove_all (void)...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...t, see note above. */
- (void) command (NULL, NULL, str_lvm, "vgchange", "-an", xs[i], NULL);
+ (void) command (NULL, NULL, "lvm", "vgchange", "-an", xs[i], NULL);
udev_settle ();
- r = command (NULL, &err, str_lvm, "vgremove", "-f", xs[i], NULL);
+ r = command (NULL, &err, "lvm", "vgremove", "-f", xs[i], NULL);
if (r == -1) {
reply_with_error ("vgremove: %s: %s", xs[i], err);
return -1;
@@ -530,7 +530,7 @@ do_lvm_remove_all (void)...
2017 Jul 27
3
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
This is a simpler patch that removes GUESTFSD_EXT_CMD completely.
2017 Jul 24
6
[PATCH 0/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
Replace GUESTFSD_EXT_CMD with a command line option
‘./guestfsd --print-external-commands’
2012 Feb 01
1
[PATCH] Clarify the error message when unavailable functions are called (RHBZ#679737).
...);
if (xs == NULL)
@@ -392,6 +416,8 @@ do_lvremove (const char *device)
char *err;
int r;
+ IF_NOT_AVAILABLE_ERROR (lvm2, -1);
+
r = command (NULL, &err,
"lvm", "lvremove", "-f", device, NULL);
if (r == -1) {
@@ -413,6 +439,8 @@ do_vgremove (const char *device)
char *err;
int r;
+ IF_NOT_AVAILABLE_ERROR (lvm2, -1);
+
r = command (NULL, &err,
"lvm", "vgremove", "-f", device, NULL);
if (r == -1) {
@@ -434,6 +462,8 @@ do_pvremove (const char *device)
char *err;
int r...