Creating OpenSolaris 2009.06 repository pkg

Square

Процедура настройки репозитория состоит из следующих этапов:
— Получение ISO-образа с репозиторием OpenSolaris
— Подготовка файловой системы
— Копирование содержимого репозитория из образа
— Настройка сервера через сервисы
— Настройка клиента и проверка работоспособности сервера
— Обновление пакетов и исправление контрольных сумм
— Окончательное тестирование
Далее рассмотрим, что нужно сделать на каждом этапе.
Получение ISO-образа с репозиторием OpenSolaris
Итак для настройки репозитория нам понадобится образ содержащий пакеты репозитория
его можно скачать, например на genunix.org или sun.com, а точнее так:
# wget ftp://osol.arhipkin.com/pub/osol-repo-0906-full.iso
Репозиторий можно скачать в виде 2-ух образов, которые помещаются на DVD-диск объемом
4,7 Гб, либо в виде одного образа размером около 7,2 Гб. Приведенные выше ссылки
указывают на репозиторий в единственном образе. Впрочем, версию в двух образах можно
найти рядом.
Подготовка файловой системы
Создадим отдельную файловую систему ZFS для того, что бы разместить на ней
репозиторий. Отдельная файловая систем а ZFS для репозитория дает нам следующие
преимущества:
l Достигается лучшая производительность
l Возможность установки индивидуальных параметров для файловой системы, таких
как сжатие и обновление времени доступа
l Создание снапшотов и бэкапов файловой системы с репозиторием
Для экономии дискового пространства применим сжатие(опция compression), а для
увеличения быстродействия отключим обновление времени доступа(опция atime).
Естественно, что все команды здесь и далее должны выполняться с правами
суперпользователя. Создаем:
# zfs create -o compression=on -o atime=off rpool/repo
Теперь когда у нас есть файловая система для репозитория и собственно сами данные в
образе, нужно скопировать данные из образа на жесткий диск.
Копирование содержимого репозитория из образа
Для копирования данных нужно смонтировать образ репозитория, и затем скопировать все
данные в, подготовленное нами на предыдущем шаге, место:
# mount -F hsfs $(lofiadm -a /downloads/osol-repo-0906-full.iso) /mnt
# rsync -aP /mnt/repo /rpool/repo
Обратите внимание: отсутствие слэшей в конце путей принципиально (для получения
подробностей обращайтесь к man rsync.). После того, как репозиторий скопирован образ
можно отмонтировать:
# umount /mnt
# lofiadm -d /dev/lofi/1
В последней строке возможна другая цифра в зависимости от подключенных на данный
момент устройств. Итак, репозиторий получен и скопирован переходим к настройке сервиса.
Настройка сервера через сервисы
Теперь нам необходимо настроить сервис обслуживающий репозиторий, его исполняемый
файл находиться в /usr/lib и называется pkg.depotd (подробнее смотрите man pkg.depotd).
Сначала необходимо указать корневой каталог нашего репозитория, который мы подготовили
ранее:
# svccfg -s pkg/server setprop pkg/inst_root=/rpool/repo/repo
Опционально можно указать порт (по умолчанию 80). Установим его значение равным 10000:
# svccfg -s pkg/server setprop pkg/port=10000
Копируем конфигурационный файл и указываем путь к нему для сервиса:
# cp -p /rpool/repo/repo/cfg_cache /rpool/repo/
# svccfg -s pkg/server setprop pkg/cfg_file=/rpool/repo/cfg_cache
Далее правим конфигурационный файл:
# vi /rpool/repo/cfg_cache
Нужно поменять значение параметра origins и указать адрес репозитория, на доступное по
сети имя, например http://sunadm.spb.su:10000. Необязательно, но можно поменять некоторые
другие параметры и добавить туда например название вашей организации.
Далее можно проверить правильно ли мы изменили настойки:
# svcadm refresh application/pkg/server
# svcprop pkg/server
И посмотреть в выводе последней команды внесены ли наши изменения. Если все в порядке
запускаем сервис:
# svcadm restart application/pkg/server
# svcadm enable application/pkg/server
На этом настройка репозитория закончена. Далее мы настроим клиента на использование
нашего репозитория и проверим его работоспособность, затем обновим репозиторий и
проведем окончательную проверку.
Настройка клиента и проверка работоспособности сервера
Клиент может использовать наш репозиторий либо как основной репозиторий, либо как
зеркало репозитория pkg.opensolaris.org. При использовании нашего репозитория, как зеркала
мы теряем автономность. В этом случае клиент производит поиск и другие операции с
метаданными используя основной сервер pkg.opensolaris.org, при установке пакета, если он
присутствует на нашем зеркале он скачивается с него. При недоступном основном сервере
наша система не будет работать. При использовании нашего репозитория как основного, все
взаимодействие производиться только с ним и наша система обретет автономность. Но в
таком случае, если наш репозиторий не обновлен нам не будут доступны последние версии
пакетов.

Comment

59 Replies to “Creating OpenSolaris 2009.06 repository pkg”

  1. I’m just commenting to let you be aware of of the exceptional discovery my cousin’s child enjoyed going through your blog. She discovered a wide variety of details, most notably how it is like to have a very effective coaching heart to get many more effortlessly fully understand certain extremely tough matters. You actually did more than my desires. I appreciate you for displaying such great, healthy, educational and also cool guidance on that topic to Evelyn.

  2. I needed to draft you that little bit of observation so as to say thanks once again for your magnificent pointers you’ve shared on this site. This has been simply tremendously open-handed with you to present unreservedly what most people would’ve sold for an electronic book to help with making some money on their own, precisely seeing that you might well have tried it in the event you wanted. Those techniques in addition worked to become a great way to realize that someone else have the same passion similar to my very own to see somewhat more with reference to this problem. I know there are some more pleasurable situations up front for people who scan through your website.

  3. Needed to send you this very small word to finally thank you so much yet again for the extraordinary ideas you’ve discussed at this time. It has been certainly incredibly generous of people like you to allow extensively all that a lot of folks could possibly have distributed as an e-book in order to make some cash for their own end, chiefly considering the fact that you could have done it if you considered necessary. The good ideas also acted as the easy way to be sure that most people have a similar dream just like mine to find out a lot more in respect of this condition. I’m certain there are lots of more enjoyable moments ahead for individuals that examine your blog.

  4. I am commenting to let you be aware of of the extraordinary discovery my cousin’s daughter enjoyed going through your blog. She discovered lots of issues, most notably how it is like to have a very effective giving heart to have many others effortlessly gain knowledge of certain extremely tough matters. You really did more than my desires. Many thanks for displaying the helpful, healthy, educational and also easy thoughts on the topic to Gloria.

  5. I am commenting to let you know of the fabulous encounter my cousin’s daughter experienced reading your site. She even learned many issues, not to mention what it’s like to have a wonderful giving mindset to have many people just grasp chosen grueling subject areas. You really exceeded our expectations. Many thanks for distributing the informative, healthy, educational and as well as easy thoughts on the topic to Jane.

  6. My wife and i were so relieved when Michael managed to finish up his studies via the precious recommendations he obtained using your web site. It is now and again perplexing to simply happen to be offering things which often some people might have been trying to sell. We remember we now have you to thank for this. The type of illustrations you made, the straightforward website navigation, the relationships your site make it easier to promote — it is mostly spectacular, and it is letting our son in addition to us recognize that this subject matter is pleasurable, which is certainly truly serious. Thanks for the whole thing!

  7. I enjoy you because of all your efforts on this site. Ellie enjoys doing internet research and it’s easy to see why. All of us hear all concerning the compelling means you deliver good information by means of the blog and as well cause contribution from other people about this concept plus my daughter is actually being taught a lot. Enjoy the remaining portion of the new year. You’re the one carrying out a first class job.

  8. I am just writing to make you understand what a outstanding experience my wife’s girl obtained using your web site. She noticed so many pieces, which included what it is like to possess an excellent helping nature to let other people with ease learn specific specialized things. You truly surpassed people’s expected results. Thank you for producing these precious, trusted, informative and in addition fun tips about this topic to Lizeth.

  9. My spouse and i have been really lucky that Jordan managed to finish off his research through your precious recommendations he had through the web pages. It is now and again perplexing to just find yourself handing out solutions which people today may have been selling. Therefore we know we need the writer to give thanks to for that. The most important illustrations you have made, the simple web site navigation, the relationships you will help to instill — it’s got most powerful, and it’s really leading our son in addition to the family reason why the situation is fun, which is really pressing. Thank you for the whole lot!

  10. Thanks for your whole work on this website. My mum takes pleasure in working on research and it is simple to grasp why. We notice all relating to the powerful ways you render very useful tips and tricks via your website and therefore strongly encourage response from website visitors on this theme while our own simple princess is without a doubt understanding so much. Take pleasure in the rest of the year. Your performing a very good job.

  11. Excellent blog here! Also your web site loads up
    very fast! What web host are you using? Can I get your affiliate link to your host?
    I wish my website loaded up as fast as yours lol

  12. Hey this is kind of of off topic but I was wondering if blogs use WYSIWYG editors or if
    you have to manually code with HTML. I’m starting a blog soon but have no coding expertise so I wanted
    to get advice from someone with experience. Any help would be enormously
    appreciated!

    My webpage carslot88

  13. With havin so much content do you ever run into any problems of plagorism or copyright violation? My site has
    a lot of completely unique content I’ve either written myself or outsourced but it looks
    like a lot of it is popping it up all over the internet without my permission. Do you know any ways to help prevent content from being ripped off?
    I’d definitely appreciate it.

    my blog; Green Earth CBD Gummies

  14. I’ve been exploring for a little for any high-quality articles or blog
    posts on this kind of space . Exploring in Yahoo I at last
    stumbled upon this website. Reading this information So i’m satisfied to exhibit that I have a very good uncanny feeling I found out exactly
    what I needed. I such a lot without a doubt will make sure to do not overlook this web site
    and provides it a look regularly.

  15. Wow, marvelous blog structure! How lengthy have you ever been blogging for?
    you made running a blog look easy. The entire glance of your web site is
    great, let alone the content!

    Also visit my web blog Solvolt

  16. you are actually a good webmaster. The site loading pace is amazing.
    It kind of feels that you are doing any distinctive trick.
    In addition, The contents are masterwork. you’ve done a great task
    on this matter!

  17. Hi, i think that i saw you visited my blog so i came to go
    back the prefer?.I am attempting to find issues to enhance
    my web site!I guess its good enough to use some of your ideas!!

  18. My partner and i still can not quite think that I could often be one of those reading through the important
    tips found on this blog. My family and I are sincerely thankful for the generosity and for providing me the chance to
    pursue our chosen profession path. Thanks for the important information I
    acquired from your website.

    Also visit my web site KetoBHB Plus Review

  19. I am commenting to let you know of the nice discovery my wife’s girl obtained going
    through the blog. She discovered a lot of issues, which included how it is like to possess a
    great teaching character to have most people very easily gain knowledge of various problematic subject
    areas. You actually did more than people’s expected results.
    Thanks for providing those great, trustworthy, explanatory and even fun thoughts on your topic to Julie.

    Also visit my website; Cool Air Portable AC

  20. Great ? I should definitely pronounce, impressed with your site.

    I had no trouble navigating through all the tabs and related
    information ended up being truly easy to do to access. I recently
    found what I hoped for before you know it in the least.

    Quite unusual. Is likely to appreciate it for those who add forums or something, web site theme
    . a tones way for your client to communicate.
    Nice task.

    Have a look at my site … Virectin Loaded Review

  21. Undeniably imagine that that you said. Your
    favorite justification appeared to be at the net the easiest thing to take into account of.
    I say to you, I definitely get irked whilst other
    folks consider concerns that they plainly do not understand about.
    You controlled to hit the nail upon the highest and also outlined out the entire
    thing with no need side-effects , other folks could take a signal.
    Will probably be again to get more. Thanks!

    Here is my website Green Naturals CBD Reviews

  22. Howdy! I understand this is kind of off-topic however I needed to ask.
    Does managing a well-established blog like yours require a lot of work?

    I’m completely new to operating a blog but I do write in my diary every
    day. I’d like to start a blog so I will be able to share my personal experience and feelings online.

    Please let me know if you have any kind of ideas or tips for brand new aspiring blog owners.
    Thankyou!

    my web-site :: Dewey

  23. I would like to thank you for the efforts you have put in writing this blog.
    I’m hoping the same high-grade blog post from you in the upcoming
    also. Actually your creative writing skills has encouraged me to get my own web site now.
    Actually the blogging is spreading its wings fast. Your write up is a great example of it.

    Also visit my web page http://forum.adm-tolka.ru/

  24. Wow, superb blog layout! How long have you been blogging
    for? you made blogging look easy. The overall look of
    your site is fantastic, let alone the content!

  25. I’m impressed, I have to admit. Seldom do I come across a blog that’s both educative and
    engaging, and let me tell you, you’ve hit the nail on the head.

    The problem is something that too few folks are speaking
    intelligently about. Now i’m very happy I found this in my search
    for something regarding this.

  26. My spouse and I stumbled over here coming from a different page and
    thought I may as well check things out. I like what I see so now
    i am following you. Look forward to looking over your
    web page repeatedly.

  27. I definitely wanted to write down a brief remark so as to express gratitude to you for these remarkable suggestions you are giving at this website. My rather long internet research has at the end of the day been rewarded with professional ideas to talk about with my visitors. I ‘d express that most of us site visitors actually are very much endowed to be in a fabulous site with very many special professionals with insightful techniques. I feel rather happy to have come across your web pages and look forward to so many more exciting minutes reading here. Thank you again for all the details.

  28. Thanks a lot for providing individuals with remarkably memorable chance to discover important secrets from this blog. It’s always so excellent and as well , stuffed with amusement for me personally and my office peers to visit your site more than three times weekly to learn the fresh tips you have got. And lastly, I’m also certainly happy for the magnificent things served by you. Selected 2 ideas in this post are ultimately the most beneficial I have had.

  29. I simply wanted to make a small comment in order to thank you for these marvelous tactics you are placing here. My incredibly long internet look up has at the end been recognized with useful facts and strategies to write about with my companions. I would mention that we website visitors actually are truly blessed to be in a notable place with so many marvellous people with beneficial things. I feel extremely privileged to have used your webpage and look forward to some more thrilling moments reading here. Thanks a lot again for everything.

  30. I truly wanted to send a small message in order to thank you for all the awesome steps you are writing at this website. My rather long internet search has at the end of the day been compensated with good quality strategies to talk about with my friends. I ‘d declare that most of us site visitors actually are unequivocally lucky to exist in a good website with very many marvellous individuals with beneficial guidelines. I feel truly lucky to have seen the web site and look forward to so many more awesome moments reading here. Thanks once more for everything.

  31. Does your website have a contact page? I’m having trouble locating it but, I’d like to
    send you an e-mail. I’ve got some suggestions for your blog you might be interested in hearing.
    Either way, great site and I look forward to seeing
    it improve over time.

  32. An impressive share, I just given this onto a colleague who was doing a little analysis on this. And he in fact bought me breakfast because I found it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to discuss this, I feel strongly about it and love reading more on this topic. If possible, as you become expertise, would you mind updating your blog with more details? It is highly helpful for me. Big thumb up for this blog post!

  33. Thanks for all your valuable work on this web page. Kim really loves engaging in investigations and it’s easy to understand why. My spouse and i notice all about the lively tactic you make very important tips through this blog and welcome response from the others on that subject and our own princess is without a doubt starting to learn a whole lot. Have fun with the rest of the new year. You are doing a tremendous job.

  34. There are certainly a lot of details like that to take into consideration. That is a great point to bring up. I offer the thoughts above as general inspiration but clearly there are questions like the one you bring up where the most important thing will be working in honest good faith. I don?t know if best practices have emerged around things like that, but I am sure that your job is clearly identified as a fair game. Both boys and girls feel the impact of just a moment?s pleasure, for the rest of their lives.

  35. Thank you for all your labor on this website. Kate enjoys managing investigations and it’s really easy to understand why. A lot of people know all about the powerful form you present functional solutions via the blog and as well invigorate response from people on that concern and our favorite girl is starting to learn a whole lot. Take advantage of the remaining portion of the new year. You are conducting a brilliant job.

  36. Heya i am for the first time here. I found this board and I find It truly useful & it helped me out much. I hope to give something back and help others like you aided me.|

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *