FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Red Hat Linux

 
 
LinkBack Thread Tools
 
Old 09-07-2010, 04:55 PM
James Corteciano
 
Default LVM with RHCS

Hi All,

I have volume group called "vg-nfs1" and it is controlled by RHCS
(rhcs-nfs1) to mount in rhcs-node1 server. This group has 3 logical volumes
namely lv-wf1 (160G), lv-wf2 (20G), and lv-dev (10G).

Now I have plan to reduce lv-wf1 into 70G and lv-wf2 increase into 30G.
These are the steps I did:
1) Umount /nfs/lv-wf1, /nfs/lv-wf2, and /nfs/lv-dev but I can't unmounted
them because message said "device busy". Since it's running in RHCS, I use
"clusvcadm -s rhcs-nfs1" and the service is stop successfully.

2) I run system-config-lvm and reduce lv-wf1 from 160G to 70G and increased
lv-wf2 from 10G to 30G.

Now, when I run the rhcs-nfs1 service using the command "clusvcadm -e
rhcs-nfs1 -m rhcs-node1", I got failed result. I have checked the
/var/log/messages and this is the output.

--------------------------------------------------------------
clurgmgrd: [7981]: <err> 'fsck -p /dev/vg-nfs1/lv-wf1' failed, error=4;
check /tmp/fs-wf1-fs.fsck.log.e24076 for errors
clurgmgrd[7981]: <warning> #68: Failed to start service:rhcs-nfs1; return
value: 1
multipathd: dm-18: remove map (uevent)
multipathd: dm-19: remove map (uevent)
multipathd: dm-20: remove map (uevent)
clurgmgrd[7981]: <warning> #71: Relocating failed service service:rhcs-nfs1
--------------------------------------------------------------

When I check the /tmp/fs-wf1-fs.fsck.log.e24076, this is the output:

--------------------------------------------------------------
fsck 1.39 (29-May-2006)
/dev/vg-nfs1/lv-wf1: The filesystem size (according to the superblock) is
41943040 blocks
The physical size of the device is 18350080 blocks
Either the superblock or the partition table is likely to be corrupt!

/dev/vg-nfs1/lv-wf1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
--------------------------------------------------------------

# ll -d /dev/vg-nfs1/lv-wf1
ls: /dev/vg-nfs1/lv-wf1: No such file or directory


I hope anyone could help me to rectify this.

Thank you.

Regards,
James
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 09-08-2010, 02:19 AM
Sanjay Chakraborty
 
Default LVM with RHCS

2) I run system-config-lvm and reduce lv-wf1 from 160G to 70G and increased
lv-wf2 from 10G to 30G.

system-config-lvm sometime not do the exact thing as expected. You
should have used command line like vgreduce and lvreduce after that
resizefs and fsck.

Make sure that your lvm.conf file has been configured to handle the
number cluster nodes.

As per errors, it looks like there are somewhere the LVM are being
mapped and that has not been re-sized.

On Tue, Sep 7, 2010 at 12:55 PM, James Corteciano
<james@linux-source.org> wrote:
> Hi All,
>
> I have volume group called "vg-nfs1" and it is controlled by RHCS
> (rhcs-nfs1) to mount in rhcs-node1 server. This group has 3 logical volumes
> namely lv-wf1 (160G), lv-wf2 (20G), and lv-dev (10G).
>
> Now I have plan to reduce lv-wf1 into 70G and lv-wf2 increase into 30G.
> These are the steps I did:
> 1) Umount /nfs/lv-wf1, /nfs/lv-wf2, and /nfs/lv-dev but I can't unmounted
> them because message said "device busy". Since it's running in RHCS, I use
> "clusvcadm -s rhcs-nfs1" and the service is stop successfully.
>
> 2) I run system-config-lvm and reduce lv-wf1 from 160G to 70G and increased
> lv-wf2 from 10G to 30G.
>
> Now, when I run the rhcs-nfs1 service using the command "clusvcadm -e
> rhcs-nfs1 -m rhcs-node1", I got failed result. I have checked the
> /var/log/messages and this is the output.
>
> --------------------------------------------------------------
> clurgmgrd: [7981]: <err> 'fsck -p /dev/vg-nfs1/lv-wf1' failed, error=4;
> check /tmp/fs-wf1-fs.fsck.log.e24076 for errors
> clurgmgrd[7981]: <warning> #68: Failed to start service:rhcs-nfs1; return
> value: 1
> multipathd: dm-18: remove map (uevent)
> multipathd: dm-19: remove map (uevent)
> multipathd: dm-20: remove map (uevent)
> clurgmgrd[7981]: <warning> #71: Relocating failed service service:rhcs-nfs1
> --------------------------------------------------------------
>
> When I check the /tmp/fs-wf1-fs.fsck.log.e24076, this is the output:
>
> --------------------------------------------------------------
> fsck 1.39 (29-May-2006)
> /dev/vg-nfs1/lv-wf1: The filesystem size (according to the superblock) is
> 41943040 blocks
> The physical size of the device is 18350080 blocks
> Either the superblock or the partition table is likely to be corrupt!
>
> /dev/vg-nfs1/lv-wf1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
> * * * *(i.e., without -a or -p options)
> --------------------------------------------------------------
>
> # ll -d /dev/vg-nfs1/lv-wf1
> ls: /dev/vg-nfs1/lv-wf1: No such file or directory
>
>
> I hope anyone could help me to rectify this.
>
> Thank you.
>
> Regards,
> James
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



--
Regards.
Sanjay Chakraborty

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 

Thread Tools




All times are GMT. The time now is 09:13 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org