|   | 1 | [[PageOutline]]  | 
                  
                          |   | 2 |   | 
                  
                          |   | 3 |  * [http://pc.watanet.com/lab/homesvr/linux/lvm_resize/lvm_resize.html LVMパーティションの拡張]  | 
                  
                          |   | 4 |   | 
                  
                          |   | 5 |  = lvchange/vgchange -ay =  | 
                  
                          |   | 6 |  * root@Knoppix:~# vgdisplay -v  | 
                  
                          |   | 7 | {{{  | 
                  
                          |   | 8 |     Finding all volume groups  | 
                  
                          |   | 9 |     Finding volume group "vgnfs"  | 
                  
                          |   | 10 |   --- Volume group ---  | 
                  
                          |   | 11 |   VG Name               vgnfs  | 
                  
                          |   | 12 |   System ID  | 
                  
                          |   | 13 |   Format                lvm2  | 
                  
                          |   | 14 |   Metadata Areas        1  | 
                  
                          |   | 15 |   Metadata Sequence No  2  | 
                  
                          |   | 16 |   VG Access             read/write  | 
                  
                          |   | 17 |   VG Status             resizable  | 
                  
                          |   | 18 |   MAX LV                0  | 
                  
                          |   | 19 |   Cur LV                1  | 
                  
                          |   | 20 |   Open LV               0  | 
                  
                          |   | 21 |   Max PV                0  | 
                  
                          |   | 22 |   Cur PV                1  | 
                  
                          |   | 23 |   Act PV                1  | 
                  
                          |   | 24 |   VG Size               1.94 GB  | 
                  
                          |   | 25 |   PE Size               32.00 MB  | 
                  
                          |   | 26 |   Total PE              62  | 
                  
                          |   | 27 |   Alloc PE / Size       48 / 1.50 GB  | 
                  
                          |   | 28 |   Free  PE / Size       14 / 448.00 MB  | 
                  
                          |   | 29 |   VG UUID               I6vVoh-6gCJ-9uvA-v2MV-Fyva-7J8v-Cvftfi  | 
                  
                          |   | 30 |   | 
                  
                          |   | 31 |   --- Logical volume ---  | 
                  
                          |   | 32 |   LV Name                /dev/vgnfs/drbd  | 
                  
                          |   | 33 |   VG Name                vgnfs  | 
                  
                          |   | 34 |   LV UUID                dNxdNj-hZCZ-GMrC-woMk-0hA2-f3oR-sBsrHI  | 
                  
                          |   | 35 |   LV Write Access        read/write  | 
                  
                          |   | 36 |   LV Status              NOT available  | 
                  
                          |   | 37 |   LV Size                1.50 GB  | 
                  
                          |   | 38 |   Current LE             48  | 
                  
                          |   | 39 |   Segments               1  | 
                  
                          |   | 40 |   Allocation             inherit  | 
                  
                          |   | 41 |   Read ahead sectors     0  | 
                  
                          |   | 42 |   | 
                  
                          |   | 43 |   --- Physical volumes ---  | 
                  
                          |   | 44 |   PV Name               /dev/md0  | 
                  
                          |   | 45 |   PV UUID               Z2JXRP-fa5g-SYS5-xzMs-Lq8C-1Jbh-QPKihr  | 
                  
                          |   | 46 |   PV Status             allocatable  | 
                  
                          |   | 47 |   Total PE / Free PE    62 / 14  | 
                  
                          |   | 48 |   | 
                  
                          |   | 49 | }}}  | 
                  
                          |   | 50 |   * LV is "NOT available"  | 
                  
                          |   | 51 |   | 
                  
                          |   | 52 |  * lvchange -ay / vgchange -ay によってavailableにする  | 
                  
                          |   | 53 |   * root@Knoppix:~# lvchange -ay /dev/vgnfs/drbd  | 
                  
                          |   | 54 |   * root@Knoppix:~# vgchange -ay  | 
                  
                          |   | 55 | {{{  | 
                  
                          |   | 56 |   1 logical volume(s) in volume group "vgnfs" now active  | 
                  
                          |   | 57 | }}}  | 
                  
                          |   | 58 |   * [http://www.youchikurin.com/blog/2007/07/debian_1.html Debianのリカバリー (ゆうちくりんの忘却禄)]  | 
                  
                          |   | 59 |   | 
                  
                          |   | 60 |  * root@Knoppix:~# vgdisplay -v  | 
                  
                          |   | 61 | {{{  | 
                  
                          |   | 62 |     Finding all volume groups  | 
                  
                          |   | 63 |     Finding volume group "vgnfs"  | 
                  
                          |   | 64 |   --- Volume group ---  | 
                  
                          |   | 65 |   VG Name               vgnfs  | 
                  
                          |   | 66 |   System ID  | 
                  
                          |   | 67 |   Format                lvm2  | 
                  
                          |   | 68 |   Metadata Areas        1  | 
                  
                          |   | 69 |   Metadata Sequence No  2  | 
                  
                          |   | 70 |   VG Access             read/write  | 
                  
                          |   | 71 |   VG Status             resizable  | 
                  
                          |   | 72 |   MAX LV                0  | 
                  
                          |   | 73 |   Cur LV                1  | 
                  
                          |   | 74 |   Open LV               0  | 
                  
                          |   | 75 |   Max PV                0  | 
                  
                          |   | 76 |   Cur PV                1  | 
                  
                          |   | 77 |   Act PV                1  | 
                  
                          |   | 78 |   VG Size               1.94 GB  | 
                  
                          |   | 79 |   PE Size               32.00 MB  | 
                  
                          |   | 80 |   Total PE              62  | 
                  
                          |   | 81 |   Alloc PE / Size       48 / 1.50 GB  | 
                  
                          |   | 82 |   Free  PE / Size       14 / 448.00 MB  | 
                  
                          |   | 83 |   VG UUID               I6vVoh-6gCJ-9uvA-v2MV-Fyva-7J8v-Cvftfi  | 
                  
                          |   | 84 |   | 
                  
                          |   | 85 |   --- Logical volume ---  | 
                  
                          |   | 86 |   LV Name                /dev/vgnfs/drbd  | 
                  
                          |   | 87 |   VG Name                vgnfs  | 
                  
                          |   | 88 |   LV UUID                dNxdNj-hZCZ-GMrC-woMk-0hA2-f3oR-sBsrHI  | 
                  
                          |   | 89 |   LV Write Access        read/write  | 
                  
                          |   | 90 |   LV Status              available  | 
                  
                          |   | 91 |   # open                 0  | 
                  
                          |   | 92 |   LV Size                1.50 GB  | 
                  
                          |   | 93 |   Current LE             48  | 
                  
                          |   | 94 |   Segments               1  | 
                  
                          |   | 95 |   Allocation             inherit  | 
                  
                          |   | 96 |   Read ahead sectors     0  | 
                  
                          |   | 97 |   Block device           254:0  | 
                  
                          |   | 98 |   | 
                  
                          |   | 99 |   --- Physical volumes ---  | 
                  
                          |   | 100 |   PV Name               /dev/md0  | 
                  
                          |   | 101 |   PV UUID               Z2JXRP-fa5g-SYS5-xzMs-Lq8C-1Jbh-QPKihr  | 
                  
                          |   | 102 |   PV Status             allocatable  | 
                  
                          |   | 103 |   Total PE / Free PE    62 / 14  | 
                  
                          |   | 104 |   | 
                  
                          |   | 105 | }}}  | 
                  
                          |   | 106 |   | 
                  
                          |   | 107 |  = Can't deactivate =  | 
                  
                          |   | 108 |  * Shutting down LVM Volume Groups  Can't deactivate volume group "vgroot" with 1 open logical volumes(s)  failed! [[br]][[Image(TipAndDoc/filesystem/LVM:deactivate.png,33%)]]  | 
                  
                          |   | 109 |  * Debian 6.0 with 2.6.39-bpo.2-amd64  | 
                  
                          |   | 110 |  * lvm2: 2.02.66-5  | 
                  
                          |   | 111 |  * mitty@shizuku-debian:~$ ls /etc/rc6.d/ -l  | 
                  
                          |   | 112 | {{{  | 
                  
                          |   | 113 | lrwxrwxrwx 1 root root  21 Oct 22 16:11 K01mpt-statusd -> ../init.d/mpt-statusd  | 
                  
                          |   | 114 | lrwxrwxrwx 1 root root  17 Oct 22 16:07 K01urandom -> ../init.d/urandom  | 
                  
                          |   | 115 | lrwxrwxrwx 1 root root  18 Oct 22 16:11 K02sendsigs -> ../init.d/sendsigs  | 
                  
                          |   | 116 | lrwxrwxrwx 1 root root  17 Oct 22 16:11 K03rsyslog -> ../init.d/rsyslog  | 
                  
                          |   | 117 | lrwxrwxrwx 1 root root  20 Oct 22 16:11 K04hwclock.sh -> ../init.d/hwclock.sh  | 
                  
                          |   | 118 | lrwxrwxrwx 1 root root  22 Oct 22 16:11 K04umountnfs.sh -> ../init.d/umountnfs.sh  | 
                  
                          |   | 119 | lrwxrwxrwx 1 root root  20 Oct 22 16:11 K05networking -> ../init.d/networking  | 
                  
                          |   | 120 | lrwxrwxrwx 1 root root  18 Oct 22 16:11 K06ifupdown -> ../init.d/ifupdown  | 
                  
                          |   | 121 | lrwxrwxrwx 1 root root  18 Oct 22 16:11 K07umountfs -> ../init.d/umountfs  | 
                  
                          |   | 122 | lrwxrwxrwx 1 root root  14 Oct 22 16:11 K08lvm2 -> ../init.d/lvm2  | 
                  
                          |   | 123 | lrwxrwxrwx 1 root root  20 Oct 22 16:11 K09umountroot -> ../init.d/umountroot  | 
                  
                          |   | 124 | lrwxrwxrwx 1 root root  16 Oct 22 16:11 K10reboot -> ../init.d/reboot  | 
                  
                          |   | 125 | -rw-r--r-- 1 root root 351 Jan  1  2011 README  | 
                  
                          |   | 126 | }}}  | 
                  
                          |   | 127 |   | 
                  
                          |   | 128 |  * [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466141 #466141 - lvm2: error message during shutdown (Can't deactivate volume group...) - Debian Bug report logs] > This is not a bug  | 
                  
                          |   | 129 |   |