pvmove question
Hello
This is not any server in my office, just a virtual machine in my home that is helping me to go through RHCE certification. I have 2 disks (excluding sda1 + sda2 for RHEL installation), /dev/sdb and /dev/sdc 8G each, 1 vg and 1 lv. I have found that I can use pvmove /dev/sdb /dev/sdc cmd only when my lv size is less than 8G. So, if the size of lv is 16G and I want to move all of my data from sdb to sdc (target is to drop the pv sdb from vg), then I need to reduce the size of lv to less than 8G. My question is if my total data volume is 4G, then when reducing the size of the lv is it guaranteed that the data will remain intact? if no, then how this thing is accomplished in real world scenario? |
Hi,
Quote:
Quote:
Quote:
Evo2. |
Not clear about resizing the file system, I have only configured pv, vg and lv here. I have formatted the file system as ext4.
Could you please explain the procedure for ext4 file system? If the lv is 16G, then isn't it that the data in it can be anything upto 16G? Thanks in advance. BR//R |
Hi,
Quote:
Quote:
So the steps to remove /dev/sdb would be something like.. Code:
umount /mount/point/ There are *many* lvm tutorials that describe this sort of process. Have a search and feel free to post back if you have any more questions. Evo2. |
All times are GMT -5. The time now is 08:21 PM. |