Opened 6 years ago

Closed 5 years ago

#1665 closed volunteer task (fixed)

Puma: Review partitioning and raid

Reported by: planetcruiser Owned by: jsfan
Priority: blocker Milestone: 0.8
Component: unknown Keywords:
Cc: globetrotter_tt

Description

I didn't touch the default settings regarding this. Hetzner might have done a good job, or not. I don't have too much experience with this stuff, so this needs a review.

Task:

  • Review the Hetzner default setup.

Clues:

Change History (7)

comment:1 Changed 6 years ago by planetcruiser

current setup:

meinhard@puma:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/md2             1016G  757M  964G   1% /
tmpfs                 7.9G     0  7.9G   0% /lib/init/rw
udev                  7.9G  164K  7.9G   1% /dev
tmpfs                 7.9G     0  7.9G   0% /dev/shm
/dev/md1              496M   38M  434M   8% /boot
/dev/md3              1.7T  196M  1.6T   1% /home

meinhard@puma:~$ cat /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md3 : active raid1 sda4[0] sdb4[1]
      1822442815 blocks super 1.2 [2/2] [UU]

md2 : active raid1 sda3[0] sdb3[1]
      1073740664 blocks super 1.2 [2/2] [UU]

md1 : active raid1 sda2[0] sdb2[1]
      524276 blocks super 1.2 [2/2] [UU]

md0 : active (auto-read-only) raid1 sda1[0] sdb1[1]
      33553336 blocks super 1.2 [2/2] [UU]
      	resync=PENDING


meinhard@puma:~$ sudo parted -l /dev/sda
Model: ATA ST3000DM001-9YN1 (scsi)
Disk /dev/sda: 3001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size    File system  Name  Flags
 5      1049kB  2097kB  1049kB                     bios_grub
 1      2097kB  34.4GB  34.4GB                     raid
 2      34.4GB  34.9GB  537MB                      raid
 3      34.9GB  1134GB  1100GB                     raid
 4      1134GB  3001GB  1866GB                     raid


Model: ATA ST3000DM001-9YN1 (scsi)
Disk /dev/sdb: 3001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size    File system  Name  Flags
 5      1049kB  2097kB  1049kB                     bios_grub
 1      2097kB  34.4GB  34.4GB                     raid
 2      34.4GB  34.9GB  537MB                      raid
 3      34.9GB  1134GB  1100GB                     raid
 4      1134GB  3001GB  1866GB                     raid


Model: Linux Software RAID Array (md)
Disk /dev/md0: 34.4GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop

Number  Start  End     Size    File system     Flags
 1      0.00B  34.4GB  34.4GB  linux-swap(v1)


Model: Linux Software RAID Array (md)
Disk /dev/md1: 537MB
Sector size (logical/physical): 512B/4096B
Partition Table: loop

Number  Start  End    Size   File system  Flags
 1      0.00B  537MB  537MB  ext3


Model: Linux Software RAID Array (md)
Disk /dev/md2: 1100GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop

Number  Start  End     Size    File system  Flags
 1      0.00B  1100GB  1100GB  ext4


Model: Linux Software RAID Array (md)
Disk /dev/md3: 1866GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop

Number  Start  End     Size    File system  Flags
 1      0.00B  1866GB  1866GB  ext4





meinhard@puma:~$ sudo parted -l /dev/sdb
Model: ATA ST3000DM001-9YN1 (scsi)
Disk /dev/sda: 3001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size    File system  Name  Flags
 5      1049kB  2097kB  1049kB                     bios_grub
 1      2097kB  34.4GB  34.4GB                     raid
 2      34.4GB  34.9GB  537MB                      raid
 3      34.9GB  1134GB  1100GB                     raid
 4      1134GB  3001GB  1866GB                     raid


Model: ATA ST3000DM001-9YN1 (scsi)
Disk /dev/sdb: 3001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size    File system  Name  Flags
 5      1049kB  2097kB  1049kB                     bios_grub
 1      2097kB  34.4GB  34.4GB                     raid
 2      34.4GB  34.9GB  537MB                      raid
 3      34.9GB  1134GB  1100GB                     raid
 4      1134GB  3001GB  1866GB                     raid


Model: Linux Software RAID Array (md)
Disk /dev/md0: 34.4GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop

Number  Start  End     Size    File system     Flags
 1      0.00B  34.4GB  34.4GB  linux-swap(v1)


Model: Linux Software RAID Array (md)
Disk /dev/md1: 537MB
Sector size (logical/physical): 512B/4096B
Partition Table: loop

Number  Start  End    Size   File system  Flags
 1      0.00B  537MB  537MB  ext3


Model: Linux Software RAID Array (md)
Disk /dev/md2: 1100GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop

Number  Start  End     Size    File system  Flags
 1      0.00B  1100GB  1100GB  ext4


Model: Linux Software RAID Array (md)
Disk /dev/md3: 1866GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop

Number  Start  End     Size    File system  Flags
 1      0.00B  1866GB  1866GB  ext4

comment:2 Changed 6 years ago by planetcruiser

  • Owner set to jsfan
  • Status changed from new to assigned

could you have a look here, too?

comment:3 follow-up: Changed 6 years ago by jsfan

The 1T for / seems a bit of a waste. The system currently occupies only 1G and most likely will never occupy much more.

I lean towards keeping /tmp separate at least because it allows me to set different flags on that (e.g. noexec). However, that is very much a matter of taste. Also, because I've been burnt before, I don't put all my eggs in one basket any more and split /home into several partitions. I then equally distribute my VM images across those partitions. If ever one of my file systems crosses the Jordan, I only lose one or two virtual machines but not all of them.

My current setup (with XEN) looks like this:

/dev/md2               10G  373M  9.1G   4% /
tmpfs                 7.9G     0  7.9G   0% /lib/init/rw
udev                  7.1G  1.3M  7.1G   1% /dev
tmpfs                 7.9G     0  7.9G   0% /dev/shm
/dev/md1              496M   46M  425M  10% /boot
/dev/md3               20G   44M   19G   1% /tmp
/dev/md4               10G  553M  8.9G   6% /usr
/dev/md5               10G  664M  8.8G   7% /var
/dev/md6               20G  178M   19G   1% /var/log
/dev/md7              600G   95G  506G  16% /home/xen1
/dev/md8              600G   79G  522G  14% /home/xen2
/dev/md9              600G   79G  522G  14% /home/xen3
/dev/md10             600G  362G  239G  61% /home/xen5
/dev/md11             292G   92G  201G  32% /home/xen4

I think I'm still generous but I only use about 70G for my host system and leave everything else for the VMs.

EDIT: A setup can be achieved by just using Hetzner's installimage with a suitable configuration.

Last edited 6 years ago by jsfan (previous) (diff)

comment:4 in reply to: ↑ 3 Changed 6 years ago by planetcruiser

  • Cc globetrotter_tt added

Replying to jsfan:

EDIT: A setup can be achieved by just using Hetzner's installimage with a suitable configuration.

does this mean we have to re-install the server with a new image? if so, please contact matthias (globetrotter_tt) to pass along the robot user data to you, or to set up an admin account for you.

regarding partitions: please post a suggested action plan to the admins group and if no one objects, make it so. you have my blessing. :-P

i assume the raid setup is fine then?

comment:5 Changed 6 years ago by jsfan

Yes, it requires booting into the rescue system which can only be achieved via the robot. I'll contact Matthias about the details.

comment:6 Changed 6 years ago by globetrotter_tt

My username in BeWelcome is "matthias"

comment:7 Changed 5 years ago by planetcruiser

  • Resolution set to fixed
  • Status changed from assigned to closed

i'm not sure if the proposal by jsfan was exactly implemented like this in the end, but this ticket is definitively done. :)

Note: See TracTickets for help on using tickets.