Adding new HDD to system?

Dear con-forumists,

I know that this hasn’t neccessarily to do with UCS but rather with Linux I though I wanted to put the question here since I learned that UCS has kind of their own packages.

I searched the forum and couldn’t find a fitting thread so far. But maybe I’m only blind?

So… here’s what I want to do. I have set up my UCS a long time ago and it runs more or less flawlessly. Back then I only activated one of 3 HDDs of my server just to play around a bit. So now it would be the right time to make the 2 other HDD available to the system at all and I am unsure of how doing it correctly without breaking my system.
I think I used a LVM-environment back then but am unsure if I really did that.

So I wll be grateful for every hint given here.
Thanks in advance

Cheerio
Jimmy

NB: btw - I’m just running 4.4-2 errata319 (and am about to update that in a bit) - if you’d need more informations, please don’t hesitate and let me know.

NB(2): now i’m on 4.4-2 errata350

any hints here, anyone?

Hi @JimmyKater,

I just write to encourage you to do it in any linux way - at least debian/ubuntu way.
Most probably you will have LVM setup, but check: # lvs
There are always a lot of options you may want to consider - but I would probably proceed like this:

  • reboot with attached drives -> create PVs from the drives
  • extend volume group
  • extend logical volume
  • extend filesystem on lv

This is not a how-to - just an encouraging post to proceed…
Bernd

1 Like

Dear @lebernd,

thanks for your encouragement… I read through some homepages, already. But there still are some insecurites with me… Like I dunno if it would make sense to make another volume group and if yes then would all volume groups be accessible …
But more or less I’d now know what to do… Thanks to you pointing that out so clearly.

Of course there is LVM installed. a # lvswould give me this:

LV     VG     Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  home   vg_ucs -wi-ao---- 857,61g                                                    
  root   vg_ucs -wi-ao----  23,28g                                                    
  swap_1 vg_ucs -wi-ao----   3,99g                                                    
  tmp    vg_ucs -wi-ao----  16,35g                                                    
  var    vg_ucs -wi-ao----  29,80g

next step would be attaching drives… and… they are already attached (built-in). and so creating PVs from the drives would be the next step… but how? a # ls -la /dev/disk/by-path would give me this:

insgesamt 0
drwxr-xr-x 2 root root 260 Nov 19 12:32 .
drwxr-xr-x 7 root root 140 Nov 19 12:32 ..
lrwxrwxrwx 1 root root   9 Nov 19 12:32 pci-0000:00:1f.2-ata-1 -> ../../sda
lrwxrwxrwx 1 root root  10 Nov 19 12:32 pci-0000:00:1f.2-ata-1-part1 -> ../../sda1
lrwxrwxrwx 1 root root  10 Nov 19 12:32 pci-0000:00:1f.2-ata-1-part2 -> ../../sda2
lrwxrwxrwx 1 root root  10 Nov 19 12:32 pci-0000:00:1f.2-ata-1-part5 -> ../../sda5
lrwxrwxrwx 1 root root   9 Nov 19 12:32 pci-0000:00:1f.2-ata-2 -> ../../sdb
lrwxrwxrwx 1 root root  10 Nov 19 12:32 pci-0000:00:1f.2-ata-2-part1 -> ../../sdb1
lrwxrwxrwx 1 root root   9 Nov 19 12:32 pci-0000:00:1f.2-ata-3 -> ../../sdc
lrwxrwxrwx 1 root root  10 Nov 19 12:32 pci-0000:00:1f.2-ata-3-part1 -> ../../sdc1
lrwxrwxrwx 1 root root   9 Nov 19 12:32 pci-0000:00:1f.2-ata-4 -> ../../sdd
lrwxrwxrwx 1 root root  10 Nov 19 12:32 pci-0000:00:1f.2-ata-4-part1 -> ../../sdd1
lrwxrwxrwx 1 root root   9 Nov 19 12:32 pci-0000:00:1f.2-ata-5 -> ../../sr0

so from where do I know which ones are the both new HDDs without de-plugging them?

# sudo lvs gives me

VG     #PV #LV #SN Attr   VSize   VFree
vg_ucs   1   5   0 wz--n- 931,03g    0

so I bet I should use this one, right?

Enough for now - More questions to come after being successful with those steps.

Cheerio
Jimmy

Probably not… One case could be if you want a new LVM with mirrored devices (https://www.thomas-krenn.com/de/wiki/LVM_Mirrored_Volume). Actually I think they have a rather good doku on LVM stuff there.

try # pvs - from your output above one could suggest there are even 3 unused drives? But also check always # cat /etc/fstab

This is probably the output of # vgs ?! So yes, if you decide against a new volume group.

Mastodon