Partitioning with SSD and SATA?

Discussion in 'Installation, Update and Configuration' started by BenKet, Feb 5, 2012.

  1. BenKet

    BenKet New Member

    Messages:
    16
    I have a new server with a 60 GB SSD and 2* 1 TB SATA with RAID 1.

    How should I get the standard partitions configured for a Virtuozzo install for multiple containers? In particular I was thinking of requesting my friend and technical support to put a /vz partition on the SSD drive as well as a /vz partition on the SATA. Does anyone know if this would work, i.e. would I be able to manage containers on both SSD and SATA from the same Virtuozzo HW node? (In this scenario I would also put the / root partition on the SATA, and the swap, I think I have read, would be good on the SSD?)

    Any help appreciated.
  2. MakcyD

    MakcyD Parallels Team

    Messages:
    66
    Hi BenKet

    Actually there is no difference for Parallels Virtuozzo Containers in managing containers placed on different physical drives, while /vz is placed over LVM volume or RAID.

    I would suggest to place /vz on a RAID device and the rest on SSD drive.
    Having swap on SSD drive will boost the performance a bit, since there is no performance degradation caused by HDD head jumping back and forth on regular HDDs.

    Also it is possible to place separate containers (with highest disk i\o activity, e.g. with database servers) on SSD drive, e.g., assuming you have /vz2 placed on SSD drive and you need to move CT 3147 to that drive:
    Code:
    [18:22:06][~]# mkdir /vz2
    [18:22:27][~]# mkdir /vz2/private
    [18:22:40][~]# mkdir /vz2/root
    [18:22:43][~]# rsync -au /vz/private/3147 /vz2/private/
    [18:23:18][~]# ls -la /vz2/private/
    total 12
    drwxr-xr-x 3 root root 4096 Feb  6 18:23 .
    drwxr-xr-x 4 root root 4096 Feb  6 18:22 ..
    drwxr-xr-x 7 root root 4096 Feb  6 17:02 3147
    [18:24:19][~]# cd /etc/vz/conf/
    [18:24:21][/etc/vz/conf]# rm 3147.conf
    [18:24:31][/etc/vz/conf]# ln -s /vz2/private/3147/ve.conf 3147.conf
    [18:25:28][/etc/vz/conf]# vim /vz2/private/3147/ve.conf
    [18:27:11][/etc/vz/conf]# grep -E "ROOT|PRIVATE" /vz2/private/3147/ve.conf
    VE_ROOT="/vz2/root/$VEID"
    VE_PRIVATE="/vz2/private/$VEID"
    [18:28:02][/etc/vz/conf]# vzctl start 3147
    Starting the Container ...
    Container is unmounted
    Container is mounted
    Setting permissions 20002 dev 0x7d00
    Adding offline management to Container(1): 8443 4643
    Adding IP addresses: 10.20.30.40
    Starting the Container ...
    [18:28:05][/etc/vz/conf]#
    
    Hope it helps,
  3. thinhd

    thinhd New Member

    Messages:
    2
    I also have done
    thank you
  4. XuânL

    XuânL New Member

    Messages:
    9
    I would suggest to place /vz on a RAID device and the rest on SSD drive.
    Having swap on SSD drive will boost the performance a bit, since there is no performance degradation caused by HDD head jumping back and forth on regular HDDs.

Share This Page