OVH Community, your new community space.

Default MG SSD partitioning


wminside
15-04-2010, 16:08
Quote Originally Posted by Myatu
/tmpfs is in RAM, so not to worry about that when it comes to partitioning.

And no, I wouldn't use RAID-0 on the root partition - on a production server, that's asking for trouble. Rather have 70-something GB available and have it safeguarded against failures, than 140-something GB and lose it all when one fails. But that's just my thought
Thanks Myatu!

Myatu
15-04-2010, 16:07
/tmpfs is in RAM, so not to worry about that when it comes to partitioning.

And no, I wouldn't use RAID-0 on the root partition - on a production server, that's asking for trouble. Rather have 70-something GB available and have it safeguarded against failures, than 140-something GB and lose it all when one fails. But that's just my thought

wminside
15-04-2010, 15:58
I don't think you can save a lot of space by putting the system on raid 0 since the system itself doesn't take that much space.

Do you think I should change the tmpfs to the default OVH value after the re-install?

IainK
15-04-2010, 15:43
You want to use raid-1 on the root directory? You could change / to be raid-0 and have a lot more space if you wished. The tmpfs is just space used on the root, as /tmp is on /.

You can change the size of tmpfs in configuration files after installation if you wish.

wminside
15-04-2010, 15:32
Quote Originally Posted by IainK
You will not see the swap with df -h and tmpfs doesn't use the swap space. It's simply a virtual fs that's setup for the /tmp folder to provide some security.

Personally; I don't see why you would ever need any swap space on an MG considering how much RAM that mother has. I would re-install without swap at all, or at very least no more than 1GB swap per drive.


What do you think about this partitioning? I don't really use the /home directory so that's why I wanted to do a re-install.

Will tmpfs still be the same size as before?

IainK
15-04-2010, 15:05
You will not see the swap with df -h and tmpfs doesn't use the swap space. It's simply a virtual fs that's setup for the /tmp folder to provide some security.

Personally; I don't see why you would ever need any swap space on an MG considering how much RAM that mother has. I would re-install without swap at all, or at very least no more than 1GB swap per drive.

wminside
15-04-2010, 14:53
I just got an MG SSD and I definitely want to reinstall setting my custom partitioning but just in case I mess up it would be nice to know.

I'm asking because fdisk -l and df-h it's not clear enough for me. It says it has 1 Gb of swap (top) but df -h indicates

Filesystem Size Used Avail Use% Mounted on
/dev/md1 5.0G 966M 3.8G 21% /
/dev/md2 69G 180M 65G 1% /home
tmpfs 7.9G 0 7.9G 0% /dev/shm
I used to think tmpfs was somewhat related to the swap space

fdisk -l
Code:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         653     5242880+  fd  Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sda2             653        9664    72378368   fd  Linux raid autodetect
/dev/sda3            9664        9729      525920   82  Linux swap / Solaris

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         653     5242880+  fd  Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sdb2             653        9664    72378368   fd  Linux raid autodetect
/dev/sdb3            9664        9729      525920   82  Linux swap / Solaris

Disk /dev/md2: 74.1 GB, 74115383296 bytes
2 heads, 4 sectors/track, 18094576 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

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

Disk /dev/md1: 5368 MB, 5368643584 bytes
2 heads, 4 sectors/track, 1310704 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

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