LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-04-2003, 12:29 AM   #1
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Rep: Reputation: 15
lvm and raid


I have inherited a system with a very strange drive. it has 2 software raid volums, three logical, and 1 ext3 root partition that is nearly full.
when the physical volume gets full does striping occur on its own? how does this work. How does lvm and interact? Thanks.
 
Old 05-04-2003, 03:01 AM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
can you elaborate on this setup a little more?

It would probably help to list the partitions, RAID configuration, LVM configuration and mount points in order to give a reasonable account of what's really going on.
 
Old 05-04-2003, 11:44 AM   #3
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Original Poster
Rep: Reputation: 15
any help regarding how to manage this drive would be greatly appreciated.

/dev/hda1 1541680 52392 1410976 4% /boot
none 240160 0 240160 0% /dev/shm
/dev/hdb1 9614116 320236 8805508 4% /shared
/dev/cdrom 128 128 0 100% /mnt/cdrom




Using /dev/hda
Information: The operating system thinks the geometry on /dev/hda is
7297/255/63. Therefore, cylinder 1024 ends at 8032.499M.
(parted) print -vv
Disk geometry for /dev/hda: 0.000-57241.898 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 1529.626 primary ext3 boot
2 1529.626 57239.406 extended lba
5 1529.657 19045.810 logical ntfs
8 19045.841 29047.214 logical ext3
9 29047.245 34043.994 logical lvm
10 34044.025 38546.586 logical raid
7 38546.618 56282.409 logical raid
6 56282.440 57239.406 logical linux-swap
 
Old 05-04-2003, 01:54 PM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
whoah. all on one disk?

Is there any critical data on this thing?
 
Old 05-04-2003, 05:06 PM   #5
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Original Poster
Rep: Reputation: 15
no critical data whatsoever I would just lke to learn how to make more space available for the physical volumes.
Should I use parted to move /root (for instance) to its own physical volume first. /home ? What is a working plan i could play with?
thanx
 
Old 05-04-2003, 05:09 PM   #6
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
what's the output from 'mount'?
 
Old 05-04-2003, 05:13 PM   #7
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Original Poster
Rep: Reputation: 15
/dev/hda8 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
/dev/hdb1 on /shared type ext3 (rw)
 
Old 05-04-2003, 05:21 PM   #8
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
how about 'cat /proc/mdstat' and 'vgscan'?

You certainly do have a _lot_ of partitions on that drive...
 
Old 05-04-2003, 06:09 PM   #9
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Original Poster
Rep: Reputation: 15
Personalities :
read_ahead not set
unused devices: <none>
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume group
 
Old 05-04-2003, 06:14 PM   #10
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
ok... what happens when you try to mount the RAID partition?
'mount /dev/hda7 /mnt' (and try hda10 as well)
 
Old 05-04-2003, 06:40 PM   #11
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Original Poster
Rep: Reputation: 15
[root@linux root]# mount /dev/hda7 /mnt
mount: you must specify the filesystem type

root@linux root]# mount -t raid /dev/hda7 /mnt
mount: fs type raid not supported by kernel

my command was probably wrong here


root@linux root]# mount /dev/hda8 /mnt
[root@linux root]#

no complaints this time
 
Old 05-04-2003, 07:09 PM   #12
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
mkay. looks like /dev/hda7 has no filesytem created on it or is part of a broken RAID array. look in dmesg or /var/log/boot.msg to see what your kernel has to say about RAID volumes when booting up.

/dev/hda8 is already mounted in the / directory. let's not mount it twice.
 
Old 05-05-2003, 12:05 AM   #13
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Original Poster
Rep: Reputation: 15
okay thanks those were hlpfull sugestions i used parted to convert that broken raid partition to ext2. Now how can i utilize the storage of the logical and rand partitions?

md: invalid raid superblock magic on hda7
md: hda7 has invalid sb, not importing!
md: could not import hda7!
[events: 00000000]
hda: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hda: drive_cmd: error=0x04 { DriveStatusError }
 
Old 05-05-2003, 12:17 AM   #14
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Original Poster
Rep: Reputation: 15
Disk geometry for /dev/hda: 0.000-57241.898 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 1529.626 primary ext3 boot
2 1529.626 57239.406 extended lba
5 1529.657 19045.810 logical ntfs
8 19045.841 29047.214 logical ext3
9 29047.245 34043.994 logical lvm
10 34044.025 38546.586 logical raid
7 38546.618 56282.409 logical ext2
6 56282.440 57239.406 logical linux-swap
 
Old 05-05-2003, 12:54 PM   #15
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Original Poster
Rep: Reputation: 15
here is my the current state of the drive. I would really appreciate some information pertaining to how you designated data for the raid and lvm partitions. Do you simply command x mb to a designated primary partition or mount point or do you configure it in such a way that WHEN a ext3 partition reaches a certain capacity data is then designated to the lvm or raid partitions. Also how is striping propogated? I am not interested in reduncies for backup purposes only HOW to use the very basic functions of striping and alloting more virtual memory for a swelling partition.
thanx

[root@linux root]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda8 10080488 5185212 4383208 55% /
/dev/hda1 1541680 68524 1394844 5% /boot
none 240160 0 240160 0% /dev/shm
/dev/hdb1 9614116 621680 8504064 7% /shared
/dev/hda7 17876088 2417128 14550888 15% /ourhouse
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID/LVM setup with existing drives juu801 Linux - General 3 07-06-2005 12:35 AM
Lvm Raid jagster Linux - Hardware 2 06-16-2005 12:40 AM
LVM EXT3 RAID Double Trouble tokehs Fedora 0 04-03-2005 11:37 AM
Partition type LVM & Raid siawash Linux - Newbie 16 07-13-2004 06:37 PM
LVM and Raid Cybercool Linux - Newbie 17 03-11-2004 07:09 AM


All times are GMT -5. The time now is 05:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration