Or is this a bad idea?

Reading through !selfhosted, I think I have found a new hobby. I have an old laptop HP ProBook 450 G5 4WU81ES.

16gb ram, solid CPU, shitty integrated gpu, and only 256gb ssd. Barely enough for system and some apps. Battery life maybe 30min unplugged so I take it as an UPS.

So the question again is, can I have permanently plugged external hdd to use as extension for this purpose?

JustEnoughDucks
link
fedilink
English
3
edit-2
1Y

I did this for my first year and a bit for self hosting. It worked great! Really no problems with a USB 3.0 HDD station.

I actually used an HP probook 450 G1 IIRC.

LordChaos82
link
fedilink
01Y

@JustEnoughDucks I started with this setup. Proxmox on my laptop with an external 1 TB USB 3 drive added to proxmox as storage. It would work great for getting started and learning. I/O via USB 3 could be an issue so make sure you don’t use this setup for intensive Read/Write operations. But use it as a lab setup and it would work great.
PS: Once I moved to bigger servers, I still use my laptop proxmox for testing services before I roll them out to my production servers.

JustEnoughDucks
link
fedilink
1
edit-2
1Y

The difference between them is surprisingly small. 35% maximum.

I have my new server still using the USB3.0 hub while I am designing and printing a case for my main PC.

Flexense did an analysis on 1-4 threads of file copy and other things.

Performance only started to really degrade at 3 thread count medium and large files.

File searching, file delete, duplication searching, disk space analysis, etc… were all almost identical.

Though it pretty much negates all read benefit of ZFS mirrors and raid1, it is definitely fine for a home server with only 1-2 media streams. I definitely have run into IO bottlenecks, but not frequently. Though that was without a GPU and direct streaming. With storing everything in AV1 and h265 with an AV1 enabled GPU like the Arc380, actually it will be able to handle the IO needs, though I still am upgrading to sata

Is the internal drive replaceable? That might be a better option. Alternatively, 256gb is more than enough to install Linux (or proxmox) and serve a lot of useful apps. You only need a ton of space if you are planning on storing media.

@Moonrise2473@feddit.it
link
fedilink
English
71Y

Can do but be aware that the drive will eventually die, so backup backup backup

terribleplan
link
fedilink
English
31Y

There are certainly better ways to do it, but lots of people use external disks. I would put anything that needs speed on the SSD (so like a database or whatever) and anything else (media, isos, etc) on the external drive. It’s probably also worth thinking about a backup strategy, at least for anything there that matters.

@xavier666@lemm.ee
link
fedilink
English
41Y

It will work really well, but the difference between a laptop and a server is operational longevity. Laptops are meant to work for workloads for a few hours, whereas dedicated servers can work 24/7 for years sometimes because of how they are made and tested.

However, if the intensity of workload is light, a laptop can also run for a few months provided temps are well maintained. My tiny RPi ran for a few months till I manually shut it down.

Also, backups and backups.

@GustavoM@lemmy.world
link
fedilink
English
4
edit-2
1Y

removed by mod

@xavier666@lemm.ee
link
fedilink
English
21Y

I love my Pi too much to let it run for so long 🥰

Plus I don’t have a power backup; uptime is only as good as my power (which goes out once every 4 months)

∟⊔⊤∦∣≶
link
fedilink
English
11Y

Just for fun I thought I’d check the uptime of the server I’m logged into at work. 1391 days.

@cbeams@lemmy.world
link
fedilink
English
21Y

That sounds like a security nightmare.

∟⊔⊤∦∣≶
link
fedilink
English
31Y

well, yes and no. It’s definitely behind on updates, but it’s running linux and isn’t web facing. Security is outsourced to the firewalls/IDS etc. If someone is trying to hack it, they’re already past the firewalls so we’re fucked by default even if the server is 100% secure.

@f1g4@feddit.it
link
fedilink
English
11Y

Sounds fun. But as others have said, plan a backup strategy like in the cloud or something.

poVoq
link
fedilink
English
121Y

USB to SATA connectors as found in these external hard-drive enclosures are often very bad. You can try to get some better ones and pry the hard-drive out of the case, or if that Laptop still has a DVD drive, you can get an adapter to replace it with a hard-drive that connects directly via SATA.

@J_C___@lemmy.place
link
fedilink
English
11Y

Shucking is the way

@SJ_Zero@lemmy.fbxl.net
link
fedilink
English
31Y

I’m using a name brand external HDD for mass storage. Still using the internal ssd for everything else but I’m not interested in the cost of a multi-terrabyte SSD to do it internally.

Just have a backup plan in place because drives fail.

apigban
link
fedilink
English
1
edit-2
1Y

That’s the setup when I started.

I picked up an x230 with a broken screen and used it as a hypervisor (proxmox 5.4).

I used whatever resources available to me at the time and learned weird networking (passing through nics for a router on a stick configuration).

I used that x230 until the mobo gave up.

I have some basic stuff (VPN gateway, a web server etc) on my X230 as well

@SheeEttin@lemmy.world
link
fedilink
English
61Y

256 GB is plenty. I start most of my servers at 30 GB and add space as necessary. Less for Linux.

@baked_tea@sh.itjust.works
creator
link
fedilink
English
11Y

I guess it shows what a noob am I, planning to use Windows lmao. Never used Linux tbh but I get it in these cases

@Red5@lemmygrad.ml
link
fedilink
English
11Y

Highly recommend installing Proxmox or just a server version of a distribution. Much lower OS resource requirement means more available for everything else.

In the end, you can chuck Windows back on if the experiment doesn’t work out.

@constantokra@lemmy.one
link
fedilink
English
21Y

Choosing linux is way more important than choosing the right server. Linux and docker compose is the way to go. With that, if you want to migrate to a new server it’s super easy.

@flathead@quex.cc
link
fedilink
English
31Y

Go for it. the specs on the laptop are good enough to run plenty of stuff as a server. As long as the drive can be mounted you should be good. Your backups should be somewhere else.

Max-P
link
fedilink
English
31Y

No reason why it wouldn’t work! Worst case the drive is pretty slow, but you do have an internal SSD so you can put OS and databases on the SSD and use the external drive for bulk storage.

I had a RPi set up that way for a couple years, worked fine as a simple NAS and Kodi for the TV!

2xsaiko
link
fedilink
English
161Y

People host stuff on Raspberry Pis, so why not a laptop. One limit you might have is USB speeds, especially if you want to add more drives.

@baked_tea@sh.itjust.works
creator
link
fedilink
English
11Y

Yeah I know laptop itself is not a problem just wondering about stability of USB connected disk. Got some good replies already I will give it a shot

@rarkgrames@lemmy.world
link
fedilink
English
11Y

I don’t think it would be a problem. I have 4 usb drives hooked up to a Mac mini M1 that I use for coding and running Plex. Very rarely do I have any issues.

@darkan15@lemmy.world
link
fedilink
English
61Y

Just so you know it is possible, you can probably disable sleep or other things the laptop does by default when you close the lid, so you can leave it running while the lid is closed.

Did this with my old Dell laptop (that is running Debian server now), and now I access it over ssh while the lid is closed and very rarely open the lid and do stuff on the actual device directly.

@AbidanYre@lemmy.world
link
fedilink
English
21Y

Some laptops get pretty overheated when you do that.

2xsaiko
link
fedilink
English
51Y

That’s a MacBook in the image, you can’t do that on macOS. :^)

@valkyre09@vlemmy.net
link
fedilink
English
11Y

I took the screen off my old dell laptop and turned it into a mini blade server with built in UPS. It ran for years. I have no doubt the battery was knackered by the end.

The only reason I replaced it with a Mac Mini 2012 was because it didn’t support usb3 and 4K video saturated the usb bandwidth.

Now my 2012 runs Ubuntu server + docker for those interested :)

Yes you can: sudo pmset disablesleep 1

2xsaiko
link
fedilink
English
11Y

Ah, okay! I remember this being discussed when I saw this image posted for the first time, and that’s where I got that info from.

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 126 users / day
  • 421 users / week
  • 1.16K users / month
  • 3.85K users / 6 months
  • 1 subscriber
  • 3.68K Posts
  • 74.2K Comments
  • Modlog