I have created a LINUX machine with 2 disks. the 2nd disk is 100GB /wdata THIN provisioning. I stopped the VM and changed DISK02 to 200GB instead of a 100GB). when I do /proc/partitions I see /dev/sdb1 = 100GB and /dev/sdb = 200GB. when I run: "df -k I see:
/dev/mapper/storage-lvol0 - 99G 63G 32G 67% /wdata
what do I need to do in order to have a total of 200GB of /wdata partition?
df -h
enter code here
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_basecentos6-lv_root
29G 29G 0 100% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/sda1 485M 52M 408M 12% /boot
/dev/mapper/vg_basecentos6-LogVol02
6.3G 143M 5.8G 3% /logs
/dev/mapper/storage-lvol0
99G 63G 32G 67% /wdata
cat /proc/partitions
major minor #blocks name
8 0 41943040 sda
8 1 512000 sda1
8 2 41430016 sda2
8 16 209715200 sdb
8 17 104856223 sdb1
253 0 30720000 dm-0
253 1 4063232 dm-1
253 2 104853504 dm-2
253 3 6643712 dm-3
cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Mon Oct 29 11:16:02 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_basecentos6-lv_root / ext4 defaults 1 1
UUID=d1717ba0-0477-4588-9ee3-78ae4fb01366 /boot ext4 defaults 1 2
/dev/mapper/vg_basecentos6-LogVol02 /logs ext4 defaults 1 2
/dev/mapper/vg_basecentos6-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
/sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/storage/lvol0 /wdata ext4 defaults 0 0
Thanks! Dotan.
I'm making some assumptions here about the current state of your environment, but here goes. You have two options. You can extent the partition (/dev/sdb1), then extend the PV, then extend the LV, or you can create a new partition (/dev/sdb2), create a new PV, extend the VG, and extent the LV. Either way, you should use your favored partition manager (I use fdisk because I haven't bothered to learn parted) for the first part. I recommend the second option (I would find it safer if I were doing it). In that case, one you have the second partition created:
You haven't given enough details for an exact answer but the steps are
Don't forget to backup your data before any operation of this type
this is what I was looking for:
Thanks everyone!! Dotan.
I've answered this BEFORE, please take a look - it may need minor tweaks for you specific distro but it's a good start ok.