Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] How to configure esmond to store future data to specific location

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] How to configure esmond to store future data to specific location


Chronological Thread 
  • From: Andrew Lake <>
  • To: perfsonar-user <>, Hyojoon Kim <>
  • Subject: Re: [perfsonar-user] How to configure esmond to store future data to specific location
  • Date: Mon, 9 Apr 2018 14:19:44 -0400
  • Ironport-phdr: 9a23:py2cZhW0wlnxmpGcm7/gzItq79fV8LGtZVwlr6E/grcLSJyIuqrYbBeDt8tkgFKBZ4jH8fUM07OQ7/i7HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba98IRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KptVRTmijoINyQh/W/XiMNwgqVVrx2vqRJ83oDafp2aOeFkca/BZ94XX3BMUtpTWiFHH4iyb5EPD+0EPetAs4T9oUYBrQGgCgiiGejhzCVHhnzo0qYn1OkuCwfG0xEgHt8VrnvUt8/5NKEMXuCp1aTFyyjIYf1R2Tf48ofIcxYhrOmRUrJxfsrRyFUvGBnBjlWXtYPqISma1uIXv2eH6OpgUPqji3Y5pAFrrDiv3cAsio/TiYIP0FzE8zt2wJotKdKlUkF7fcSrEIBMty6AOIp6WN8tQ2ZtuCs817YIuoa7cTAXxJg5xBPTcfKKf5KH7x7+TuqcIyp0iGp7dL6jgxu+60utx+3mWsWqzVpHrTBJn9vSun0Lyhfd8NKISuFn8UekwTuP1x7c6uVDIU0sm6rUNZEszqQ0lpUItUTPBCD2mELojKOOd0Uk/Pan6/j/b7n7uJORNJV4hw/kPqkhh8CzG+Y1PhUWU2ie4+u81bnj/UPjQLVNi/07irPWsJbHKsUbvaO2HRRV3pwl6xmhEzeqyM4YkmUfLFJZZBKHiJDkO0nQL/DiA/e/mFOskDFxyPDcJ7HhH47NIWbZkLr6ebZ96lVcyBYozdxB/Z5UC7cBIO7tVU/rstzXEAM5PxKuz+n5Fdp9y9BWZWXaGqKDPrjVt1aSo/80LvPEMJcYojjmLP4s/bvzlnIjsV4bYaSz25YLMja1EukwZw25cH3uhdAHWUQLu0JqTuvtjl6qSSRSYX2/Q6U6oDw3FdT1I53EQ9WEhrCb0TjzOpRVaygSA1aAAF/lbMOCVutaO3HaGdNojjFRDevpcIQmzxz77AI=

Hi,

I’ve done the steps below a number of times to move cassandra to a different partition on the same host. Basically it’s just a move of the data directory to the new partition and creating a symlink from the old location to the new location. It has the advantage that you don't have to update any config files and it seems to just work. Below is an example that moves the data to a directory called /data/cassandra, but it can be any location on the new partition:

/etc/init.d/cassandra stop
mv /var/lib/cassandra /data/cassandra
ln -s /data/cassandra /var/lib/cassandra
/etc/init.d/cassandra start

You probably don't need to worry about postgresql, cassandra is usually the primary disk user since it stores the data and postgresql is the much smaller metadata.   

Thanks,
Andy


On April 9, 2018 at 2:01:00 PM, Hyojoon Kim () wrote:

Hello, 

It seems my MA machine is running out of disk space, and “df -h” clearly shows that (root “/" is 99% full).

Filesystem            Size  Used Avail Use% Mounted on
lv_root                50G   46G  675M  99% /
lv_data               238G  4.5G  222G   2% /data

I have a more space in “/data”. So I am thinking of (1) migrating all existing data to this new location, and also (2) configure perfSONAR/esmond to store future data to this new location. For (1), I have found this link, and I will probably use instructions in “Migrating Data” to move existing data to some place in “/data” (http://docs.perfsonar.net/multi_ma_backups.html). 

However, I am not sure how to do (2). I have found some instructions for each Cassandra and PostgreSQL, but I’m not sure if this is the right way. Is there an esmond configuration I should touch instead? 

(btw, I cannot find "/etc/postgresql/9.5/main/postgresql.conf” in my MA machine.)

Thanks,
Joon




Archive powered by MHonArc 2.6.19.

Top of Page