LVM2 사용시에 질문입니다.

kite7의 이미지

LVM2를 사용중입니다.
--- 원 상태 ---
디스크 5개를 lvm1이라는 vg에서 100% lv 할당해서 쓰고 있었습니다.

--- 하려는 일 ---
120G 디스크 2개를 빼내려고 합니다. (물론 기존 자료는 딴 디스크들의 빈자리에 차곡차곡 들어가야겠죠.)

--- 제가 한일 ---
1. reiser_resize 이용해서 각 파티션 줄였습니다.
2. lvresize 이용해서 각 lv 줄였습니다. (여유공간 311G 확보)
여기까지는 잘 됐습니다.

doc.kldp.org에 있는문서나 그 문서의 영어 버전을 보면
3. pvmove /dev/hdd
4. vgreduce 를 사용하여 volume group에서 디스크 제거
5. 디스크 빼기.
의 순서로 끝납니다.

그런데 제가 pvmove /dev/hdd 를 하면 항상

 
root@unstable:~# pvmove /dev/hdd
  device-mapper ioctl cmd 9 failed:  
  Couldn't load device 'lvm1-pvmove0'.
  ABORTING: Temporary mirror activation failed.
  device-mapper ioctl cmd 9 failed:  
  Couldn't load device 'lvm1-filebox'.

라는 에러 메시지가 나오면서
  --- Logical volume ---
  LV Name                /dev/lvm1/pvmove0
  VG Name                lvm1
  LV UUID                bY09Wl-j7Pa-Qu5M-f1Ih-YluW-KhqC-HynLwS
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                5.00 GB
  Current LE             640
  Segments               1
  Allocation             contiguous
  Read ahead sectors     0
  Block device           254:1

위와 같은 lvdisplay를 해보면 pvmove0 라는 lv 라는 lg가 하나 생깁니다.
lv와 vg모두 NOT available 상태로도 available 상태로도 시도해봤지만 결과는 같았습니다.

제 생각에는 /dev/hdd pv가 속해있는 lv의 데이타를 옮기려고 하다가 다른 lv에 저장하려고 시도 하는 과정에서 문제가 있어 보입니다.
그래서 pvmove0 라는 lv를 임시로 생성해서 temp로 쓰다가 에러가 나서 그대로 멈추는게 아닌가 싶습니다. (순수히 제 추측입니다)

아니면, 혹시라도 임의의 pv 에 있는 데이터를 vg의 빈공간을 이용해서 그곳으로 옮기는 명령어가 있는가 싶기도 합니다. (싹 비우는 효과 말이죠)
그런데 제가 찾아본바로는 pvmove가 그 명령어인데 안되네요.

항상 질문을 드릴때마다 적잖이 시간이 드는 것으로 봐도 정말 질문도 제대로 올리기는 힘이 든다는 생각이 듭니다.
(하지만 막상 다 써놓고 났어도 애매한 부분이 있을까 걱정이 되네요 )
꼭 아시는 분이 있으셨으면 좋겠습니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.