Hi guys, we are currently running a RHEL 5.5 server on as an ESX client. The 'drives' are set up using LVM.
I'm in the process of documenting the procedure for expanding the disks (instead of adding additional disks). The process seems to work fine except randomly it will fail on boot, the error being that the superblock is bad.
What it looks like is that there may be some confusion as to what type of partition is created when using fdisk. fstab mounts the partition as EXT3, but the superblock error describes it as EXT2. The disk is currently a single PV and LV which is why we are trying to expand rather than add extra disks.
After the process and reboot it will display the error:
Code:
fsck.ext3: No file or directory while trying to open /dev/ProntoLVM4/lv_backup
Then furthur:
Code:
The superblock could not be read or does not describe a correct ext2 filesystem.
The process I am following is (I'm using the GUI as these are non-Linux guys):
1. Shutdown server
2. Increase disk size through vSphere client
3. Start Pronto server
4. Log in as root
5. Start terminal session
6. fdisk /dev/sdd - fdisk on backup disk
7. ‘p’ – list partitions, confirm size is correct and only one partition
8. ‘d’ – delete partition, will automatically delete if only 1 partition
9. ‘n’ – new partition
10. ‘p’ – primary partition
11. ‘1’ – partition number 1
12. Press enter for first and last cylinder, to set default (which is the maximum size)
13. ‘w’ – write partition table
14. Restart server
15. Log in as root
16. Start terminal session
17. pvresize /dev/sdd1 – will fill partition with LVM physical volume
18. Load Logical Volume Manager in GUI (Start -> Administration -> Logical Volume Management)
19. Expand ProntoLVM4
20. Expand ProntoLVM4 logical view
21. Select lv_backup
22. Select ‘Edit Properties’
23. Click ‘Use Remaining’
24. Click OK
What is strange is that 3 out of 4 times this process will work flawlessly, then the 4th time it will result in the error! I'm kind of fumbling through this process as it was working perfectly for months and then now all of a sudden it doesn't work.
As always, thanks for your help!