Sponsored Content
Full Discussion: LUN Presentation
Operating Systems Linux Red Hat LUN Presentation Post 302634465 by Duffs22 on Thursday 3rd of May 2012 12:27:34 PM
Old 05-03-2012
yes positive.
I ran a diff against the fdisk output before and after I rescanned the scsi_bus.

Code:
# sfdisk -d /dev/sdc
sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sdc: unrecognized partition table type
No partitions found
 
# sfdisk -d /dev/sdd
sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sdd: unrecognized partition table type
No partitions found
 
# sfdisk -d /dev/dm-8
# partition table of /dev/dm-8
unit: sectors
/dev/dm-8p1 : start= 63, size= 4192902, Id=83
/dev/dm-8p2 : start= 0, size= 0, Id= 0
/dev/dm-8p3 : start= 0, size= 0, Id= 0
/dev/dm-8p4 : start= 0, size= 0, Id= 0

R,
D.

---------- Post updated at 11:27 AM ---------- Previous update was at 10:19 AM ----------

Ok, I have created the other paths as LVM type the same as my dm-8:

Code:
Disk /dev/sdc: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
 
Device Boot Start End Blocks Id System
/dev/sdc1 1 1009 2095662 83 Linux
 
Disk /dev/sdd: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
 
Device Boot Start End Blocks Id System
/dev/sdd1 1 1009 2095662 83 Linux
 
Disk /dev/dm-8: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
 
Device Boot Start End Blocks Id System
/dev/dm-8p1 1 1009 2095662 83 Linux
 
# multipath -ll
xxrts1_test (3600143800648d7280000800000300000) dm-8 HP,HSV300
[size=2.0G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=100][active]
\_ 0:0:0:2 sdc 8:32 [active][ready]
\_ 0:0:1:2 sdd 8:48 [active][ready]

I added the following filters to the lvm.conf file but did not make any difference to the fdisk output even after a pvscan:

Code:
      # Filters all SCSI devices ijn the multipath config file
      filter = [ "r/disk/", "r/sd.*/", "a/.*/" ]
 
      # Instructs LVM not to look at the path but only at the multipaths:
      filter = [ "r/sd.*/", "a/.*/" ]

R,
D.
 

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

format date/time presentation

1) i am trying to print the timeframe of a log file using the start/end date/time being extracted from the file itself. my problem is how to convert the following numeric date format to the one that i prefer: Start time: 0204161129 End time : 0204171431 into: Start time: Apr 16 2002... (6 Replies)
Discussion started by: apalex
6 Replies

2. Solaris

I have LUN ID, how to find disk relate to that LUN ID?

I have a list of LUN ID, my task is to find if disk has been added or not. How do I do that? I have been searching the forum and not able to find answer. thanks (4 Replies)
Discussion started by: uuontario
4 Replies

3. OS X (Apple)

Wireless presentation system for mac

I am a system developer for a major university and currently trying to find out WPS software for mac that can connect a mac to a wireless projector server. The software functions with Win OS XP and 7. The server is a EDIMAX WP-S1100 WIRELESS PROJECTOR SERVER. (0 Replies)
Discussion started by: mobilemaster
0 Replies

4. Shell Programming and Scripting

Logs Presentation

Hello All, I am trying to capture system logs for specific tools run by users. So my script create logs from 10 different server.So is there any script & tool from that i can read or present them easily ?. Regards Ankit (1 Reply)
Discussion started by: ajaincv
1 Replies
PARTX(8)						      System Manager's Manual							  PARTX(8)

NAME
partx - tell the Linux kernel about the presence and numbering of on-disk partitions SYNOPSIS
partx [-a|-d|-s] [-t TYPE] [-n M:N] [-] disk partx [-a|-d|-s] [-t TYPE] partition [disk] DESCRIPTION
Given a device or disk-image, partx tries to parse the partition table and list its contents. It optionally adds or removes partitions. The disk argument is optional when a partition argument is provided. To force scanning a partition as if it were a whole disk (for example to list nested subpartitions), use the argument "-". For example: partx --show - /dev/sda3 This will see sda3 as a whole-disk rather than a partition. This is not an fdisk program -- adding and removing partitions does not change the disk, it just tells the kernel about the presence and numbering of on-disk partitions. OPTIONS
-a, --add Add the specified partitions, or read the disk and add all partitions. -b, --bytes Print the SIZE column in bytes rather than in human-readable format. -d, --delete Delete the specified partitions or all partitions. -g, --noheadings Do not print a header line. -l, --list List the partitions. Note that all numbers are in 512-byte sectors. This output format is DEPRECATED in favour of --show. Don't use it in newly written scripts. -o, --output list Define the output columns to use for --show and --raw output. If no output arrangement is specified, then a default set is used. Use --help to get list of all supported columns. -r, --raw Use the raw output format. -s, --show List the partitions. All numbers (except SIZE) are in 512-byte sectors. The output columns can be rearranged with the --output option. -t, --type type Specify the partition table type -- aix, bsd, dos, gpt, mac, minix, sgi, solaris_x86, sun, ultrix or unixware. -n, --nr M:N Specify the range of partitions. For backward compatibility also the format <M-N> is supported. The range may contain negative numbers, for example "--nr :-1" means the last partition, and "--nr -2:-1" means the last two partitions. Supported range specifi- cations are: <M> Specifies just one partition (e.g. --nr 3). <M:> Specifies lower limit only (e.g. --nr 2:). <:N> Specifies upper limit only (e.g. --nr :4). <M:N> or <M-N> Specifies lower and upper limits (e.g. --nr 2:4). EXAMPLES
partx --show /dev/sdb3 partx --show --nr 3 /dev/sdb partx --show /dev/sdb3 /dev/sdb All three commands list partition 3 of /dev/sdb. partx --show - /dev/sdb3 Lists all subpartitions on /dev/sdb3 (the device is used as whole-disk). partx -o START -g --nr 3 /dev/sdb Prints the start sector of partition 5 on /dev/sda without header. partx -o SECTORS,SIZE /dev/sda5 /dev/sda Lists the length in sectors and human-readable size of partition 5 on /dev/sda. partx --add --nr 3:5 /dev/sdd Adds all available partitions from 3 to 5 (inclusive) on /dev/sdd. partx -d --nr :-1 /dev/sdd Removes the last partition on /dev/sdd. SEE ALSO
addpart(8), delpart(8), fdisk(8), parted(8), partprobe(8) AUTHORS
Davidlohr Bueso <dave@gnu.org> Karel Zak <kzak@redhat.com> The original version was written by Andries E. Brouwer <aeb@cwi.nl>. AVAILABILITY
The partx command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. 1 Feb 2011 PARTX(8)
All times are GMT -4. The time now is 03:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy