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