mungecursor
09-24-2009, 04:14 PM
I've inherited some sys-admin duties and am not sure if I'm seeing this correct.
There is a virtual machine running vmware, and on it are three virtual machines, one of them being an archive server. The file system on the archive server uses lvm on an xfs file system.
#uname -a
2.6.9-78.0.22.plus.c4 #1 Mon May 11 07:03:27 EDT 2009 i686 athlon i-386 GNU/Linux
on the vmware server
#lvdisplay
<snip>
--- Logical volume ---
LV Name /dev/vg1/leo.mirror
VG Name vg1
LV UUID WWgdNf-dYhR-fy7K-zauM-uK9A-aKuJ-E4Gcxv
LV Write Access read/write
LV Status available
# open 1
LV Size 600.00 GB
Current LE 9600
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:9
</snip>
# fdisk -l
Disk /dev/sda: 1999.9 GB, 1999978364928 bytes
255 heads, 63 sectors/track, 243150 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 195313 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 25 49 195313 83 Linux
Partition 2 does not end on cylinder boundary.
/dev/sda3 49 6128 48828125+ 8e Linux LVM
/dev/sda4 6128 243151 1903885056+ 8e Linux LVM
on the virtual machine
#mount
<snip>
/dev/sdb1 on /mnt/md0 type xfs (rw)
</snip>
#fdisk -l
<snip>
Device Boot Start End Blocks Id System
/dev/sdb1 1 78325 629145531 83 Linux
</snip>
My question is this, is the "xfs_grow" command used on the virtual machine on a live mount point? Example, assuming I want to add all the remaining space to the mount point /mnt/md0 on the virtual machine:
#xfs_grow /mnt/md0
I'm VERY green when it comes to virtual machines, and the data is easily worth seven figures (isn't downsizing fun), I would like to make sure before going forward.
tia
There is a virtual machine running vmware, and on it are three virtual machines, one of them being an archive server. The file system on the archive server uses lvm on an xfs file system.
#uname -a
2.6.9-78.0.22.plus.c4 #1 Mon May 11 07:03:27 EDT 2009 i686 athlon i-386 GNU/Linux
on the vmware server
#lvdisplay
<snip>
--- Logical volume ---
LV Name /dev/vg1/leo.mirror
VG Name vg1
LV UUID WWgdNf-dYhR-fy7K-zauM-uK9A-aKuJ-E4Gcxv
LV Write Access read/write
LV Status available
# open 1
LV Size 600.00 GB
Current LE 9600
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:9
</snip>
# fdisk -l
Disk /dev/sda: 1999.9 GB, 1999978364928 bytes
255 heads, 63 sectors/track, 243150 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 195313 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 25 49 195313 83 Linux
Partition 2 does not end on cylinder boundary.
/dev/sda3 49 6128 48828125+ 8e Linux LVM
/dev/sda4 6128 243151 1903885056+ 8e Linux LVM
on the virtual machine
#mount
<snip>
/dev/sdb1 on /mnt/md0 type xfs (rw)
</snip>
#fdisk -l
<snip>
Device Boot Start End Blocks Id System
/dev/sdb1 1 78325 629145531 83 Linux
</snip>
My question is this, is the "xfs_grow" command used on the virtual machine on a live mount point? Example, assuming I want to add all the remaining space to the mount point /mnt/md0 on the virtual machine:
#xfs_grow /mnt/md0
I'm VERY green when it comes to virtual machines, and the data is easily worth seven figures (isn't downsizing fun), I would like to make sure before going forward.
tia