Has anyone tried converting a large B3 LVM system to ext4?
Posted: 26 Apr 2013, 17:01
I am a hoarder.
I can't seem to get rid of stuff. So I have a SATA port multiplier, and now 3x3TB WD Green disks attached to my B3. I have done some modifications. I have made the partitions aligned (as they are not out of the box). I have partitioned my disks in multiple partitions to have more PVs to play around with.
I got my latest S1 just the other day. It works very well after repartitioning and LVM trickery to get it all working. The wonders of having an external SATA port multiplier is that you can always attach another disk temporarily in order to have the space to arrange things the way you like. I can grow my file systems while they are on-line. Excellent.
Now regarding ext4:
Has anyone tried converting an existing large LVM system on a B3 to ext4 without losing data?
My main reason for wanting to do this is faster fsck.
I guess the boot-stick doesn't care about /dev/sda2 when you use it in rescue mode, but what if I had to reinstall the system (keeping /home)? Will it accept an ext4 /home?
The fact that you cannot use the boot/rescue-stick to check LVM volumes is a pain. Today I grew an ext3 file-system while it was on-line, and all seems fine, but I would still like to be able to do a proper off-line forced fsck every now and again. This currently takes many hours as it is ext3, and the procedure to do it is so tedious it's barely comprehensible:
1. create temporary home directories on /dev/sda1
2. copy needed stuff from your and admin's home directories to the temporary ones on /dev/sda1
3. disable services that will write to /home (dovecot etc) so you don't have to sync your temporary home back with the real one once you are done.
4. reboot with bootstick
5. mount /dev/sda1
6. create symlinks in /home on /dev/sda to point to your temporary home dirs
7. edit /etc/fstab on /dev/sda1 so it doesn't mount the home dirs from the LVM on the next boot
7. reboot normally
8. run the fsck on your now unmounted logical volumes
9. reboot with bootstick
10. reset everything
11. reboot normally
12. bite your finger-nails in anticipation
Sorry for rambling. To simplify:
1. Has anyone converted to ext4, and if so, how did it go?
2. Excito: Could we please have a boot-stick with a busybox that handles LVM2?
Many thanks!
/Cheeseboy
EDIT: Re-wrote most of it as it was gibberish, and also wrong
I can't seem to get rid of stuff. So I have a SATA port multiplier, and now 3x3TB WD Green disks attached to my B3. I have done some modifications. I have made the partitions aligned (as they are not out of the box). I have partitioned my disks in multiple partitions to have more PVs to play around with.
I got my latest S1 just the other day. It works very well after repartitioning and LVM trickery to get it all working. The wonders of having an external SATA port multiplier is that you can always attach another disk temporarily in order to have the space to arrange things the way you like. I can grow my file systems while they are on-line. Excellent.
Now regarding ext4:
Has anyone tried converting an existing large LVM system on a B3 to ext4 without losing data?
My main reason for wanting to do this is faster fsck.
I guess the boot-stick doesn't care about /dev/sda2 when you use it in rescue mode, but what if I had to reinstall the system (keeping /home)? Will it accept an ext4 /home?
The fact that you cannot use the boot/rescue-stick to check LVM volumes is a pain. Today I grew an ext3 file-system while it was on-line, and all seems fine, but I would still like to be able to do a proper off-line forced fsck every now and again. This currently takes many hours as it is ext3, and the procedure to do it is so tedious it's barely comprehensible:
1. create temporary home directories on /dev/sda1
2. copy needed stuff from your and admin's home directories to the temporary ones on /dev/sda1
3. disable services that will write to /home (dovecot etc) so you don't have to sync your temporary home back with the real one once you are done.
4. reboot with bootstick
5. mount /dev/sda1
6. create symlinks in /home on /dev/sda to point to your temporary home dirs
7. edit /etc/fstab on /dev/sda1 so it doesn't mount the home dirs from the LVM on the next boot
7. reboot normally
8. run the fsck on your now unmounted logical volumes
9. reboot with bootstick
10. reset everything
11. reboot normally
12. bite your finger-nails in anticipation
Sorry for rambling. To simplify:
1. Has anyone converted to ext4, and if so, how did it go?
2. Excito: Could we please have a boot-stick with a busybox that handles LVM2?
Many thanks!
/Cheeseboy
EDIT: Re-wrote most of it as it was gibberish, and also wrong