File Server and Raid

ruscook ruscook_oz at yahoo.com.au
Wed Nov 15 06:27:17 UTC 2006


On Tue, 2006-11-14 at 18:23 +0000, Richard Brown wrote:

> Hi Gabe
> 
> On 14/11/06, Gabriel Dragffy <dragffy at yandex.ru> wrote:
> > Hmm I didn't read in your post that the resolution was up the creek.
> > But that's a very good point, I have installed a server and set the res
> > to something like 1024x768 but when the system boots to the prompt only
> > half the screen is used. What's the fix for that then?
> Not quitre sure what I did that fixed that! One minute it wasn't next
> minute it was! I'll try and see if I can work it out.
> 
> In the meantime, my problem is not fixed. I booted from the
> alternative disk and set-up my hard drive as follows:
> Hard Drive One
> 10 gig / root and bootable - ext3
> 1 gig swap
> 220 gig + /home - raid 1
> 
> Hard Drive Two
> 10 gig /tmp - ext3
> 1 gig swap
> 220 gig + /home - raid 1
> 
> What has happened is that the 10 gig /root has been configured with a
> /home partition and is only 6.5 gig in size. How do I stop Ubuntu
> doing this and use the /home 220 gig and raid the data. To be honest I
> am beginning to think it would be easier to mount the second hard
> drive in a caddy and use it as a backup drive!
> 
> Any ideas please?

Yes don't use /home from the first  disk, edit /etc/fstab to ensure that
whatever partition is you want for /home is mounted.
Please post the results of your fdisk -l command

Here's mine:

$ fdisk -l

Disk /dev/sda: 320.0 GB, 320071851520 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1216     9767488+  fd  Linux raid autodetect
/dev/sda2            1217        1240      192780   fd  Linux raid autodetect
/dev/sda3            1241        1726     3903795   fd  Linux raid autodetect
/dev/sda4            1727       38913   298704577+   5  Extended
/dev/sda5            1727       37700   288961123+  fd  Linux raid autodetect
/dev/sda6           37701       38913     9743391   fd  Linux raid autodetect

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1216     9767488+  fd  Linux raid autodetect
/dev/sdb2            1217        1240      192780   fd  Linux raid autodetect
/dev/sdb3            1241        1726     3903795   fd  Linux raid autodetect
/dev/sdb4            1727       38913   298704577+   5  Extended
/dev/sdb5            1727       37700   288961123+  fd  Linux raid autodetect
/dev/sdb6           37701       38913     9743391   fd  Linux raid autodetect


Here's my fstab:
 /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/md0        /               xfs     defaults        0       1
/dev/md1        /boot           ext3    defaults        0       2
/dev/mapper/home-home /home           xfs     defaults        0       2
/dev/md4        /tmp            xfs     defaults        0       2
/dev/md2        none            swap    sw              0       0


Here's how home was setup in lvm
sudo pvdisplay 
  --- Physical volume ---
  PV Name               /dev/md3
  VG Name               home
  PV Size               275.57 GB / not usable 0   
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              70547
  Free PE               0
  Allocated PE          70547
  PV UUID               2L3F4z-Urkc-npw6-mZ3P-85TZ-8RS8-C3fLue
   
sudo lvdisplay 
  --- Logical volume ---
  LV Name                /dev/home/home
  VG Name                home
  LV UUID                5pK8Hu-SOI2-ZmWH-Pdsv-isrl-ZHMZ-n3MzsQ
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                275.57 GB
  Current LE             70547
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:0


Hopefully these will help.


Kind Regards Russell
==================
www.windsorcycles.com.au
sales at windsorcycles.com.au
ph. 02 4577 3209
bikes.no-ip.info
Linux user #369094
================== 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20061115/fd7ea877/attachment.html>


More information about the ubuntu-users mailing list