OVH Community, your new community space.

2TB disk space missing, how do I find it?


NeddySeagoon
23-09-2013, 20:21
RAID, at any level, is not a substitute for backups. Consider the following ...
rm -rf
removes from all of the drives in the raid set. Consider it gone for good, although in reality its only unlinked, unless you are using SSDs with the discard option.

If you put the system on raid1, then should also be on raid1. Most applications don't tolerate the lobotomy that goes with a failed swap space very well.

marks
23-09-2013, 11:28
RAID1 is important for uptime as well as for security. As it's been said here, it's very recommended.

Even though, you have several options to deal with partitioning layout when you reinstall the server in the manager:

OVH Manager >> your server >> Services >> Reinstall / Change OS

We recommend that, at least the system partition is RAID1. Afterwards, you can have your data partition on RAID0, but then backups are a must (well, depending on how important is your data to you, of course)

FrenchTart
23-09-2013, 09:29
Quote Originally Posted by Phixion
My time for what? Losing data that isn't important to me? BOO HOO!

If you choose to store important data on an Kimsufi or OVH server you are asking for trouble, pay for a professional storage solution.
All my important data is backed up elsewhere. However, losing the time it would take to set the server back up to the state it is in now would be annoying - most of us don't have infinite free time.

Phixion
22-09-2013, 23:09
My time for what? Losing data that isn't important to me? BOO HOO!

If you choose to store important data on an Kimsufi or OVH server you are asking for trouble, pay for a professional storage solution.

DigitalDaz
18-09-2013, 17:10
Quote Originally Posted by Phixion
I've used Soft RAID0 for years with OVH and never lost my data.
Then your time is coming

Gomjaba
18-09-2013, 15:54
Quote Originally Posted by Phixion
I've used Soft RAID0 for years with OVH and never lost my data.
So if you never had an accident - you won't need car insurance either ?

LinuxGam
13-09-2013, 18:41
My advice, if you are just worried about where the space went, 100% leave it as it is. If you need the space, then seriously consider the impact if one of the drives dies and you lose your server.

If you are running a server that needs to stay up, then RAID (even software) is a must. You obv would ideally have dual power supplies, dual routing etc.. however, when they break, you don't lose your OS/Data :-)

RAID is a must for a server that needs to stay up or holds data that needs to be available more than backups permit.

village_i_diot
13-09-2013, 17:48
I've never used raid so didn't realise that's why I couldn't see the additional drive, now I know then yes I plan to keep it as is although my data is backed up each day.

TheBritoid
13-09-2013, 15:41
Quote Originally Posted by Phixion
I've used Soft RAID0 for years with OVH and never lost my data.
Yes, but if one of your drives fails, you've lost everything. I'd rather not take the chance.

I only use Raid 0 if I am storing non-important but large data, but I back it up.

Phixion
13-09-2013, 14:34
I've used Soft RAID0 for years with OVH and never lost my data.

TheBritoid
13-09-2013, 13:06
Quote Originally Posted by village_i_diot
Sorry raid is new to me, are you saying the partition disk I can't see is what is used if the first disk fails so the server can keep running as is? if thats the case then I'll leave it as is.
Raid 1 is where your data is written to both drives. If one fails, you shouldn't loose any data.

It's better to have raid than no raid. If you don't need that extra 2TB of space, keep it as it is.

village_i_diot
13-09-2013, 11:45
Quote Originally Posted by cartwright118
It's setup on RAID1 by default. If you don't want redundancy and just want the full entire disk space then remove raid setup
Sorry raid is new to me, are you saying the partition disk I can't see is what is used if the first disk fails so the server can keep running as is? if thats the case then I'll leave it as is.

cartwright118
13-09-2013, 07:50
It's setup on RAID1 by default. If you don't want redundancy and just want the full entire disk space then remove raid setup

Phixion
12-09-2013, 20:52
You need to format something like this for RAID0:

"/" 10240M [RAID1] (this gives 10GB root partition, you may want more)
"/home" The rest [RAID0] (minus 1024 for swap)
"swap" 1024M

Tz-OVH
12-09-2013, 20:39
Yep, looks like a RAID1 setup.

daveyboy37
12-09-2013, 20:02
Im really not well up on Linux. But best guess is your system is configured as Raid 1.. You would need to reinstall for raid 0. Hopefully someone will come along and confirm!

village_i_diot
12-09-2013, 19:28
OK think I am getting somewhere, I installed parted and this is what is shows:

Code:
Model: ATA TOSHIBA DT01ACA2 (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size    File system     Name     Flags
 4      20.5kB  1049kB  1029kB                  primary  bios_grub
 1      2097kB  10.7GB  10.7GB  ext4            primary  raid
 2      10.7GB  2000GB  1989GB  ext4            primary  raid
 3      2000GB  2000GB  538MB   linux-swap(v1)  primary


Model: ATA TOSHIBA DT01ACA2 (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size    File system     Name     Flags
 4      20.5kB  1049kB  1029kB                  primary  bios_grub
 1      2097kB  10.7GB  10.7GB  ext4            primary  raid
 2      10.7GB  2000GB  1989GB  ext4            primary  raid
 3      2000GB  2000GB  538MB   linux-swap(v1)  primary


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

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


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

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

village_i_diot
12-09-2013, 19:04
I just used fdisk and that shows both hard drives but doesn't support GPT?


Code:
 fdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1      243202  1953514583+  ee  GPT
Partition 1 does not start on physical sector boundary.

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      243202  1953514583+  ee  GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/md2: 1989.1 GB, 1989118197760 bytes
2 heads, 4 sectors/track, 485624560 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md2 doesn't contain a valid partition table

Disk /dev/md1: 10.7 GB, 10737352704 bytes
2 heads, 4 sectors/track, 2621424 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md1 doesn't contain a valid partition table
now I am lost

village_i_diot
12-09-2013, 18:58
Sorry for the nooby question coming up, generally on a dedicated server I can do what I need and try to lean more as I go on. Anyway I got an mSP delivered at the weekend.

I just used the df -h command and noticed that I don't appear to have 2x2tb drives:

Filesystem Size Used Avail Use% Mounted on
/dev/md1 9.8G 913M 8.4G 10% /
tmpfs 16G 0 16G 0% /lib/init/rw
udev 10M 192K 9.9M 2% /dev
tmpfs 16G 0 16G 0% /dev/shm
/dev/md2 1.8T 4.6G 1.7T 1% /var

Is it just a case that it's there but needs mounting? if so could someone please advise on the commands I need to use?

I've got debian 6 with ISP config 3 installed, if that makes any difference.

Thanks