Hi Vinod,

I will make my problem more clear.

The following is the test server env of our node.

we could check the disk mount information

Production: [qa@hd2dz] ~/mesos-0.13.0-install/sbin$ df -h
/dev/sda1              97G    9.1G   83G  10% /
/dev/sda2             262G   55G  194G  22% /data
tmpfs                  24G     0   24G   0% /dev/shm

as you can see, sda2 has 194GB free disk. and sda1 has 83GB free disk.

I install mesos in /home/qa/mesos-0.13.0-install/ which is mounted on sda1.

I want to use sda2 as the disk resource provider for mesos, so I start
mesos slave with the following command, but the slave says that disk
resource is nearly 79GB. I think the salve may still use sda1 as the
resource provider.

Production: [qa@hd2dz] ~/mesos-0.13.0-install/sbin$ sudo
/home/qa/mesos-0.13.0-install/sbin/mesos-slave --master=
hd1dz.prod.mediav.com:5050 --log_dir=/home/qa/mesos13-log *
--work_dir=/data/mesos*
I0418 14:37:03.862222 28568 main.cpp:124] Creating "process" isolator
I0418 14:37:03.862884 28568 main.cpp:132] Build: 2013-04-08 15:19:24 by qa
I0418 14:37:03.862918 28568 main.cpp:133] Starting Mesos slave
I0418 14:37:03.863998 28584 slave.cpp:203] Slave started on 1)@
10.47.6.16:53430
I0418 14:37:03.864047 28584 slave.cpp:204] Slave resources: cpus=16;
mem=47266; ports=[31000-32000]; *disk=79669*
I0418 14:37:03.866093 28569 process_isolator.cpp:298] Recovering isolator
I0418 14:37:03.866139 28584 slave.cpp:453] New master detected at
[email protected]:5050
I0418 14:37:03.866444 28571 status_update_manager.cpp:132] New master
detected at [email protected]:5050
I0418 14:37:03.866453 28584 slave.cpp:436] Successfully attached file
'/home/qa/mesos13-log/mesos-slave.INFO'
I0418 14:37:03.866523 28584 slave.cpp:377] Finished recovery
I0418 14:37:03.867637 28572 slave.cpp:487] Registered with master; given
slave ID 201304171529-252063498-5050-18683-10
I0418 14:38:03.865223 28581 slave.cpp:1811] Current disk usage 9.36%. Max
allowed age: 6.34days
I0418 14:39:03.866211 28576 slave.cpp:1811] Current disk usage 9.36%. Max
allowed age: 6.34days


Guodong


On Thu, Apr 18, 2013 at 11:37 AM, Vinod Kone <[email protected]> wrote:

> Hi Guodong,
>
> Could you explain a bit about what's not working with "--work_dir" flag? If
> you mount a directory (say /mesos) in /data1 and give "--workdir=/mesos", I
> would presume it would work?
>
> If it doesn't can you send out some output?
>
> Thanks,
> Vinod
>
>
>
> On Wed, Apr 17, 2013 at 8:25 PM, 王国栋 <[email protected]> wrote:
>
> > Hi,
> >
> > It seems that I can not set the disk device which provide disk resource
> in
> > slave.
> > Here is my situation.
> >
> > I install mesos in /user/mesos/ on sda, but sda is the disk for OS, so
> the
> > disk size is small. When I start the slave, mesos find the disk resource
> > from sda.
> > But our machine have several large size disk which is mounted on /data1
> > etc.
> >
> > So I am wondering how to set mesos slave to use /data1 as the disk
> resource
> > provider. I tried --work_dir flag, but it doesn't work on our node.
> >
> > Thanks.
> >
> >
> > Guodong
> >
>

Reply via email to