Re: Recommendation on partition sizes

2018-11-06 Thread Michael Stone
On Tue, Nov 06, 2018 at 09:09:16AM -0500, Stefan Monnier wrote: I was reading about swap recently and fell upon (like a sword) this remark from 2005 from Andrew Morton: Create the swapfile when the filesystem is young and empty, it'll be nice and contiguous. Once created the kernel will nev

Re: Recommendation on partition sizes

2018-11-06 Thread Stefan Monnier
> I was reading about swap recently and fell upon (like a sword) this > remark from 2005 from Andrew Morton: > > Create the swapfile when the filesystem is young and empty, it'll be > nice and contiguous. Once created the kernel will never add or > remove blocks. He's talking about swap *fi

Re: Recommendation on partition sizes

2018-11-05 Thread Pascal Hambourg
Le 05/11/2018 à 00:10, Stefan Monnier a écrit : [ Sadly --resizefs doesn't work on a swap partition, AFAICT. ] Because there is no swap resizing tool. There is no "online" swap resizing tool, but `mkswap` should work to resize a (currently unused) swap. mkswap does not even qualify as an of

Re: Recommendation on partition sizes

2018-11-05 Thread Pascal Hambourg
Le 05/11/2018 à 09:11, Rick Thomas a écrit : On Nov 4, 2018, at 1:19 AM, Pascal Hambourg wrote: Le 04/11/2018 à 05:45, Andy Smith a écrit : So, if I were you, I'd be doing something like: - 512MiB /boot - 2 GiB swap, or 16GiB if you intend to use it as a hibernate device - Rest as LVM volum

Re: Recommendation on partition sizes

2018-11-05 Thread Michael Stone
On Mon, Nov 05, 2018 at 08:34:41AM +, Curt wrote: I was reading about swap recently and fell upon (like a sword) this remark from 2005 from Andrew Morton: Create the swapfile when the filesystem is young and empty, it'll be nice and contiguous. Once created the kernel will never add or r

Re: Recommendation on partition sizes

2018-11-05 Thread Curt
On 2018-11-04, Pascal Hambourg wrote: > Le 04/11/2018 à 20:56, Stefan Monnier a écrit : I use LVM volumes for my swap space, which is yet another option, one that can be grown and shrunk easily, online. >>> You can resize a logical volume online, but AFAIK you cannot resize a swap >>> ar

Re: Recommendation on partition sizes

2018-11-05 Thread Rick Thomas
> On Nov 4, 2018, at 1:19 AM, Pascal Hambourg wrote: > > Le 04/11/2018 à 05:45, Andy Smith a écrit : >> You're probably going to receive as many different opinions as there >> are different people responding, but my recommendation in nearly any >> situation is to have a reasonable /boot and sw

Re: Recommendation on partition sizes

2018-11-04 Thread Stefan Monnier
>> [ Sadly --resizefs doesn't work on a swap partition, AFAICT. ] > Because there is no swap resizing tool. There is no "online" swap resizing tool, but `mkswap` should work to resize a (currently unused) swap. Stefan

Re: Recommendation on partition sizes

2018-11-04 Thread Pascal Hambourg
Le 04/11/2018 à 20:56, Stefan Monnier a écrit : I use LVM volumes for my swap space, which is yet another option, one that can be grown and shrunk easily, online. You can resize a logical volume online, but AFAIK you cannot resize a swap area online (while in use) ; Indeed, in the general case

Re: Recommendation on partition sizes

2018-11-04 Thread Stefan Monnier
>> I use LVM volumes for my swap space, which is yet another option, one >> that can be grown and shrunk easily, online. > You can resize a logical volume online, but AFAIK you cannot resize a swap > area online (while in use) ; Indeed, in the general case you'll need to do it like: lvcreate

Re: Recommendation on partition sizes

2018-11-04 Thread Michael Stone
On Sun, Nov 04, 2018 at 10:45:04AM -0500, Stefan Monnier wrote: /swap, encrypted, 16GB (same as RAM) Hugely overkill. You do not need for your swap to be as large as your RAM unless you are intending to hibernate to disk. If you are intending to do that, fair enough, but if not, that's probably

Re: Recommendation on partition sizes

2018-11-04 Thread Pascal Hambourg
Le 04/11/2018 à 16:45, Stefan Monnier a écrit : Andy Smith writes: Seems excessive. Without service-specific data or /var, my servers generally use under 2GiB for /, so dedicating 40GiB to it is likely to be wasteful. IMO on a server setup service specific data should be stored in a separat

Re: Recommendation on partition sizes

2018-11-04 Thread Stefan Monnier
Andy Smith writes: I definitely stand by your recommendation of LVM and most of what you said, but you seem to assume a "server" context, whereas we're talking about a laptop, so there are a few differences: > Seems excessive. Without service-specific data or /var, my servers > generally use und

Re: Recommendation on partition sizes

2018-11-04 Thread Pascal Hambourg
Le 04/11/2018 à 14:43, Andy Smith a écrit : On Sun, Nov 04, 2018 at 02:31:14PM +0100, Pascal Hambourg wrote: Le 04/11/2018 à 13:53, Andy Smith a écrit : On Sun, Nov 04, 2018 at 10:19:59AM +0100, Pascal Hambourg wrote: Le 04/11/2018 à 05:45, Andy Smith a écrit : Why don't you include the swap

Re: Recommendation on partition sizes

2018-11-04 Thread Michael Stone
On Sun, Nov 04, 2018 at 03:20:11AM +, D&P Dimov wrote: Considering that I will be installing Debian 9.5 Stable on a new Dell laptop with 512 GB SSD and 16 GB RAM, and intend to also run Windows 10 as a virtual machine from the /home partition (so it doesn't get affected during kernel updates

Re: Recommendation on partition sizes

2018-11-04 Thread Andy Smith
Hello, On Sun, Nov 04, 2018 at 02:31:14PM +0100, Pascal Hambourg wrote: > Le 04/11/2018 à 13:53, Andy Smith a écrit : > > > >On Sun, Nov 04, 2018 at 10:19:59AM +0100, Pascal Hambourg wrote: > >>Le 04/11/2018 à 05:45, Andy Smith a écrit : > >>Why don't you include the swap in LVM ? > > > >I don't s

Re: Recommendation on partition sizes

2018-11-04 Thread Pascal Hambourg
Le 04/11/2018 à 13:53, Andy Smith a écrit : On Sun, Nov 04, 2018 at 10:19:59AM +0100, Pascal Hambourg wrote: Le 04/11/2018 à 05:45, Andy Smith a écrit : Why don't you include the swap in LVM ? I don't see the point as it will never change in size. Why not ? You could decide that you don't n

Re: Recommendation on partition sizes

2018-11-04 Thread Andy Smith
Hello, On Sun, Nov 04, 2018 at 10:19:59AM +0100, Pascal Hambourg wrote: > Le 04/11/2018 à 05:45, Andy Smith a écrit : > Why don't you include the swap in LVM ? I don't see the point as it will never change in size. But in the case where encryption is used, it would have to be inside the encrypte

Re: Recommendation on partition sizes

2018-11-04 Thread Pascal Hambourg
Le 04/11/2018 à 04:20, D&P Dimov a écrit : Considering that I will be installing Debian 9.5 Stable on a new Dell laptop with 512 GB SSD and 16 GB RAM, and intend to also run Windows 10 as a virtual machine from the /home partition (so it doesn't get affected during kernel updates and upgrades)

Re: Recommendation on partition sizes

2018-11-04 Thread Pascal Hambourg
Le 04/11/2018 à 05:45, Andy Smith a écrit : You're probably going to receive as many different opinions as there are different people responding, but my recommendation in nearly any situation is to have a reasonable /boot and swap and then the rest of the space inside an LVM volume group. (...)

Re: Recommendation on partition sizes

2018-11-04 Thread David Christensen
On 11/3/18 8:20 PM, D&P Dimov wrote: Considering that I will be installing Debian 9.5 Stable on a new Dell laptop with 512 GB SSD and 16 GB RAM, Dell Service Tag? and intend to also run Windows 10 as a virtual machine from the /home partition (so it doesn't get affected during kernel update

Re: Recommendation on partition sizes

2018-11-03 Thread Andy Smith
Hi, On Sun, Nov 04, 2018 at 03:20:11AM +, D&P Dimov wrote: > does this seem like an adequate space allocation: You're probably going to receive as many different opinions as there are different people responding, but my recommendation in nearly any situation is to have a reasonable /boot and