Hi, I've installed a samba fileserver with swat a tima ago. Now i've installed a new harddisk to it, becouse the diskspace became to small. I can see the disk with fdisk -l. But how do I mount this disk to the rest. fdisk show the following info: Schijf /dev/sde: 400.0 GB, 400088457216 bytes 255 koppen, 63 sectoren/spoor, 48641 cilinders Eenheid = cilinders van 16065 * 512 = 8225280 bytes Schijf-ID: 0x00000000 Schijf /dev/sde bevat geen geldige partitietabel I've looked at the article "LVM for beginners" but I don't knwo which parameters I should take. Becouse all the stuff which is already on the other disks, i'm scared to lose this if i make a mistake.
I don't know. When I installed Samba with SWAT I did a minimal install of fedora. Then the volume is created. But I don't know how to add the new device to this volume.
[root@server3 ~]# df -h Bestandssysteem Grtte Gebr Besch Geb% Aangekoppeld op /dev/mapper/VolGroup00-LogVol00 1,2T 1,1T 17G 99% / /dev/sda1 194M 19M 166M 11% /boot tmpfs 374M 0 374M 0% /dev/shm And in fstab: [root@server3 ~]# vi /etc/fstab /dev/VolGroup00/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0
Ok, you're using LVM, so you can add the new hard drive to it. Take a look at http://www.howtoforge.com/linux_lvm
Almost a year later (and a lot of troubles behind me) I picked up this problem again. I already added the disk (thanks Falko!) and with vgdisplay I can see that the disk is added to the volume. But SWAT doesn't see the extra space (when I connect with a windows client with explorer). It still shows the old volumesize, and it's not possible to copy more data to it. Do I need to do something else in SWAT? Changing parameters or something? grtz, jawis
I Think I know where the problem is, but I don't know how do I solve this. There's a different between the size of lvdisplay(1.18TB) and vgdisplay(1.54TB). Do I need to unmount and remount the whole volumegroup again? And if yes, will I lose my data?
This only means that your logical volumes are not using all the space in your volume group. If you want to change that, you can do it with the lvextend command (also see http://www.howtoforge.com/linux_lvm ).