答复: lvm2 disk replacement
> -----邮件原件-----
> 发件人: Paolo Alexis Falcone [mailto:pfalcone@gmail.com]
> 发送时间: 2005年6月9日 12:27
> 收件人: Debian Users' Mailing List
> 主题: Re: lvm2 disk replacement
>
> On 6/9/05, cwinl <cwinl-debian-user@lnnu.edu.cn> wrote:
> >
> > hi,all
> >
> > i have a DELL PE2800 server with 10 300GB disks.i make 3 PV
> which are
> > 3 RAID0.then a LV cross the whole 3 PV.
> > now , one of RAID0 is unstable.
> > so i want to change disk.
> > but i can't lose data.
> >
>
> You should've been aware of the consequences of using RAID 0.
>
> At any rate, have you tried doing a manual copy via cp? It
> might be slow, but you might get better results as opposed to
> using pvmove.
>
as you know , LV use the whole PV as one big space.
so i don't know whether a file is in that PV(/dev/sdb1) or not.
how can i cp them?
what i want to do is copy all the files in one PV (/dev/sdb1) to the other
PV(/dev/sdc1 or /dev/sdd1) automaticly.
then i delete that PV(/dev/sdb1) from the VG and change the wrong disk.
after that i add the PV(/dev/sdb1) to the VG again.
> > here is 'df' information:
> >
> > /dev/mapper/nicvg-niclv 2.0T 774G 1.2T 40% /ftproot
> >
> > and here is 'pvscan' information:
> >
> > ftp:~# pvscan
> > /dev/hda: open failed: No medium found
> > PV /dev/sdb1 VG nicvg lvm2 [838.09 GB / 0 free]
> > PV /dev/sdc1 VG nicvg lvm2 [558.72 GB / 0 free]
> > PV /dev/sdd1 VG nicvg lvm2 [558.72 GB / 0 free]
> > Total: 3 [1.91 TB] / in use: 3 [1.91 TB] / in no VG: 0 [0 ]
> >
> > the unstable PV is /dev/sdb1
> >
> > i want to move data from /dev/sdb1 to the reset PV such as
> /dev/sdc1
> > and /dev/sdd1.
> > i think the disk space is enough .
> > but when i use command 'pvmove -v /dev/sdb1' i got wrong info:
> >
> > ftp:~# pvmove -v /dev/sdb1
> > Finding volume group "nicvg"
> > No extents available for allocation
> >
> > my question is :
> > the reset of disk space is 1.2TB
> > but why 'pvscan' say free space is zero?
> > why i can't move data?
> > how can i solve the problem?
> >
> > don't say add another disk to the server. i had added 10
> disks to it
> > and there is no space to plug even one.
>
>
> --
> Paolo Alexis Falcone
> pfalcone@gmail.com
>
>
Reply to: