search for: lvname

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

Did you mean: lv_name
2016 May 06
4
resize lvm
I have a laptop that I put centos 7 on and I started out with a 30gig partition.? I resized the other part of the disk to allow more space for centos.? I then created an unformated partition in the available space,? ran pvcreate /dev/sda4 vgextend lvname /dev/sda4 lvextend -L 184.46G /dev/lvname/root but when I run: sudo resize2fs /dev/lvname/root I get: resize2fs: Bad magic number in super-block while trying to open /dev/lvname/root Couldn't find valid filesystem superblock. How do I resize the volume? Thanks, -wes
2008 May 27
8
How to manage partitions and logical volumes with puppet?
...this at the moment with a define of the following type: # Manage a partition and create if needed. define lv_partition( $name = "partition", $location = "/tmp", $lvsize = "1G", $fstype = "ext3", $vgname = "vg00", $lvname = $name, $owner = "root", $group = "root", $mode = "755" ) { file { "$location/$name": ensure => directory, owner => $owner, group => $group, mode => $mode, notify => Exec...
2016 May 06
0
resize lvm
...wrote: > I have a laptop that I put centos 7 on and I started out with a 30gig partition.? I resized the other part of the disk to allow more space for centos.? I then created an unformated partition in the available space,? ran > > > pvcreate /dev/sda4 > > > > vgextend lvname /dev/sda4 > > > > lvextend -L 184.46G /dev/lvname/root I find it easiest to do lvextend -l 100%VG /dev/lvname/rootI find it easiest to do lvextend -l 100%VG /dev/lvname/root. (Then, if practical, and since it's a laptop, I'm guessing it's not a production machine), re...
2011 Sep 28
6
I can't seem to create mountpoint and change permissions after mounting in 2.7.3
...ountpoint location with root:root/755 and after mounting allow the same location to have a different owner:group/ permissions. These are the defines I use at this moment define lvm::createfs ( $mountpath = undef, $mountpoint = undef, $lvsize = undef, $fstype = undef, $vgname = undef, $lvname = "${name}", $requisite = '''' ) { # Load defaults require lvm::params # Check mountpath equals root $rootpath = $mountpath ? { ''/'' => undef, default => $mountpath, } # Create directory tree including subdirectories...
2015 Nov 04
1
[PATCH 0/1] sparsify: Let --in-place capture ^C and shut down gracefully
This patch is easier to read if you use the 'git show -w' option. Also observe that: fun a -> ( fun () -> (* code *) ) (ie. returning a closure) is identical to: fun a () -> (* code *) Rich.
2016 May 06
0
resize lvm
On May 06, 2016, at 12:37 PM, John R Pierce <pierce at hogranch.com> wrote: On 5/6/2016 11:28 AM, John R Pierce wrote: On 5/6/2016 11:19 AM, Wes James wrote: sudo resize2fs /dev/lvname/root I get: resize2fs: Bad magic number in super-block while trying to open /dev/lvname/root Couldn't find valid filesystem superblock. what file system type is this /dev/lvname/root ? oops, left out the rest... since you said C7, its quite likely its XFS not extXfs ... if thats...
2016 May 06
2
resize lvm
...; > I have a laptop that I put centos 7 on and I started out with a 30gig partition. I resized the other part of the disk to allow more space for centos. I then created an unformated partition in the available space, ran > > > > pvcreate /dev/sda4 > > > > > vgextend lvname /dev/sda4 > > > > > lvextend -L 184.46G /dev/lvname/root > > > > I find it easiest to do lvextend -l 100%VG /dev/lvname/rootI find it > easiest to do lvextend -l 100%VG /dev/lvname/root. > (Then, if practical, and since it's a laptop, I'm guessing it's n...
2013 Mar 05
1
ubuntu, libvirt and virtio block devices
...lder, and then migrated those from their .qcow files to lvm. However, those virtual machines are still using disk type "file": Code: <disk type='file' device='disk'> <driver name='qemu' type='raw'/> <source file='/dev/vg1/lvname'/> <target dev='hda' bus='ide'/> <alias name='ide0-0-0'/> <address type='drive' controller='0' bus='0' unit='0'/> </disk> Now I've noticed that this disk should probably have type &quot...
2016 May 06
0
resize lvm
On 5/6/2016 11:19 AM, Wes James wrote: > sudo resize2fs /dev/lvname/root > > > I get: > > > > resize2fs: Bad magic number in super-block while trying to open > /dev/lvname/root > Couldn't find valid filesystem superblock. what file system type is this /dev/lvname/root ? -- john r pierce, recycling bits in santa cruz
2016 May 06
3
resize lvm
On May 06, 2016, at 12:29 PM, John R Pierce <pierce at hogranch.com> wrote: On 5/6/2016 11:19 AM, Wes James wrote: sudo resize2fs /dev/lvname/root I get: resize2fs: Bad magic number in super-block while trying to open /dev/lvname/root Couldn't find valid filesystem superblock. what file system type is this /dev/lvname/root ? I tried to find the type from blkid /dev/sda4 but that didn't give me the info so I tried...
2008 Apr 22
1
dd backup of lv
I have a series of unmounted lv's that are used in xen vm's of various flavors in a lab environment. I made a script that I use to backup all of them prior to doing anything I may need to undo and all I execute is: dd if=/dev/vgname/lvname of=/dir/name.img Are there any additional parameters I should use? I haven't tried to restore this into an lv, but I did swap the 'phy' specification for 'file' and started a vm using the backed up image and it was fine. Thanks! jlc
2005 Jul 30
3
LVM Snapshot Create Error
Just discovered that on CentOS 4.1 when you issue the command: lvcreate -s -n temp -L2G /dev/vgname/lvname to create a snapshot, you get the error message: snapshot: Required device-mapper target(s) not detected in your kernel I've checked and recheck my spelling and tried using the device created under /dev/mapper. I've tried it on both x86_64 and on i386. Works as expected under CentOS 3.5...
2006 Mar 10
0
RE: RE: domU lvm and resizing40
The way I''ve done it in the past is: 1. Make sure that xen domain is shut down that you are re-sizing 2. Run lvextend (you''ve already done this) 3. Run e2fsck -f [logical volume name] (i.e. /dev/domain0/lvname) 4. Run resize2fs [volume name] [new size in G of LV] (i.e. resize2fs /dev/domain0/lvname 8G 5. Start up vm. New size should be reflected now. HTH -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of John S Little Se...
2009 Aug 17
2
Building and Installing Xen 4.3 in Fedora11
HI there, I am using a Dell PowerEdge 2970 with following specs:2 x AMD Dual Core Opteron processors, 2GHz, 2 MB L2 Cache.8 GB RAM (4 x 2 GB)4 x 146 GB Hard DisksDual Port Gigabit Ethernet NIC10 Gbps PCI EthernetFedora 11 operating system installed.What I want here is Building and Installing Xen 4.3 in Fedora 11. for this I followed the following steps
2007 Jul 05
3
LVM recovery questions
Hi, I have a centos 4 box i use for a file server (nfs and samba). It has two hdd: hda is for the standard install; hdb is for /export/samba/netdisk0 hda is lost - it just clicks now i think hdb is still good i can't figure out how i can remount the hdb disk in a new machine and retrieve the info from it; i've scanned the LVM howto and googled some LVM topics, but nothing seems to
2010 Feb 15
3
My first type/provider - does nothing...
...should create logical volumes. Seems like i''m missing something as i get nothing when i use it: No errors and no logical volume :-( type/logicalvolume.rb: ================= Puppet::Type.newtype(:logicalvolume) do @doc = "Manage logical volumes" ensurable newparam(:lvname) do desc "The logcal volume''s name" validate do |value| unless value =~ /^[a-z0-9]+/ raise ArgumentError , "%s is not a valid lv name" % value end end isnamevar end newparam(:size) do...
2009 Oct 25
2
Move Windows within an LV to another pv safely
...ks like you want to skip the pvmove. That's fine, but it means more downtime (an unreliable estimate is one minuted per GB). In that case, you don't even need the snapshot. You won't need a point in time copy if you are copying from a stable source. > 1. Shutdown domU source (source lvname = win2k8-source) which is never > file mounted in Xen dom0, just "lvm'd". Yeah, just turning off the guest and making sure it doesn't have the ``o'' flag set in the ``lvs'' output is enough. I hope that nothing else had it open (for writing) while your guest wa...
2008 Dec 02
0
Re: Problem on slow keystroke response - guest on Xen box
...e advise how. > TIA > > You need a partition or a disk to do it. (choose LVM type on fdisk) > Create phisical volumes (pvcreate) > Create volume group (vgcreate) > and create logical volumes (lvcreate) > > Then config xen file to use it (disk = [ ''phy:/dev/vgname/lvname, > hda1, w'' , > ''phy:/dev/vgname/swap,hda2,w'' ] > > Search LVM Howto for more info in lvm Sorry, maybe I haven''t made it clear on my last posting. On this Xen box I have NO partition using the entire HD. Is it possible repartition the HD without...
2008 Sep 17
1
Mounting a LVM partition from a linux live cd
I'm running CentOS 5.2, it uses LVM to manage the disks and we had a programmer do something (not sure what) then reboot the system. When it came up it kernel panicked. Luckily it's not production, it was their sandbox. But they didn't backup any of their files. I know the disks are fine because I was able to boot from a linux live cd and mount the /boot partition from the sda
2015 Oct 06
0
[PATCH 5/5] mllib: Replace various ad hoc string_* functions with String.*
..."readonly" <> -1 with G.Error _ -> false ) else false with Not_found -> false @@ -295,7 +295,7 @@ You can ignore this warning or change it to a hard failure using the List.iter ( fun vg -> if not (List.mem vg ignores) then ( - let lvname = string_random8 () in + let lvname = String.random8 () in let lvdev = "/dev/" ^ vg ^ "/" ^ lvname in let created = diff --git a/sparsify/in_place.ml b/sparsify/in_place.ml index 131f8b1..36100de 100644 --- a/sparsify/in_place.ml +++ b/sparsify/in_plac...