Читаем Вторая жизнь старых компьютеров полностью

1 192.168.0.1 1

2 192.168.0.100 10


Первым идет openMosix node-number узла в указанном диапазоне, второй строкой – IP-адрес или имя, описанное в файле /etc/hosts, и третьей – количество узлов в этом диапазоне. В данном примере нашему серверу присвоен openMosix node-number 1, а десяти узлам в диапазоне 192.168.0.100-192.168.0.109, номера 2-11. Если бы IP-ад- реса шли подряд, то можно было бы обойтись и одной строкой. После правки файла делаем его доступным и другим узлам.


# ср /etc/openmosix.map /opt/ltsp/i386/etc/


Туда же копируем и бинарные файлы openmosix-tools.


# ср /sbin/setpe /opt/ltsp/i386/sbin/

# ср /bin/mosrun /opt/ltsp/i386/bin/

# ср /bin/mosmon /opt/ltsp/i386/bin/

# ср /bin/mosctl /opt/Itsp/i386/bin/

# cp /bin/migrate /opt/ltsp/i386/bin/

# cp /etc/rc.d/init.d/openmosix /qpt/ltsp/i386/etc/rc.openmosix


И запускаем openMosix:


# /etc/init.d/openmosix start


После перезагрузки slave-узлов работу можно проконтролировать при помощи утилиты mosctl, введя номер нужного:


# mosctl status 2


А в файле /etc/in ittab рекомендуется строку:


si::sysinit:/etc/rc.d/rc.sysinit


заменить на:


si::sysinit:/bin/mosrun -h /etc/rc.d/rc.sysinit


Чтобы избежать проблем при использовании сервиса SSH в файле /etc/rc.d/iпit.d/sshd в функции start(), добавьте следующую линию:

test -f /proc/$$/lock amp; amp; echo 0 > /proc/$$/lock


Вот и все. Остается пожелать успехов, и я надеюсь, эта статья кому-то поможет.


Кроме документации на сайтах проектов LTSP и openMosix советую просмотреть еще и следующие документы:


1. Колисниченко Д. Загрузка по сети. – //журнал «Системный администратор», №9(10), 2003 г. – 47-49 с.

2. LTSP + openMosix: Integration How-To: http://home.onestop.net/jjensen/ltsp-om5r3c.html

3. openMosix and Diskless Nodes: http://www.gentoo.org/doc/en/openmosix-howto.xml


Перейти на страницу:

Похожие книги

C++ Primer Plus
C++ Primer Plus

C++ Primer Plus is a carefully crafted, complete tutorial on one of the most significant and widely used programming languages today. An accessible and easy-to-use self-study guide, this book is appropriate for both serious students of programming as well as developers already proficient in other languages.The sixth edition of C++ Primer Plus has been updated and expanded to cover the latest developments in C++, including a detailed look at the new C++11 standard.Author and educator Stephen Prata has created an introduction to C++ that is instructive, clear, and insightful. Fundamental programming concepts are explained along with details of the C++ language. Many short, practical examples illustrate just one or two concepts at a time, encouraging readers to master new topics by immediately putting them to use.Review questions and programming exercises at the end of each chapter help readers zero in on the most critical information and digest the most difficult concepts.In C++ Primer Plus, you'll find depth, breadth, and a variety of teaching techniques and tools to enhance your learning:• A new detailed chapter on the changes and additional capabilities introduced in the C++11 standard• Complete, integrated discussion of both basic C language and additional C++ features• Clear guidance about when and why to use a feature• Hands-on learning with concise and simple examples that develop your understanding a concept or two at a time• Hundreds of practical sample programs• Review questions and programming exercises at the end of each chapter to test your understanding• Coverage of generic C++ gives you the greatest possible flexibility• Teaches the ISO standard, including discussions of templates, the Standard Template Library, the string class, exceptions, RTTI, and namespaces

Стивен Прата

Программирование, программы, базы данных
Разработка приложений в среде Linux. Второе издание
Разработка приложений в среде Linux. Второе издание

Книга известных профессионалов в области разработки коммерческих приложений в Linux представляет СЃРѕР±РѕР№ отличный справочник для широкого круга программистов в Linux, а также тех разработчиков на языке С, которые перешли в среду Linux из РґСЂСѓРіРёС… операционных систем. РџРѕРґСЂРѕР±но рассматриваются концепции, лежащие в основе процесса создания системных приложений, а также разнообразные доступные инструменты и библиотеки. Среди рассматриваемых в книге вопросов можно выделить анализ особенностей применения лицензий GNU, использование СЃРІРѕР±одно распространяемых компиляторов и библиотек, системное программирование для Linux, а также написание и отладка собственных переносимых библиотек. Р

Майкл К. Джонсон , Эрик В. Троан

Программирование, программы, базы данных