우분투 미러링 rsync 주소 변경

 우분투 9.10 업데이트에 대한 기대로 행복할 무렵..

 동아리 미러링 서버 상태를 확인해보니 아래의 메시지가 나타나 있었다.

Found all ISO images for series The Dapper Drake and flavour edubuntu.

Found all ISO images for series The Hardy Heron and flavour edubuntu.
Found all ISO images for series The Intrepid Ibex and flavour edubuntu.
Found all ISO images for series The Hardy Heron and flavour kubuntu.
Found all ISO images for series The Intrepid Ibex and flavour kubuntu.
Found all ISO images for series The Jaunty Jackalope and flavour kubuntu.
Failed http://mirror.knusoft.net/ubuntu-releases///kubuntu/.pool/kubuntu-9.10-alternate-amd64.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///kubuntu/.pool/kubuntu-9.10-alternate-i386.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///kubuntu/.pool/kubuntu-9.10-desktop-amd64.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///kubuntu/.pool/kubuntu-9.10-desktop-i386.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///kubuntu/.pool/kubuntu-9.10-netbook-i386.iso: Bad response code: 404
Found all ISO images for series The Dapper Drake and flavour ubuntu.
Found all ISO images for series The Hardy Heron and flavour ubuntu.
Found all ISO images for series The Intrepid Ibex and flavour ubuntu.
Found all ISO images for series The Jaunty Jackalope and flavour ubuntu.
Failed http://mirror.knusoft.net/ubuntu-releases///.pool/ubuntu-9.10-alternate-amd64.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///.pool/ubuntu-9.10-alternate-i386.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///.pool/ubuntu-9.10-desktop-amd64.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///.pool/ubuntu-9.10-desktop-armel+dove.img: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///.pool/ubuntu-9.10-desktop-armel+imx51.img: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///.pool/ubuntu-9.10-desktop-i386.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///.pool/ubuntu-9.10-netbook-remix-i386.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///.pool/ubuntu-9.10-server-amd64.iso: Bad response code: 404
Failed http://mirror.knusoft.net/ubuntu-releases///.pool/ubuntu-9.10-server-i386.iso: Bad response code: 404

 아직 업데이트가 안되었다는 메시지…

 흠… 처음에는 그저 업데이트가 느리다는 생각 뿐이었다. 그러나 서버에서 rsync 프로세스를 확인해본 결과 rsync 프로세스는 실행되어 있지 않았다.

 cron 작업을 걸어두어 매일 새벽에 자동으로 체크하도록 해 놓았는데 실행이 되어있지 않다니… 문득 이상한 생각이 들어 직접 프로세스를 실행시켜 보았다.
 하지만 아래의 메시지만 나오고 제대로 실행되어 있지 않았다.

 rsync: failed to connect to releases.ubuntu.com: Network is unreachable (101)
rsync error: error in socket IO (code 10) at clientserver.c(122) [receiver=3.0.3]

 아니… 이건 무슨 에러지… 구글링을 해보니 똑같은 에러 메시지 몇개가 나왔다. 그런데 그중에 눈에 익은 글이 나왔다. 바로 내가 포스팅한 글이었다….

 전에도 이런 에러를 한번 겪었었는데 그때는 DNS 포트를 막아놔서 제대로된 쿼리와 응답을 받지 못해 생긴 오류였는데 이번에도 똑같은 에러 메시지였지만 상황이 달랐다. DNS 포트는 막혀있지 않았던 것이었다.

 무엇이 문제일까… 잠시 구글링을 포기하고 dig와 nslookup을 통해 releases.ubuntu.com 의 질의가 제대로 이루어 지는지를 확인하고, 혹시나 싶어 releases.ubuntu.com 의 도메인 네임 대신에 IP 주소를 입력하여 rsync 스크립트를 재 실행 해보았다.

 결과는 마찬가지였다.

 이래저래 고민을 하다가 결국 우분투 미러링 IRC 채널에 문의해보기로 했다.
 IRC 채널 : irc.freenode.org in #ubuntu-mirrors

 답은 간단했다.
https://lists.ubuntu.com/archives/ubuntu-mirrors-announce/2009-October/000015.html

 아래는 위의 링크에 나와있는 메시지의 전문이다.

Hi

As you may know, the newest version of Ubuntu (9.10) is scheduled to be
officially released on Thursday, 29 October. To ensure that this release
goes smoothly, we need your help!

* If you are rsyncing from releases.ubuntu.com please update your
scripts/cronjobs to rsync from rsync.releases.ubuntu.com ASAP!

* Please take a moment to verify that your mirror is ready and
syncing.

* Set any "releases" mirror (the CD images) to sync every 2 hours.
(These rsyncs are very small and quick, and you should not
notice any increased load on your server.)

/! rsyncing straight from releases.ubuntu.com will stop working
before the final release /!

Thank you very, very much for your help spreading Ubuntu, we really
appreciate it!

Cheers,
--
Chris Jones
cmsj at canonical.com
www.canonical.com

 즉, Ubuntu-9.10 릴리즈에 맞춰 rsunc 서버가 변경되었기 때문에 rsync 접속 주소의 수정이 필요하다는 내용이었다.

 모든 등록된 미러링 서버 관리자 이메일 주소로 이 메시지가 발송되었으나, 미처 확인을 안한 것이 문제였다. (설마….도메인이 변경되었을 줄이야…)

 즉시 rsync 스크립트를 고쳐 다시 실행하니 잘 작동한다. 🙂

Ubuntu grub 복구 방법

 윈도우 설치 혹은 기타 다른 작업 중 grub이 날아가는 경우가 있다.

 이때, Live cd 를 이용하여 grub을 복구하는 방법을 소개한다.

 먼저 라이브 시디를 이용하여 부팅을 시도한다.

 그리고 터미널 창을 하나 생성한다.

 생성된 터미널에 다음과 같이 입력한다

sudo grub

 다음과 같은 화면이 보일 것이다.
사용자 삽입 이미지
 그리고 다음의 명령어를 입력한다.

find /boot/grub/stage1

 입력 후 다음과 같은 메시지가 나올 것이다.
(hd?, ?)

 테스트에서는 다음과 같이 나왔다.
사용자 삽입 이미지
 확인된 (hd?,?)을 이용하여 다음과 같이 입력한다. (필자의 컴퓨터에서는 ‘root (hd0,3)’)

root (hd?,?)

 그리고 다음을 입력한다. (필자의 경우 ‘setup (hd0)’)

setup (hd?)


 그리고 quit를 입력하면 된다. 그리고 Live cd를 제거한 후 재부팅을 하면 grub이 보일 것이다.

quit


 아래 사진처럼 하면 된다. : )
사용자 삽입 이미지
 관련 링크 : http://ubuntuforums.org/showthread.php?t=224351&highlight=grub