The Asylum Private Messages Options Search Blogs Images Chat Cam Portals Calendar FAQ's Join  
Asylum Forums : Powered by vBulletin version 2.2.8 Asylum Forums > WIT - Whore Institute of Technology > Growing my filesystem
  Last Thread   Next Thread
Author
Thread [new thread]    [post reply]
squee
the amen break

Registered: Jul 2001
Location: Norfolk, VA
Posts: 4701

Growing my filesystem

From what I've been reading, CENTOS comes running Raid0, meaning that if I have several physical disks, then I can span one volume across all the disks.

I was intending to use this feature to add storage capacity to my fileserver by buying some big hard drives over the next year. However, from what I've been reading, I need to blow away the existing volume in order to add new drives to it.

So, does anyone know if I can use growfs to just add a new drive to a volume? Can I just resize the volume to include new physical disks?

__________________
What does polite society know of the secret hearts of men?
What shows the shuttered window but all the evil you can imagine?

Report this post to a moderator | IP: Logged

Old Post 06-08-2006 02:05 AM
squee is offline Click Here to See the Profile for squee Click here to Send squee a Private Message Find more posts by squee Add squee to your buddy list [P] Edit/Delete Message Reply w/Quote
zim
-

Registered: Dec 2002
Location:
Posts: 3063

is it using LVM by default? If so, you may be able to add another physical disk to your current logical volume.

You don't need to stripe if all you want is additional capacity. Striping improves performance, and for your home system, is probably overkill. It also causes your system to become completely useless if you lose a single disk. Better to lose half your data than all, no?

http://en.wikipedia.org/wiki/Logica...ger_%28Linux%29
http://en.wikipedia.org/wiki/Redund...nt_disks#RAID_0

__________________
insert witty remark

Last edited by CHiPsJr on 11-09-2006 at 08:23 AM

Report this post to a moderator | IP: Logged

Old Post 06-08-2006 02:12 AM
zim is offline Click Here to See the Profile for zim Click here to Send zim a Private Message Find more posts by zim Add zim to your buddy list [P] Edit/Delete Message Reply w/Quote
amerikanjunkie
various one

Registered: Aug 2000
Location:
Posts: 1731

Now this is right up my ally...

please post the output of: cat /proc/mdstat

and: lvdisplay

Report this post to a moderator | IP: Logged

Old Post 06-08-2006 02:05 PM
amerikanjunkie is offline Click Here to See the Profile for amerikanjunkie Click here to Send amerikanjunkie a Private Message Find more posts by amerikanjunkie Add amerikanjunkie to your buddy list [P] Edit/Delete Message Reply w/Quote
squee
the amen break

Registered: Jul 2001
Location: Norfolk, VA
Posts: 4701

[squee@localhost ~]# cat /proc/mdstat
Personalities :
unused devices: <none>

...

[squee@localhost ~]# lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID rWQEEv-8Gmk-HA4K-hJxi-Pmlh-JsLi-5KoXFX
LV Write Access read/write
LV Status available
# open 1
LV Size 73.88 GB
Current LE 2364
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:0

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID E6cVRk-Jx7m-mlkz-mlt5-130m-dkXI-ZFehOk
LV Write Access read/write
LV Status available
# open 1
LV Size 512.00 MB
Current LE 16
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:1

I hope you feel like explaining to me what this all means...

__________________
What does polite society know of the secret hearts of men?
What shows the shuttered window but all the evil you can imagine?

Report this post to a moderator | IP: Logged

Old Post 06-09-2006 10:07 PM
squee is offline Click Here to See the Profile for squee Click here to Send squee a Private Message Find more posts by squee Add squee to your buddy list [P] Edit/Delete Message Reply w/Quote
amerikanjunkie
various one

Registered: Aug 2000
Location:
Posts: 1731

no mdstat = no RAID enabled.

lvdisplay = display status of your logical volumes. You have 2.

/dev/VolGroup00 = your physical volume (the actual raw space). More than one disk may make up a Volume Group. It is only the amount of physcial data that may be logically divided.

LogVol00 and LogVol01 are the logical volumes or storage pools in the physical volume.

*** NOTE: Essentially, a logivcal volume if you havnet already figured it out is a storage pool of space that can grow or shrink on command, may span over several disks which you can add or remove as needed on the fly, without fucking up or with partitions.

Ok, you have two volume groups (as previously mentioned), which are part of one physical storage pool VolGroup00. This is the standard default setup of Fedora or Cent, etc. The 512 MB volume (LogVol01) is your swap space, and LogVol00 is your os, and storage space.

Say I wanted to give your swap space 1 gig. I would first need to get that physical space available. I would do this by taking it away from the storage pool (logvol00):
#lvreduce -L 512M VolGroup00/LogVol00

lvreduce reduces a logical volumegroup size, -L specifices I want to be stupid and enter the number in terms an idiot could understand (thus the: 512M), and then of course the physical volume, and the logical volume group.

Now that this done, you now have 512M Physcial of physical storage available to add to your swap. This doesnt mean you can just go: lvextend -L 512M VolGroup00/LogVol01. This will not do anything. Because there is alread 512M there, you have to specify that you are making that volume 1024M, thus:

#lvextend -L 1024M VolGroup00/LogVol01

Type lvdisplay and WALLA, you have extended your swap space to be one gig in size.
My fingers are tired, if you need to know how to add raw space of a new disk to a physical volume, ask, and ill explain in about a week.

Report this post to a moderator | IP: Logged

Old Post 06-22-2006 03:57 PM
amerikanjunkie is offline Click Here to See the Profile for amerikanjunkie Click here to Send amerikanjunkie a Private Message Find more posts by amerikanjunkie Add amerikanjunkie to your buddy list [P] Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 10:14 AM. Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread

Forum Jump:
 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

< Contact Us - The Asylum >

Powered by: vBulletin Version 3.0.6
Copyright ©2000 - 2002, Jelsoft Enterprises Limited.
Copyright © 2000- Imaginet Inc.
[Legal Notice] | [Privacy Policy] | [Site Index]