Advertisement

09.28.2007 at 10:07AM PDT, ID: 22859955 | Points: 500
[x]
Attachment Details

Can not remove second hard drive in Unix system!!!

Asked by rongvn85 in Unix Setup, Hard Drives & Storage, Computer Hard Drives

Tags: open, volume, remove

Hi everyone,
My server is using Centos 4.5. I use 2 hard drive,one for main files and one for backup purpose. I mounted second hard drive as /backup. Now it is failed to i need to remove it. But seem when I remove the second hard drive, system fail to boot, below is error message

ERROR: /bin/lvm exited abnormally!(pid 562)
Activating logical volumes
Couldn't find device with uuid 'YSOJQS.......
Couldn't find all physical volumes for volume group VolGroup00

Volume group "VolGroup00" not found
ERROR: /bin/lvm exited abnormally!(pid 563)
Creating root device
Mounting root filesystem
moung: error 6 mouting ext3
mount: error 2 mouting none
Switching to new root
switchroot: mount failed: 22
Umount /initrd/dev failed: 22
Kernel panic - not syncing: Attempted to kill init!

Seem that some system files are on the second drive.
Here is the result of fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1318 10482412+ 83 Linux
/dev/sda3 1319 2232 7341705 83 Linux
/dev/sda4 2233 30401 226267492+ 5 Extended
/dev/sda5 2233 2493 2096451 83 Linux
/dev/sda6 2494 30401 224170978+ 8e Linux LVM

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 30099 241770186 83 Linux
/dev/sdb2 30100 30401 2425815 8e Linux LVM

Here is the result of pvdisplay /dev/sdb2
--- Physical volume ---
PV Name /dev/sdb2
VG Name VolGroup00
PV Size 2.31 GB / not usable 983.00 KB
Allocatable yes
PE Size (KByte) 32768
Total PE 74
Free PE 3
Allocated PE 71
PV UUID YJ0JQs-fwpf-FGbn-v2xF-01Xj-rR9m-AU7eVG

When i run vgreduce VolGroup00 /dev/sdb2,i got
Physical volume "/dev/sdb2" still in use

I run vgchange -a n VolGroup00
then got
Can't deactivate volume group "VolGroup00" with 2 open logical volume(s)

[root@vietnam1 /]# pvremove /dev/sdb2
Can't pvremove physical volume "/dev/sdb2" of volume group "VolGroup00" withou t -ff

Please help me on this issue.



Start Free Trial
 
Loading Advertisement...
 
[+][-]09.28.2007 at 02:10PM PDT, ID: 19981804

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]09.28.2007 at 04:50PM PDT, ID: 19982482

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]09.28.2007 at 06:58PM PDT, ID: 19982728

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.28.2007 at 09:38PM PDT, ID: 19982974

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]09.29.2007 at 02:53AM PDT, ID: 19983462

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.29.2007 at 02:32PM PDT, ID: 19985426

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]09.29.2007 at 11:12PM PDT, ID: 19986351

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.30.2007 at 08:55PM PDT, ID: 19988762

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]09.30.2007 at 11:15PM PDT, ID: 19989027

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.13.2007 at 04:24AM PDT, ID: 20070743

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]10.16.2007 at 11:39AM PDT, ID: 20087893

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.18.2007 at 03:58AM PDT, ID: 20099807

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]10.18.2007 at 01:23PM PDT, ID: 20104335

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.18.2007 at 01:25PM PDT, ID: 20104348

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.19.2007 at 06:17AM PDT, ID: 20108592

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]10.20.2007 at 08:23PM PDT, ID: 20116731

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.03.2007 at 02:44AM PDT, ID: 20206376

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]11.03.2007 at 10:12AM PDT, ID: 20207512

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.05.2007 at 03:09AM PST, ID: 20214937

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628