search for: pvremove

Displaying 20 results from an estimated 39 matches for "pvremove".

Did you mean: lvremove
2013 Sep 25
3
Best Practice to remove an ISCSI LVM from a system
...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 969 55 420 E-Ma...
2006 Apr 18
0
[patch] fstype fix ext3 <-> lvm2 detection
From: David H?rdeman <david@2gen.com> if a partition has been used as lvm2 and has not been cleared with pvremove, fstype would recognise the ext3 partition as lvm2. workaround that by detection lvm2 after ext3. Bonuspoint remove long fs list as this one just generates conflicts. Signed-off-by: David H?rdeman <david@2gen.com> Signed-off-by: maximilian attems <maks@sternwelten.at> diff --git a/u...
2016 Jan 22
4
LVM mirror database to ramdisk
...gextend vg /dev/ramdisk lvconvert -m 1 --corelog vg/lv_database /dev/ramdisk Even with lv_database being 35G, it doesn't take long to activate the mirror. I haven't decided where to put the commands to turn off the lvm mirror. lvconvert -m 0 vg/lv_database vgreduce vg /dev/ramdisk pvremove /dev/ramdisk I haven't put this in real world use, yet. On it's face, this might speed up database access. Would we expect it to speed up database access in real world use? Should I document the process so others could know how to do this? I realize new documentation for CentOS 5...
2011 Oct 28
2
read failed after messages of non existing harddisks
Hi, some time ago I removed some physical disks from a server and now I'm still getting dmesg messages like: sd 0:2:2:0: SCSI error: return code = 0x00040001 end_request: I/O error, dev sdc, sector 0 And all lvm tools still grumbel about that disks too: /dev/sdb: read failed after 0 of 4096 at 0: Eingabe-/Ausgabefehler /dev/sdb: read failed after 0 of 4096 at 1746969493504:
2010 Mar 23
0
[PATCH node] Fix uninstall to detect and cleanup correct partitions
...); - }') - if [ ! -e "$drive" ]; then - drive="$drive2" - 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...
2010 Mar 23
1
[PATCH node][RFC] Fix uninstall to detect and cleanup correct partitions
...); - }') - if [ ! -e "$drive" ]; then - drive="$drive2" - 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...
2010 Mar 24
2
[PATCH node][REPOST 1/2] Fix uninstall to detect and cleanup correct partitions
...); - }') - if [ ! -e "$drive" ]; then - drive="$drive2" - 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...
2015 Jun 24
4
LVM hatred, was Re: /boot on a separate partition?
...with VMs. > Do you have some for straight-on-the-server, non-VM cases? I've used LVM on servers with hot-swap drives to migrate to new storage without downtime a number of times. Add new drives to the system, configure RAID (software or hardware), pvcreate, vgextend, pvmove, vgreduce, and pvremove (and maybe a lvextend and resize2fs/xfs_growfs). Never unmounted a filesystem, just some extra disk I/O. Even in cases where I had to shutdown or reboot a server to get drives added, moving data could take a long downtime, but with LVM I can live-migrate from place to place. LVM snapshots make it...
2016 Jan 22
0
LVM mirror database to ramdisk
.../dev/ramdisk > > Even with lv_database being 35G, it doesn't take long to activate the > mirror. > > I haven't decided where to put the commands to turn off the lvm > mirror. > lvconvert -m 0 vg/lv_database > vgreduce vg /dev/ramdisk > pvremove /dev/ramdisk > > I haven't put this in real world use, yet. > > On it's face, this might speed up database access. Would we expect it > to speed up database access in real world use? > > Should I document the process so others could know how to do this? I > r...
2010 Oct 27
0
[PATCH node] add uninstall module
...rt_info(pv_device) + + log("Removing volume group") + wipe_volume_group("HostVG") + log("Removing partitions") + os.system("parted -s " + root_dev + "\"rm " + root_part + "\"") + 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(r...
2011 Jul 29
0
[PATCH node] Add debugging info to dracut plugin
...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
2006 Jul 05
0
[PATCH] Do LUKS detection later in fstype
...t/fstype/fstype.c b/usr/kinit/fstype/fstype.c index cea219e..89203e1 100644 --- a/usr/kinit/fstype/fstype.c +++ b/usr/kinit/fstype/fstype.c @@ -236,19 +236,21 @@ struct imagetype { * LVM comes after all other filesystems since it's possible * that an old lvm signature is left on the disk if pvremove * is not used before creating the new fs. + * + * The same goes for LUKS as for LVM. */ static struct imagetype images[] = { {0, "gzip", gzip_image}, {0, "cramfs", cramfs_image}, {0, "romfs", romfs_image}, {0, "xfs", xfs_image}, - {0, "luks&...
2013 Dec 16
2
LVM recovery after pvcreate
Hi all, I had centos 5.9 installed with one of its volumes (non-root) on LVM: ... /dev/vgapps/lvapps /opt/apps ext3 defaults 1 2 ... Then installed centos 6.4 on this servers but without exporting this volume (I wanted to reuse it). After that instead importing it I did: # pvcreate /dev/sddlmac # vgcreate vgapps /dev/sddlmac And then realised that I should have
2014 Jun 24
3
How to remove LVM Physical Volume from Volume Group?
Hi. I have a volume group (let's say) vg_data. It consists from /dev/sdd5 sdd6 sdd7 I added sdc5 Now I want to remove (free) sdd7 and you is to for RAID partition. What are the commands (ordered) I need to perform? I failed to find clear howto. vg-data has only one partition, total size is over 1TB, free space is about 500GB so
2015 Jan 10
3
LVM - pvmove and multiple servers
Hi All. Looking for some guidance/experience with LVM and pvmove. I have a LUN/PV being presented from a iscsi SAN. The LUN/PV is presented to 5 servers as a shared VG they all have LV's they use for data, they are all connected via iSCSI. As the SAN I am using is being replaced I need to move onto a new unit. My migration strategy at this time is to 1. Present a new LUN from the new SAN
2007 Jun 19
2
Migration help please - moving OS to a different LVM partition
I have set up a migration between two drives. fIrst I got Centos 5 working how I wanted on this drive, then set about copying it to another drive. The Centos files on both drives are in sub-partitions in an LVM partition on their respective drives. I first did a minimum install on the new drive and saved all those files to a separate directory. The LVM partititons and sub-partitions all
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
2016 Jan 22
2
LVM mirror database to ramdisk
...lv_database being 35G, it doesn't take long to activate the > > mirror. > > > > I haven't decided where to put the commands to turn off the lvm > > mirror. > > lvconvert -m 0 vg/lv_database > > vgreduce vg /dev/ramdisk > > pvremove /dev/ramdisk > > > > I haven't put this in real world use, yet. > > > > On it's face, this might speed up database access. Would we expect it > > to speed up database access in real world use? > > > > Should I document the process so others c...
2019 Aug 12
1
[PATCH] Fix small issues in documentations of APIs
...A512 hash (using the C<sha512sum> program). +Compute the SHA512 hash (using the L<sha512sum(1)> program). =back @@ -2854,7 +2854,7 @@ group (if any)." }; This wipes a physical volume C<device> so that LVM will no longer recognise it. -The implementation uses the C<pvremove> command which refuses to +The implementation uses the L<pvremove(8)> command which refuses to wipe physical volumes that contain any volume groups, so you have to remove those first." }; @@ -2958,7 +2958,7 @@ caveats in L<guestfs(3)/RUNNING COMMANDS>. =item * -This use...
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...uot;, "-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; for (i = 0; xs[i] != NULL; ++i) { - r = command (NULL, &err, "lvm", "pvremove", "-f", xs[i], NULL); + r = command (NULL, &err, str_lvm, "pvremove", "-f", xs[i], NULL); if (r == -1) { reply_with_error ("pvremove: %s: %s", xs[i], err); free (err); @@ -426,7 +428,7 @@ do_lvremove (const char *device) int...