search for: vgcreate

Displaying 20 results from an estimated 132 matches for "vgcreate".

2010 Oct 15
2
puppet-lvm and volume group issues
.../sdc /dev/sdd", require => [ Physical_volume["/dev/sdb"], Physical_volume["/dev/sdc"], Physical_volume["/dev/sdd"] ] } Fails with this in the debug output:- debug: volume_group provider lvm: Executing ''/usr/sbin/vgcreate my_vg / dev/sdb /dev/sdc /dev/sdd'' /usr/lib/ruby/site_ruby/1.8/puppet/provider.rb:133:in `vgcreate'' /usr/lib/ruby/site_ruby/1.8/puppet/provider.rb:140:in `vgcreate'' err: //myvg::setup/myvg::disks/Volume_group[my_vg]/ensure: change from absent to present failed: Execution...
2013 Dec 16
2
LVM recovery after pvcreate
...stalled 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 import it instead of pvcreate/vgcreate. Can I restore previous state and data from this volume ? I have files from /etc/lvm/backup (taken before reinstallation) with its old definition. Regards P.
2018 Jan 12
5
[PATCH 1/1] appliance: init: Avoid running degraded md devices
...rap cleanup INT QUIT TERM EXIT + +guestfish <<EOF +# Add 2 empty disks +sparse $disk1 100M +sparse $disk2 100M +run + +# Create a raid1 based on the 2 disks +md-create test "/dev/sda /dev/sdb" level:raid1 + +# Create volume group and logical volume on md device +pvcreate /dev/md127 +vgcreate vg0 /dev/md127 +lvcreate-free lv0 vg0 100 +EOF + +# Ensure list-md-devices now returns the newly created md device +output=$( +guestfish --format=raw -a $disk1 --format=raw -a $disk2 <<EOF +run +list-md-devices +lvs +EOF +) + +expected="/dev/md127 +/dev/vg0/lv0" + +if [ "$outpu...
2006 Dec 06
5
LVM & volume groups
Can anybody tell me if it makes a difference if domU''s have separate LVM volume groups? For instance, the Xen User Manual ( http://tx.downloads.xensource.com/downloads/docs/user/#SECTION03330000000000000000) says, when setting up a domU''s disks with LVM, to do a vgcreate vg /dev/sda10 Should each domU have it''s own volume group, or can all the domU''s share the ''vg'' volume group? TIA, Rich ______________________________________ Richard Yumul rmy@sdtechnix.com http://www.sdtechnix.com _________________________________________...
2017 Jul 26
0
[PATCH 2/2] tests: lvm: Make the lvm_set_filter test easier to understand.
...| 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/lvm/test-lvm-filtering.sh b/tests/lvm/test-lvm-filtering.sh index 0c8b8803a..abb88ae6c 100755 --- a/tests/lvm/test-lvm-filtering.sh +++ b/tests/lvm/test-lvm-filtering.sh @@ -40,22 +40,22 @@ pvcreate /dev/sdb1 vgcreate VG1 /dev/sda1 vgcreate VG2 /dev/sdb1 -# Should see VG1 and VG2 +echo Expect VG1, VG2 vgs -# Should see just VG1 +echo Expect VG1, VG1 lvm-set-filter /dev/sda vgs lvm-set-filter /dev/sda1 vgs -# Should see just VG2 +echo Expect VG2, VG2 lvm-set-filter /dev/sdb vgs lvm-set-filter /dev/...
2009 Oct 06
1
Disc layout advice
I have a DAS w/ 6 750Gb and 6 1Tb discs I am setting up using Linux raid. The controller is a POS so each disc is exported as an R0 single volume. I used a parted and fdisk script to create 1 max size partition labeled as Linux Raid Autodetect and created the first r6 array w/ mdadm. I normally create and mark partitions as raid or lvm so people know what's going on. The first md array is
2007 Jun 13
1
lvm
Hello, I have a physical volume with no volume group. # /sbin/pvscan -n WARNING: only considering physical volumes in no volume group PV /dev/sdg2 lvm2 [148.95 GB] Total: 1 [148.95 GB] / in use: 0 [0 ] / in no VG: 1 [148.95 GB] Can I just create a volume group -- for example: # vgcreate my_volume_group /dev/sdg2 and then activate it: # vgchange -a y my_volume_group I don't wish to reformat it or otherwise lose data stored on the volume if possible. Other suggestions? Shawn
2006 Feb 09
1
Mount LVM
...and also tried to follow a few "mount/recovery procedures" with the only result of compromising the other test disk. I think this the problem is that the vg on my system has the same name of the one on the external usb disk, but I am not sure of what result would have running vgrename, vgcreate or lvcreate on the data, so I'd rather wait for some advice. Any help appreciated
2006 Jul 06
4
LVM Input/output error
...into the created LV's seems to work)? * If yes, how to fix them? [root at frodo pilpel10]# uname -a Linux frodo 2.6.9-34.0.1.ELsmp #1 SMP Wed May 24 05:28:30 CDT 2006 x86_64 x86_64 x86_64 GNU/Linux Using lvm2 2.02.01-1.3 Thanks in advance, Itay <quote> [root at frodo pilpel10]# vgcreate VGe1 /dev/sdc2 /dev/dm-11: read failed after 0 of 4096 at 5242814464: Input/output error /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error /dev/dm-12: read failed after 0 of 4096 at 54460416: Input/output error /dev/dm-12: read failed after 0 of 4096 at 0: Input/output er...
2007 Oct 13
1
Problem creating volgroups with kickstart installations (on xen)
...is is the first time I'm trying out kickstart at all, so I rather think I'm doing something wrong in the kickstart configuration than it is a Xen issue. I use a modified kickstart file from an earlier manual installation with a very basic filesystem setup. It fails with "SystemError: vgcreate failed for VolGroup00". The Xen VM file is allowed to grow up to 2GB. The kickstart commands for partioning are: clearpart --all --initlabel --drives=xvda part /boot --fstype ext3 --size=100 --ondisk=xvda part pv.2 --size=0 --grow --ondisk=xvda volgroup VolGroup00 pv.2 --pesize=32768 pv.2 log...
2017 Jan 12
4
Network Storage
Hello, I have looked into the various network attached storage devices and software based solutions. Can't really find one I like. Would it be possible to add a couple HDs to my existing 6.8 server and set them up as RAID drives? If so, how would I keep it from mirroring the system drive? Just spent$2500 on a transmission for my truck, so I broke right know and need to go the
2009 Aug 28
4
Setting up large (12.5 TB) filesystem howto?
...ties to find the right tool, maybe it's also a question of the system settings... The server is a 32Bit CentOS 5.3 with the recent updates. Ths iscsi connection can be establised. fdisk and parted fail to create any information on the device or fail completely. using the lvm tools (pvcreate, vgcreate, lvcreate), I could finaly create a logical volume: lvdisplay /dev/VolGroup02/lvol0 --- Logical volume --- LV Name /dev/VolGroup02/lvol0 VG Name VolGroup02 LV UUID h7T6tD-JZw2-UEdb-q1ml-BDqp-9E0u-mAop6x LV Write Access read/write LV S...
2015 Mar 06
3
LVM encryption and new volume group
Hi Chris, thanks for your answer. It is the first time I decided to encrypt my lvm. I choosed to encrypt the volume group, not every logical volume itself, because in case of doing lvm snapshots in that group they will be encrypted too? And how do I create a new encrypted volume group? Regards Tim Am 6. M?rz 2015 01:58:23 MEZ, schrieb Chris Murphy <lists at colorremedies.com>: >On
2015 Jan 13
3
[PATCH] mkfs: add 'label' optional argument
...["write"; "/new"; "test file"]; ["umount"; "/dev/sda1"; "false"; "false"]; @@ -5602,7 +5602,7 @@ are activated or deactivated." }; ["pvcreate"; "/dev/sda1"]; ["vgcreate"; "VG"; "/dev/sda1"]; ["lvcreate"; "LV"; "VG"; "10"]; - ["mkfs"; "ext2"; "/dev/VG/LV"; ""; "NOARG"; ""; ""]; + ["mkfs"; "ex...
2023 May 19
3
[libguestfs PATCH 0/3] test "/dev/mapper/VG-LV" with "--key"
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2168506 This small set covers the new /dev/mapper/VG-LV "--key" ID format in the libguestfs LUKS-on-LVM inspection test. Thanks, Laszlo Laszlo Ersek (3): update common submodule LUKS-on-LVM inspection test: rename VGs and LVs LUKS-on-LVM inspection test: test /dev/mapper/VG-LV translation common
2016 Apr 11
4
Problems with scsi-target-utils when hosted on dom0 centos 7 xen box
...fig /etc/tgt/conf.d/xenguests.conf <target iqn.2016-02.com.bravenet:test> backing-store //mnt/vmdisk/test # vm image </target> systemctl tgtd restart iscsiadm -m discovery -t sendtargets -p localhost iscsiadm -m node -T iqn.2016-02.com.bravenet:test -l add it to lvm (pvcreate, vgcreate), let's call it /dev/vmdisk.vg/test.lv and then use libvirt to attempt to install an os on /dev/vmdisk.vg/test.lv (using anaconda) Around the time it tries to create the disk label, is when the conn errors start, until eventually it gives up trying to create the disk label. We tested...
2023 May 19
3
[guestfs-tools PATCH 0/3] test "/dev/mapper/VG-LV" with "--key"
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2168506 This small set covers the new /dev/mapper/VG-LV "--key" ID format in the LUKS-on-LVM virt-inspector test. Thanks, Laszlo Laszlo Ersek (3): update common submodule inspector: rename VGs and LVs in LUKS-on-LVM test inspector: test /dev/mapper/VG-LV translation in LUKS-on-LVM test common
2010 Mar 23
1
[PATCH node][RFC] Remove dependencies on /dev/disk/by-label entries
...+ reboot fi stop_log exit $rc diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage index c6473a6..93b94b0 100755 --- a/scripts/ovirt-config-storage +++ b/scripts/ovirt-config-storage @@ -703,8 +703,6 @@ perform_partitioning() log "Creating volume group" vgcreate /dev/HostVG "${partpv}" - mkdir -p /dev/disk/by-label - if [ "$SWAP_SIZE" -gt 0 ]; then log "Creating swap partition" lvcreate --name Swap --size ${SWAP_SIZE}M /dev/HostVG diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions index b...
2010 Jul 21
0
[PATCH] RFC: Advanced Storage Configuration
...ating physical volume" - if [ ! -e "$partpv" ]; then - log "$partpv is not available!" - exit 1 - fi - dd if=/dev/zero of="${partpv}" bs=1024k count=1 - pvcreate -ff -y "${partpv}" log "Creating volume group" - vgcreate /dev/HostVG "${partpv}" + vgcreate /dev/HostVG "${physical_vols}" if [ "$SWAP_SIZE" -gt 0 ]; then log "Creating swap partition" @@ -665,9 +727,75 @@ create_hostvg() log "Mounting data partition" mount_data f...
2015 Mar 06
0
LVM encryption and new volume group
...ing up your first drive. PLEASE make sure you don't use that command directly or it'll wipe the LUKS header on your current drive. You have to change the /dev/sdX designation to point to the new drive or partition. 2 cryptsetup luksOpen /dev/sdX newdrive 3. pvcreate /dev/mapper/newdrive 4. vgcreate newvg /dev/mapper/newdrive 5. lvcreate -L 300G -n morestuff newvg 6. mkfs.xfs /dev/mapper/newvg-morestuff Adapt as needed. Don't forget crypttab is used to point to the LUKS volume, once it's unlocked the PV is revealed and lvm will activate the VG and the LVs on it, and then in your fstab...