Its highly recommended that proxmox not be installed onto a usb key type device, because proxmox will wear it out due to its active writing to its root file system.
This is somewhat problematic in devices like the HP DL380p (at least G8) as one cannot boot off the normal internal hard drives if its in HBA mode (as one would want for proxmox). It would seem a sane solution would be to be able to install proxmox to a usb key, while at the same time creating a zfs pool with the hard drives connected in HBA mode and for proxmox to automatically create a dataset on the pool for its active writing.
From what I can tell this isn't possible today (though perhaps I missed something). Is their a reason such functionality wouldn't be desired?
The other option (which I've done with ubuntu) is to install /boot and grub on the usb, while the root file system is on the hard drives attached to the now hba mode adapter. Is it possible to do such a setup in proxmox installation today, or will one have to jump through a bunch of hoops?
i.e. something like (off the top of my head)
1) install normally onto hba drives
2) reboot back into installation media but go into debug mode (perhaps can do this without rebooting)
3) mount the the zfs dataset where the root file system is (perhaps unneeded if dont need to reboot)
4) create a file system on one's internal usb (or whatever usb you want to boot off of). preferably something that can easily fstab mount via UUID
5) edit fstab to mount said usb as /boot
5) copy /boot from root fs to usb file system
6) install grub onto usb.
the idea would be then that the machine would boot off the usb, but would only use that for kernel/initrd while it would mount the root file system normally as if it could boot directly off of it. as the usb is also being mounted at /boot kernel/initrd updates should work as normal. as the usb is only being used for /boot, it shouldn't suffer from excessive writes.
am I off base? do people do it this way? is there a better way (perhaps lwhat i I described above where root is on usb, but heavy write area is stored on hba based zfs?)
This is somewhat problematic in devices like the HP DL380p (at least G8) as one cannot boot off the normal internal hard drives if its in HBA mode (as one would want for proxmox). It would seem a sane solution would be to be able to install proxmox to a usb key, while at the same time creating a zfs pool with the hard drives connected in HBA mode and for proxmox to automatically create a dataset on the pool for its active writing.
From what I can tell this isn't possible today (though perhaps I missed something). Is their a reason such functionality wouldn't be desired?
The other option (which I've done with ubuntu) is to install /boot and grub on the usb, while the root file system is on the hard drives attached to the now hba mode adapter. Is it possible to do such a setup in proxmox installation today, or will one have to jump through a bunch of hoops?
i.e. something like (off the top of my head)
1) install normally onto hba drives
2) reboot back into installation media but go into debug mode (perhaps can do this without rebooting)
3) mount the the zfs dataset where the root file system is (perhaps unneeded if dont need to reboot)
4) create a file system on one's internal usb (or whatever usb you want to boot off of). preferably something that can easily fstab mount via UUID
5) edit fstab to mount said usb as /boot
5) copy /boot from root fs to usb file system
6) install grub onto usb.
the idea would be then that the machine would boot off the usb, but would only use that for kernel/initrd while it would mount the root file system normally as if it could boot directly off of it. as the usb is also being mounted at /boot kernel/initrd updates should work as normal. as the usb is only being used for /boot, it shouldn't suffer from excessive writes.
am I off base? do people do it this way? is there a better way (perhaps lwhat i I described above where root is on usb, but heavy write area is stored on hba based zfs?)