http://www.daniweb.com/web-development/databases/mysql/threads/300670
this works:
update euser inner join euser2 on euser.`usernameid`=euser2.usrname set euser.`parentID` = euser2.user_id
This is my personal blog. My research about computer and software :)
option domain-name "server.domain.com";
option domain-name-servers 8.8.8.8;
option netbios-name-servers 8.8.8.8;
option subnet-mask 255.255.255.0;
default-lease-time 600;
max-lease-time 7200;
ddns-update-style ad-hoc; ## Centos needs this
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.150 192.168.1.252;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
}
default menu.c32
prompt 0
timeout 300
ONTIMEOUT local
MENU TITLE PXE Menu
LABEL Pmajic
MENU LABEL Pmajic
kernel images/pmagic/bzImage
append noapic initrd=images/pmagic/initrd.gz root=/dev/ram0 init=/linuxrc ramdisk_size=100000
label Dos Bootdisk
MENU LABEL ^Dos bootdisk
kernel memdisk
append initrd=images/622c.img
LABEL CentOS 5 x86 NO KS eth0
MENU LABEL CentOS 5 x86 NO KS eth0
KERNEL images/centos/5/x86/vmlinuz
APPEND ks initrd=images/centos/5/x86_64/initrd.img ramdisk_size=100000 ksdevice=eth1 ip=dhcp url --url http://xxx.xxx.xxx.xxx/mirrors/CentOS-5-i386/
LABEL CentOS 5 x86_64 NO KS eth0
MENU LABEL CentOS 5 x86_64 NO KS eth0
KERNEL images/centos/5/x86_64/vmlinuz
APPEND ks initrd=images/centos/5/x86_64/initrd.img ramdisk_size=100000 ksdevice=eth1 ip=dhcp url --url http://xxx.xxx.xxx.xxx/mirrors/CentOS-5-x86_64/
# Module required for active an FTP server using NAT modprobe ip_nat_ftp
/usr/share/doc/dhcp*/dhcpd.conf.sample
ddns-update-style interim
ignore client-updates
subnet 192.168.1.0 netmask 255.255.255.0 {
# The range of IP addresses the server
# will issue to DHCP enabled PC clients
# booting up on the network
range 192.168.1.201 192.168.1.220;
# Set the amount of time in seconds that
# a client may keep the IP address
default-lease-time 86400;
max-lease-time 86400;
# Set the default gateway to be used by
# the PC clients
option routers 192.168.1.1;
# Don't forward DHCP requests from this
# NIC interface to any other NIC
# interfaces
option ip-forwarding off;
# Set the broadcast address and subnet mask
# to be used by the DHCP clients
option broadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;
# Set the NTP server to be used by the
# DHCP clients
option ntp-servers 192.168.1.100;
# Set the DNS server to be used by the
# DHCP clients
option domain-name-servers 192.168.1.100;
# If you specify a WINS server for your Windows clients,
# you need to include the following option in the dhcpd.conf file:
option netbios-name-servers 192.168.1.100;
# You can also assign specific IP addresses based on the clients'
# ethernet MAC address as follows (Host's name is "laser-printer":
host laser-printer {
hardware ethernet 08:00:2b:4c:59:23;
fixed-address 192.168.1.222;
}
}
#
# List an unused interface here
#
subnet 192.168.2.0 netmask 255.255.255.0 {
}
[root@bpehhome2 mapper]# xm shutdown web [root@bpehhome2 mapper]# pwd /dev/mapper [root@bpehhome2 mapper]# kpartx -a /dev/xenvg/XenWeb [root@bpehhome2 mapper]# ls control xenvg-XenAuth xenvg-XenWeb xenvg-XenWebp2 XenWeb2 xenvg-root xenvg-XenCentOSInstall xenvg-XenWeb1 xenvg-XenWebp3 XenWeb3 xenvg-swap xenvg-XenDebianDefault xenvg-XenWebp1 XenWeb1
[root@bpehhome2 mapper]# resize2fs XenWeb2 8500M resize2fs 1.39 (29-May-2006) Please run 'e2fsck -f XenWeb2' first. [root@bpehhome2 mapper]# e2fsck -f XenWeb2 e2fsck 1.39 (29-May-2006) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /: 246385/2395520 files (1.0% non-contiguous), 1044750/2469993 blocks [root@bpehhome2 mapper]# resize2fs XenWeb2 8500M resize2fs 1.39 (29-May-2006) Resizing the filesystem on XenWeb2 to 2176000 (4k) blocks. The filesystem on XenWeb2 is now 2176000 blocks long.
[root@bpehhome2 mapper]# lvresize -L 9000M /dev/xenvg/XenWeb Rounding up size to full physical extent 8.81 GB WARNING: Reducing active and open logical volume to 8.81 GB THIS MAY DESTROY YOUR DATA (filesystem etc.) Do you really want to reduce XenWeb? [y/n]: y Reducing logical volume XenWeb to 8.81 GB Logical volume XenWeb successfully resized
additional information:
http://www.azhowto.com/2009/02/06/how-to-resize-lvm-running-xen-explained-part-1-increase-disk-size/
extending LVM size.
mkinitrd --allow-missing --preload=ahci --force-scsi-probe /boot/initrd-`uname -r`-custom `uname -r`