Re: [Drbl-user] Problem about LVM under CentOS 5
Brought to you by:
steven_shiau
From: bell c. <wbe...@gm...> - 2008-06-05 18:22:12
|
Yeah! You are great Steven! Problem solved! Now I can both successfully save and restore disk with LVM! Thanks so much!! Sincerely, Will On Thu, Jun 5, 2008 at 9:59 AM, Steven Shiau <st...@nc...> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Fro Debian or Ubuntu, you can edit those files in > /tftpboot/nodes/*/etc/modules, append "dm-mod" for each file. You can > use this command to do massively copy: > > http://drbl.sourceforge.net/one4all/techrpt.php?c=drbl-cp-host&t=Copy%20a%20file%20or%20directory%20to%20all%20clients > > BTW, this is nothing to do with your CentOS, it's about DRBL server and > the files in its clients. > > Steven. > > bell computer wrote: > > Thank you for your solution Steven! > > > > But I am a little confused. For the first solution, which "system start > > config file" do you mean? Is it on the server or the client? Can you > > specify it for me please? To be honest, I am a newbie to linux... > > My dbrl server is Ubuntu 8.04. The following is the output of "lsmod": > > user@bell:~$ lsmod > > Module Size Used by > > ipt_MASQUERADE 4608 10 > > iptable_nat 8324 1 > > nf_nat 20396 2 ipt_MASQUERADE,iptable_nat > > nf_conntrack_ipv4 19080 2 iptable_nat > > nf_conntrack 66752 4 ipt_MASQUERADE,iptable_nat,nf > > _nat,nf_conntrack_ipv4 > > rfcomm 41744 2 > > l2cap 25728 13 rfcomm > > bluetooth 61156 4 rfcomm,l2cap > > nfsd 228848 30 > > auth_rpcgss 43424 1 nfsd > > exportfs 6016 1 nfsd > > ppdev 10372 0 > > speedstep_lib 6532 0 > > cpufreq_powersave 2688 0 > > cpufreq_stats 7104 0 > > cpufreq_ondemand 9740 0 > > freq_table 5536 2 cpufreq_stats,cpufreq_ondemand > > cpufreq_conservative 8712 0 > > cpufreq_userspace 5284 0 > > sbs 15112 0 > > container 5632 0 > > video 19856 0 > > output 4736 1 video > > sbshc 7680 1 sbs > > dock 11280 0 > > battery 14212 0 > > nfs 262540 0 > > lockd 67720 3 nfsd,nfs > > nfs_acl 4608 2 nfsd,nfs > > sunrpc 185884 11 nfsd,auth_rpcgss,nfs,lockd,nfs_acl > > iptable_filter 3840 0 > > ip_tables 14820 2 iptable_nat,iptable_filter > > x_tables 16132 3 ipt_MASQUERADE,iptable_nat,ip_tables > > ac 6916 0 > > parport_pc 36260 0 > > lp 12324 0 > > parport 37832 3 ppdev,parport_pc,lp > > af_packet 23812 4 > > psmouse 40336 0 > > serio_raw 7940 0 > > ipv6 267780 16 > > pcspkr 4224 0 > > evdev 13056 3 > > ipmi_msghandler 38872 0 > > button 9232 0 > > iTCO_wdt 13092 0 > > iTCO_vendor_support 4868 1 iTCO_wdt > > i3000_edac 6792 0 > > edac_core 45676 3 i3000_edac > > shpchp 34452 0 > > pci_hotplug 30880 1 shpchp > > ext3 136712 2 > > jbd 48404 1 ext3 > > mbcache 9600 1 ext3 > > usbhid 31872 0 > > hid 38784 1 usbhid > > sg 36880 0 > > sd_mod 30720 5 > > ata_generic 8324 0 > > ata_piix 19588 3 > > floppy 59588 0 > > pata_acpi 8320 0 > > libata 159344 3 ata_generic,ata_piix,pata_acpi > > scsi_mod 151436 3 sg,sd_mod,libata > > ehci_hcd 37900 0 > > uhci_hcd 27024 0 > > usbcore 146028 4 usbhid,ehci_hcd,uhci_hcd > > e1000 126016 0 > > dm_mirror 24832 0 > > dm_snapshot 19620 0 > > dm_mod 62660 2 dm_mirror,dm_snapshot > > thermal 16796 0 > > processor 36872 1 thermal > > fan 5636 0 > > fbcon 42912 0 > > tileblit 3456 1 fbcon > > font 9472 1 fbcon > > bitblit 6784 1 fbcon > > softcursor 3072 1 bitblit > > fuse 50580 3 > > > > I think dm_mod is already there when Ubuntu boots up. > > > > The client is a CentOS that I want to back up. When it boots up > > normally, it also load dm_mod and something else that LVM need to use. > > I read from here > > " > http://docs.fedoraproject.org/install-guide/fc6/en/ch-disk-partitioning.html > " > > that "Only an active Linux system may read or write to LVM volumes." So > > I guess the "active Linux" here in DRBL mode is the isolinux that boots > > up client machine. How can I load dm_mod for it? > > > > Thank you so much! > > > > Sincerely, > > Will > > > > > > On Wed, Jun 4, 2008 at 5:33 AM, Steven Shiau <st...@nc... > > <mailto:st...@nc...>> wrote: > > > > Yes, some distribution won't automatically load dp-mod module. > > Some solutions: > > Put module "dm_mod" in your system start config file so that it will be > > automatically loaded. > > or > > You can try unstable drbl with clonezilla 2.3.0-10 or later. > > > > Steven. > > > > bell computer wrote: > >> I collected the error message on the client's screen manually. I hope > >> this is useful. > >> Now I am sure that there must be something wrong with recognizing LVM > >> partition, which results in the failure of the clone. > > > >> Parsing LVM layout... > >> VolGroup00 /dev/sda2 NWnKMA-6uCA-uEde-81tg-cFlW-GkO8-U0BjT1 > >> Parsing logical volumes... > >> /proc/misc: No entry for device-mapper found > >> Is device-mapper driver missing from kernel? > >> Failure to communicate with kernel device-mapper driver. > >> Incompatible libdevmapper 1.02.20 (2007-06-15)(compat) and kernel > > driver > >> /dev/VolGroup00/LogVol00 ERROR > >> /dev/VolGroup00/LogVol01 ERROR > >> Save the VG config... > >> Volume group "VolGroup00" successfully backed up! > > > >> Any suggestion will be appreciated! > > > >> Sincerely, > >> Will > > > >> On Mon, Jun 2, 2008 at 11:38 AM, bell computer <wbe...@gm... > > <mailto:wbe...@gm...> > >> <mailto:wbe...@gm... <mailto:wbe...@gm...>>> wrote: > > > >> I have a problem when saving the entire disk through DRBL. > > > >> After the DRBL server is ready, I boot up the client, which has a > >> SATA disk with CentOS 5 on it, and which is divided into two > >> partitions using LVM: /dev/sda1, /dev/sda2. > > > >> CloneZilla finds the two partitions without any problem, but it > >> seems that it only copies /dev/sda1, and there is something wrong > >> with /dev/sda2. > > > >> Under the directory "2008-05-30-13-img", there are several > > files. I > >> thought maybe this will help you identify what the error is. > >> File "disk" > >> Content > >> "sda" > >> File "lvm_logv.list" > >> Content > >> "/dev/VolGroup00/LogVol00 ERROR > >> /dev/VolGroup00/LogVol01 ERROR" > >> File "lvm_vg_dev.list" > >> Content > >> "VolGroup00 /dev/sda2 oVivVX-k3LE-4oiP-qMTf-S8Zw-V6ZM-KPEyt0" > >> File "parts" > >> Content > >> "sda1 sda2" > >> File "sda-chs.sf" > >> Content > >> "cylinders=30401 > >> heads=255 > >> sectors=63" > >> File "sda-pt.parted" > >> Content " > > > >> Disk /dev/sda: 488397167s > >> Sector size (logical/physical): 512B/512B > >> Partition Table: msdos > > > >> Number Start End Size Type File system > > Flags > >> 1 63s 208844s 208782s primary ext2 > > boot > >> 2 208845s 488392064s 488183220s primary lvm > >> " > >> File "sda-pt.sf" > >> Content " > >> # partition table of /dev/sda > >> unit: sectors > > > >> /dev/sda1 : start= 63, size= 208782, Id=83, bootable > >> /dev/sda2 : start= 208845, size=488183220, Id=8e > >> /dev/sda3 : start= 0, size= 0, Id= 0 > >> /dev/sda4 : start= 0, size= 0, Id= 0 > >> " > > > >> I think DRBL support LVM2, which is there with CentOS 5. So I have > >> no idea what the problem is. Thanks a lot! > > > >> Sincerely, > >> Will > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > ------------------------------------------------------------------------- > >> This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > > > > ------------------------------------------------------------------------ > > > >> _______________________________________________ > >> Drbl-user mailing list > >> Drb...@li... > > <mailto:Drb...@li...> > >> https://lists.sourceforge.net/lists/listinfo/drbl-user > > > > > > -- > > Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org> > > National Center for High-performance Computing, Taiwan. > > http://www.nchc.org.tw > > Public Key Server PGP Key ID: 1024D/9762755A > > Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > > > ------------------------------------------------------------------------ > > > _______________________________________________ > > Drbl-user mailing list > > Drb...@li... > > https://lists.sourceforge.net/lists/listinfo/drbl-user > > > - -- > Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org> > National Center for High-performance Computing, Taiwan. > http://www.nchc.org.tw > Public Key Server PGP Key ID: 1024D/9762755A > Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFISBt1CLPj15didVoRAvjvAJ9l9w1N2/Rl+6wYh3oNLsZmikaQjwCeO+JB > qS0WHIzblKhF9tdqXX0Liaw= > =Ojje > -----END PGP SIGNATURE----- > |