Add other drives to C2L server

#1

I tried support and whom ever is answering just keeps repeating the same answer. This is my dilemma (I’m sure the answer is easy)

I have a C2L server which can have up tp 1TB of hard drive space. I managed to mount one of the additional drive (400gb), however, I’m not able to the other 3 drives (600gb) I followed these instructions ( https://www.scaleway.com/en/docs/how-to-format-additional-volumes/) but they only show you how to mount an additional drive - not multiple drives.

when I use the command lsblk this is what I see

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 238.5G 0 disk
└─sda1 8:1 0 238.5G 0 part
nbd0 43:0 0 186.3G 0 disk
├─nbd0p15 43:15 0 100M 0 part
└─nbd0p1 43:1 0 186.2G 0 part /
nbd1 43:32 0 186.3G 0 disk
nbd2 43:64 0 186.3G 0 disk
nbd3 43:96 0 186.3G 0 disk
nbd4 43:128 0 186.3G 0 disk

but when I check with df -h the other 3 drives don’t show up
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 24M 3.2G 1% /run
/dev/nbd0p1 184G 768M 175G 1% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 16G 0 16G 0% /sys/fs/cgroup
tmpfs 3.2G 0 3.2G 0% /run/user/0

any and all help is appreciated
regards
krs

#2

Did you format and mount the additional drives?

#3

yes like I said I followed the instructions from the link I listed I can see the drives “mounted” but I can’t access them…

lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nbd3 43:96 0 186.3G 0 disk
nbd1 43:32 0 186.3G 0 disk
nbd4 43:128 0 186.3G 0 disk /mnt/data
nbd2 43:64 0 186.3G 0 disk
nbd0 43:0 0 186.3G 0 disk
├─nbd0p15 43:15 0 100M 0 part
└─nbd0p1 43:1 0 186.2G 0 part /
sda 8:0 0 238.5G 0 disk
└─sda1 8:1 0 238.5G 0 part

df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 24M 3.2G 1% /run
/dev/nbd0p1 184G 825M 175G 1% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/nbd4 184G 61M 174G 1% /mnt/data
tmpfs 3.2G 0 3.2G 0% /run/user/0

#4

Aren’t nbd1 nbd2 and nbd3 your additional drives?

#5

yes, but do you see them mounted ??? I don’t … I only see two 200gb drives

df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 24M 3.2G 1% /run
/dev/nbd0p1 184G 825M 175G 1% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/nbd4 184G 61M 174G 1% /mnt/data
tmpfs 3.2G 0 3.2G 0% /run/user/0

#6

Hence my original question. You need to format and mount the drives.

#7

It’s in the tutorial: https://www.scaleway.com/en/docs/how-to-format-additional-volumes/#-Formatting-Additional-Volumes

#8

I formatted the drives already - I just need help mounting them… this link only shows you how to mount ONE drive I have 3 others that are not showing up - do I add them to this file?

[Unit]
Description=Mount Volume at boot

[Mount]
What=UUID="6191325f-0bde-4476-8465-176b2d183d60"
Where=/mnt/data
Type=ext4
Options=defaults

[Install]
WantedBy=multi-user.target

but how?

#9
mkfs -t ext4 /dev/nbd1
mkdir -p /mnt/data1
mount /dev/vdb /mnt/dat1

mkfs -t ext4 /dev/nbd2
mkdir -p /mnt/data2
mount /dev/vdb /mnt/dat2

mkfs -t ext4 /dev/nbd3
mkdir -p /mnt/data3
mount /dev/vdb /mnt/dat3

Something like this? And then if you want to mount them at boot time you can use /etc/fstab or duplicate /etc/systemd/system/mnt-data.mount :slight_smile:

1 Like
#10

yes! this is what I was talking about, when you duplicate the mnt-data.mount wouldn’t it overwrite the file? or do I need to name it differently?

#11

this is my fstab file

Generated by Scaleway’s build system

PARTUUID=582d45ec-d723-446a-97e4-adb39d4768da / ext4 rw,relatime 0 1
PARTUUID=9bbd8ef4-7994-4967-9945-60b4860f7c5b /boot/efi vfat rw,nofail,nofail,nofail,nofail,nofail,nofail,relatime,errors=remount-ro,nofail 0 2

How do I add the information below to the fstab file above…

lkid

/dev/nbd0p1: LABEL=“root” UUID=“49a78ebf-b16c-4818-8803-2fcc90f0775b” TYPE=“ext4” PARTLABEL=“root” PARTUUID=“582d45ec-d723-446a-97e4-adb39d4768da”

/dev/nbd0p15: UUID=“2BD6-3860” TYPE=“vfat” PARTLABEL=“efisystem” PARTUUID=“9bbd8ef4-7994-4967-9945-60b4860f7c5b”

/dev/nbd1: UUID=“e20bf135-d1e7-4d8f-9675-93991a20f610” TYPE=“ext4”
/dev/nbd2: UUID=“96540abd-887b-4c23-9557-1442fb9e3614” TYPE=“ext4”
/dev/nbd3: UUID=“bf14c85d-2b29-47e2-9f72-d7d1acd0c083” TYPE=“ext4”
/dev/nbd4: UUID=“dbc21f58-5e8c-4d52-935a-de45162b5aab” TYPE=“ext4”
/dev/sda1: UUID=“80feece1-1913-4382-b684-741fe583049c” TYPE=“ext4”
/dev/nbd0: PTTYPE=“gpt”