Steps to have lvm running on your system.
- find a partition or disk that is not used - I have /dev/sda10
- pvcreate /dev/sda10 (creates the physical volume)
- vgcreate VolGroup00 /dev/sda10 (creates a volume group)
- lvcreate -L 40GB -nTempVolume VolGroup00 (create a volume with 40GB with the name TempVolume under the volume group VolGroup00)
- mkfs.ext3 /dev/mapper/VolGroup00-TempVolume (creates the filesystem ext3 type on the TempVolume)
- mkdir /mnt/IMAGE (create a directory to mount the volume)
- mount /dev/mapper/VolGroup00-TempVolume /mnt/IMAGE
- mount (shows /dev/mapper/VolGroup00-TempVolume on /mnt/IMAGE type ext3 (rw))
That's it! You can start using the new mount point.
Thursday, January 28, 2010
Saturday, January 9, 2010
Rsync from linux mirrors without warning
Did you try to rsync and get lots of warnings because it can't change the owner or
the group ? This is caused by the fact that the rsync servers have a user id as owner
that doesn't exists on your system. Same goes for the group.
So if you want to have the verbose -v and no warnings you will need to use the
--no-o meaning no owner
--no-g meaning no group
This tells rsync on your server not to preserve the above
rsync -avz --no-g --no-o rsync://centos.mirror/centos/5/os/i386/ /my/repo
the group ? This is caused by the fact that the rsync servers have a user id as owner
that doesn't exists on your system. Same goes for the group.
So if you want to have the verbose -v and no warnings you will need to use the
--no-o meaning no owner
--no-g meaning no group
This tells rsync on your server not to preserve the above
rsync -avz --no-g --no-o rsync://centos.mirror/centos/5/os/i386/ /my/repo
Labels:
command line,
linux,
rsync
Subscribe to:
Posts (Atom)