LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-18-2007, 01:19 PM   #1
zdenisl
Member
 
Registered: Nov 2005
Distribution: CentOS-4
Posts: 41

Rep: Reputation: 15
Identify a striped LV


I can't find a way to verify if a LV is striped.
Is there a command which will show me if striping is enabled for a LV?

Thanks.
 
Old 06-18-2007, 01:35 PM   #2
jlg3
LQ Newbie
 
Registered: Jun 2007
Posts: 5

Rep: Reputation: 0
cat /proc/mdstat does it for me.

Code:
[root@qpak mnt]# cat /proc/mdstat
Personalities : [raid0] [raid1]
md0 : active raid0 hdb1[1] hda2[0]
      154207744 blocks 256k chunks

md1 : active raid1 sda1[0] sdb1[1]
      104320 blocks [2/2] [UU]

md2 : active raid1 sda2[0] sdb2[1]
      156183808 blocks [2/2] [UU]

unused devices: <none>
This shows a RAID 0 array (striped) using 2 IDE hard drives and two RAID 1 arrays (mirror) using 2 SATA drives.

If you want to dig further then fdisk -l will show how the drives are partitioned:

Code:
[root@qpak mnt]# fdisk -l /dev/hda

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14        9612    77103967+  fd  Linux raid autodetect
[root@qpak mnt]# fdisk -l /dev/hdb

Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1        9599    77103936   fd  Linux raid autodetect
/dev/hdb2            9600        9729     1044225   82  Linux swap
[root@qpak mnt]# fdisk -l /dev/sda

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   fd  Linux raid autodetect
/dev/sda2              14       19457   156183930   fd  Linux raid autodetect
[root@qpak mnt]# fdisk -l /dev/sdb

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13      104384+  fd  Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sdb2              13       19457   156183967   fd  Linux raid autodetect
[root@qpak mnt]#
 
Old 06-18-2007, 01:45 PM   #3
zdenisl
Member
 
Registered: Nov 2005
Distribution: CentOS-4
Posts: 41

Original Poster
Rep: Reputation: 15
I don't see how the above examples show that LVM is striping the data across the pv's.

However, I did just find my answer!

Code:
[root@rhel014 ~]# lvdisplay --maps /dev/stripe_54/stripe_54
  --- Logical volume ---
  LV Name                /dev/stripe_54/stripe_54
  VG Name                stripe_54
  LV UUID                t3Bb9U-yiwM-uLgE-xajs-VoUJ-jngM-ZfJt1X
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                179.94 GB
  Current LE             46064
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:0
   
  --- Segments ---
  Logical extent 0 to 46063:
    Type                striped
    Stripes             4
    Stripe size         4 KB
    Stripe 0:
      Physical volume   /dev/dasdj1
      Physical extents  0 to 11515
    Stripe 1:
      Physical volume   /dev/dasdk1
      Physical extents  0 to 11515
    Stripe 2:
      Physical volume   /dev/dasdl1
      Physical extents  0 to 11515
    Stripe 3:
      Physical volume   /dev/dasdm1
      Physical extents  0 to 11515
The "--map" option.
 
Old 06-18-2007, 02:00 PM   #4
zdenisl
Member
 
Registered: Nov 2005
Distribution: CentOS-4
Posts: 41

Original Poster
Rep: Reputation: 15
Another way...
Code:
[root@rhel014 ~]# lvs --segments
  LV          VG              Attr   #Str Type    SSize   
  stripe_54   stripe_54       -wi-ao    4 striped 179.94G 
  stripe_54-b stripe_54       -wi-ao    4 striped 179.94G 
  tsm-pad5-01 tsm-pad5-nosrdf -wi-ao    1 linear   44.98G 
  tsm-pad5-02 tsm-pad5-nosrdf -wi-ao    1 linear   44.98G 
  tsm-pad5-03 tsm-pad5-nosrdf -wi-ao    1 linear   44.98G 
  mlextras    vg-mlextras     -wi-ao    1 linear    1.02G 
  tivoli      vg1             -wi-ao    1 linear    2.05G
 
Old 01-24-2010, 08:23 AM   #5
kajio11
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Rep: Reputation: 0
Thanx alot

Thanx alot for the information...

It really helped
 
  


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
help to identify a logo devbro General 2 03-22-2007 09:29 AM
raid, striped. How to mount on new system jma Linux - Hardware 2 11-22-2005 02:36 PM
9.1 install on 3 striped drives monster98 Slackware - Installation 2 08-05-2004 02:23 PM
win2k striped drive...reformat for mdk9.2? alionraa Linux - Hardware 0 01-14-2004 07:00 PM
Dual boot XP+RH9 on Striped SATA Jestrik Linux - Hardware 0 12-09-2003 03:44 AM


All times are GMT -5. The time now is 12:19 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