[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

09/08/2009 at 09:47PM PDT, ID: 24717124
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

problem while working with LVM in linux

Asked by D_wathi in Linux Administration, Linux, Linux Setup, Linux Networking

Dear Sir/Madam:

While installing the OS i had manually done the /opt partition on the 73.3 GB hard disk recently wanted add one more disk of 146GB then thought to increase the /opt size also did the same i,e created the partition using fdisk and then used Logical Volume Management and used the part of 146 gb and assigned to the /opt with this /opt space got increased but later wanted to restore the /opt to the original size which was assigned at the installation time i,e wanted release the space which was assigned from the hard disk 2 (146GB) for this using LVM removed the /opt partition from the second disk but his entirely removed the /opt . later again manually created the /opt under root (/). but over all the problem is what ever the space assigned to the /opt from the second hard disk (146GB) is not able to use . request you to please help me how to release this space and make use for the other partitions. for your reference posted the following...
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
pvdisplay
  Couldn't find device with uuid 'yXvjxR-VwzV-0elL-cG17-gwRT-2WYO-3cOAwF'.
  Couldn't find device with uuid 'yXvjxR-VwzV-0elL-cG17-gwRT-2WYO-3cOAwF'.
  --- Physical volume ---
  PV Name               /dev/cciss/c0d0p2
  VG Name               VolGroup00
  PV Size               40.04 GB / not usable 9.83 MB
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              1281
  Free PE               0
  Allocated PE          1281
  PV UUID               wwO1wa-vmlm-VxUN-SvaQ-YbYb-Sie4-zygme0
   
  Couldn't find device with uuid 'yXvjxR-VwzV-0elL-cG17-gwRT-2WYO-3cOAwF'.
  --- Physical volume ---
  PV Name               unknown device
  VG Name               VolGroup00
  PV Size               23.29 GB / not usable 6.48 MB
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              745
  Free PE               0
  Allocated PE          745
  PV UUID               yXvjxR-VwzV-0elL-cG17-gwRT-2WYO-3cOAwF
 
 
vgdisplay
  Couldn't find device with uuid 'yXvjxR-VwzV-0elL-cG17-gwRT-2WYO-3cOAwF'.
  --- Volume group ---
  VG Name               VolGroup00
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  7
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                4
  Open LV               3
  Max PV                0
  Cur PV                2
  Act PV                1
  VG Size               63.31 GB
  PE Size               32.00 MB
  Total PE              2026
  Alloc PE / Size       2026 / 63.31 GB
  Free  PE / Size       0 / 0   
  VG UUID               Pqw3lr-nMDY-WfpY-p8VZ-KgVv-akvO-YtymVT
 
 
lvdisplay
  Couldn't find device with uuid 'yXvjxR-VwzV-0elL-cG17-gwRT-2WYO-3cOAwF'.
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol02
  VG Name                VolGroup00
  LV UUID                lS3uvd-NDpQ-N6w7-8wnw-eCK9-1tpR-RhKWE2
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                17.56 GB
  Current LE             562
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                D1VwcX-DciU-JAmr-1XLS-ZfTb-NL2k-ed3d47
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                28.19 GB
  Current LE             902
  Segments               3
  Allocation             inherit
  Read ahead sectors     auto
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                kQEZ7n-QVdo-abUM-Bv4G-DSLZ-Oj1h-YDxMSh
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                11.72 GB
  Current LE             375
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol03
  VG Name                VolGroup00
  LV UUID                CMHsip-7hfg-yOVK-4ft1-nMs0-IpBm-E6flo8
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.84 GB
  Current LE             187
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2
 
 
 
vscan
  Couldn't find device with uuid 'yXvjxR-VwzV-0elL-cG17-gwRT-2WYO-3cOAwF'.
  PV /dev/cciss/c0d0p2   VG VolGroup00   lvm2 [40.03 GB / 0    free]
  PV unknown device      VG VolGroup00   lvm2 [23.28 GB / 0    free]
  Total: 2 [63.31 GB] / in use: 2 [63.31 GB] / in no VG: 0 [0   ]
 
[root@authserver ~]# lvscan
  Couldn't find device with uuid 'yXvjxR-VwzV-0elL-cG17-gwRT-2WYO-3cOAwF'.
  ACTIVE            '/dev/VolGroup00/LogVol02' [17.56 GB] inherit
  inactive          '/dev/VolGroup00/LogVol01' [28.19 GB] inherit
  ACTIVE            '/dev/VolGroup00/LogVol00' [11.72 GB] inherit
  ACTIVE            '/dev/VolGroup00/LogVol03' [5.84 GB] inherit
 
fdisk -l
 
Disk /dev/cciss/c0d0: 73.3 GB, 73372631040 bytes
255 heads, 63 sectors/track, 8920 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
           Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d0p1   *           1          25      200781   83  Linux
/dev/cciss/c0d0p2              26        5252    41985877+  8e  Linux LVM
/dev/cciss/c0d0p3            5253        6527    10241437+  83  Linux
/dev/cciss/c0d0p4            6528        8920    19221772+   5  Extended
/dev/cciss/c0d0p5            6528        7802    10241406   83  Linux
/dev/cciss/c0d0p6            7803        8312     4096543+  82  Linux swap / Solaris
/dev/cciss/c0d0p7            8313        8822     4096543+  82  Linux swap / Solaris
 
Disk /dev/cciss/c0d1: 146.7 GB, 146778685440 bytes
255 heads, 32 sectors/track, 35132 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
 
           Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d1p1               1       17953    73248224   83  Linux
/dev/cciss/c0d1p2           17954       27528    39066000    5  Extended
/dev/cciss/c0d1p5           17954       22741    19535024   83  Linux
 
 
cat /etc/fstab
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot1            /boot                   ext3    defaults        1 2
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
/dev/VolGroup00/LogVol02 /home                   ext3    defaults        1 2
proc                    /proc                   proc    defaults        0 0
sysfs                   /sys                    sysfs   defaults        0 0
LABEL=/tmp              /tmp                    ext3    defaults        1 2
 
/dev/VolGroup00/LogVol00 /usr                    ext3    defaults        1 2
#/dev/VolGroup00/LogVol01 /opt                    ext3    defaults        1 2
/dev/VolGroup00/LogVol03 /var                    ext3    defaults        1 2
LABEL=SW-cciss/c0d0p6   swap                    swap    defaults        0 0
LABEL=SW-cciss/c0d0p7   swap                    swap    defaults        0 0
LABEL=/externaldrive    /external               ext3    rw,acl          1 2
/dev/cciss/c0d1p5       /virtualmachine         ext3    defaults        1 2
 
Loading Advertisement...
 
[+][-]09/09/09 04:48 AM, ID: 25290145

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/09/09 05:48 AM, ID: 25290584

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/09/09 05:52 AM, ID: 25290624

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/11/09 09:23 PM, ID: 25315093

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09/11/09 09:23 PM, ID: 25315095

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09/15/09 10:55 PM, ID: 25342294

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09/17/09 02:52 PM, ID: 25361447

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Linux Administration, Linux, Linux Setup, Linux Networking
Sign Up Now!
Solution Provided By: Gns
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20090824-EE-VQP-74 - Hierarchy / EE_QW_3_20080625