Originally Posted by almcneill
Not sure about posting in this forum, as this kinda covers both hardware and software. So if this is in the wrong forum, I apologize in advance.
Setting the scenario
1. Linux server setup with say 4 hard drives (maxed out on drives), using LVM to create one large ext3 drive for storage on a network.
2. Each of the drives are lets say 100 GB each.
3. 2 months down the road, a new drive is purchased, its a 150 GB drive, I want to swap it out with one of the 100 GB drives (an overtime upgrade of drives as my finances allow).
1. I know that I cannot simply pull a drive out and swap it with the new one, I understand enough about LVM to know that that would "break" the volume, not to mention data loss. So, is there a solution to doing this transition upgrade of a drive without having to do a temporary "outside" storage unit for the data on the LVM.
You are right. The proper way to do this is to add the 150GB hdd to the VG and then do a pvmove. This will move the
PV blocks from the 100G disk you do not want to the 150GB. After this do a vgreduce which will remove the pv from the volume group. Now you are all set to throw out the 100G HDD. But yes, the procedure is different and not as you wanted
you wanted : buy 150GB -> throw 100G -> put 150 GB
whereas this : buy 150 GB -> add 150GB -> move the PV blocks -> throw away the 100G
2. Or, is there a different solution rather than using LVM, which would be more compatible to what I am looking to do?
I do not have this set up yet, I am gathering as much info as I can first, as to be able to set up a server that will operate properly.
Thanks in advance for any advice, Anthony
Since data is more precious, I am afraid there is no other safe method. But you can try RAID 5. It can recover 1disk crash. So you can simply remove the 100G disk and re-build they array [pains takingly long] and then add the 150G disk in the place of 100 GB disk. I am _not_ very sure (as I have not worked toomuch at an expert level in RAID) if you can replace the failed disk with a different capacity disk.