FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Sat Jan 16, 2021 04:00



Post new topic Reply to topic  [ 9 posts ] 
how to mount a ntfs software raid5 in linux without dmraid? 
Author Message

Joined: Sun Aug 31, 2008 01:31
Posts: 6
Post how to mount a ntfs software raid5 in linux without dmraid?
Hi All,

I have four 500 GB SATA 3G disks, nativity recognized as:

/dev/sda
/dev/sdb
/dev/sdc
/dev/sdd


That contain data created in 2k3 server on the exact same computer as Ubuntu is running. They are connected to a Promise TX4310 (in JBOD mode) which libata Nativity recognizes. dmraid wont recognize them as it does not have a module for that type of promise controller.

I'd like to mount these disks under linux using ntfs-3g (I'm not afraid to remove ubuntu's build and make a native build). But an stymied as how to proceed.

I'm looking for help either getting these disks read or finding another way to meet goal (below)

that said, The goal here is to have a 1.5TB NTFS raid-5 array that is mountable and writable in both Linux and 2k3 server. Total Throughput must exceed the data through put of a 100mps full duplex connection. When using mdadm and jfs this was effected but that means I cant use the disks under 2k3 server.

Permissions under 2k3 are VERY important and inconsequential under linux (a quick script can fix any permissions issues when the 2k3 server is booted). Thus using mdadm is out of the question as a mdadm based raid5 array is not readable under 2k3 (afaik).

I have no problem blowing the array away and rebuilding it to meet the needs of both os's. But frankly I'm stumped as how to get the disks to be read under both os (Promise stopped supporting Linux with Red Hat 9 [centos 4]) so their "hardware" raid is not an option.

as an aside, this is not a traditional production environment but a home computer lab (software QA) use. IF I need to replace the card with another card that's okay so long as the card fits a reasonable budget and is a pci 32/33 or a pci 64/66 card and not a pci-x card.

Any thoughts on how to solve my problem or achieve my goal?


Sun Aug 31, 2008 01:59
Profile
Tuxera CTO

Joined: Tue Nov 21, 2006 23:15
Posts: 1648
Post 
Hi,

Probably you need LDM (Windows Dynamic Disk) to put the volume together. When you have done that one then our project comes to the picture to mount it.


Sun Aug 31, 2008 03:10
Profile

Joined: Sun Aug 31, 2008 01:31
Posts: 6
Post 
szaka wrote:
Hi,

Probably you need LDM (Windows Dynamic Disk) to put the volume together. When you have done that one then our project comes to the picture to mount it.


Okies that part is done. The disks were partitoned and merged into a software raid-5 volume in the windows ux. But what's the steps I need to take to get the disks mounted in linux? I've often mounted a series of single disks with ntfs-3g but never a group of disks as one and cant find the syntax. That's what I'm hung up on. So like a list of command to give would be appreciated :>

Sam S.


Sun Aug 31, 2008 04:12
Profile
Tuxera CTO

Joined: Tue Nov 21, 2006 23:15
Posts: 1648
Post 
http://www.mjmwired.net/kernel/Documentation/ldm.txt
http://www.mjmwired.net/kernel/Document ... s/ntfs.txt


Sun Aug 31, 2008 04:57
Profile

Joined: Sun Aug 31, 2008 01:31
Posts: 6
Post 
szaka wrote:
http://www.mjmwired.net/kernel/Documentation/ldm.txt
http://www.mjmwired.net/kernel/Document ... s/ntfs.txt


thanks allot for those links. I found after search for the "ldm" you mentioned above. After inserting "dm-mod" and "sata-promsie" in my initrd and forcing it's load, I got one step closer. My dmesg indicates the following:

"
# dmesg | grep "LDM"
[ 41.429098] [LDM] sda1
[ 41.429659] sdb: [LDM] sdb1
[ 41.607614] [LDM] sdc1
[ 41.608154] sdd: [LDM] sdd1
#"
Which was not what I was expecting since I had expected to see an entry simmler to the docs that say to expect:
“hda: 102400 sectors w/32KiB Cache, CHS=50/64/32
60 hda: [LDM] hda1 hda2 hda3 hda4 hda5 hda6 hda7”

Moving forward, I verified that each disk had a SFS partition with fdisk:
root@mail:~/ldm/linux-ldm-0.0.8/test# fdisk -l /dev/sd[a-d]

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd190d940

Device Boot Start End Blocks Id System
/dev/sda1 1 60801 488384001 42 SFS

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd190d941

Device Boot Start End Blocks Id System
/dev/sdb1 1 60801 488384001 42 SFS

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd190d942

Device Boot Start End Blocks Id System
/dev/sdc1 1 60801 488384001 42 SFS

Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x05097376

Device Boot Start End Blocks Id System
/dev/sdd1 1 60801 488384001 42 SFS
root@mail:~/ldm/linux-ldm-0.0.8/test#
Then I issued a “mdadm --create /dev/md0 --chunk=64 --level=5 --assume-clean --raid-devices=4 /dev/sda /dev/sdb /dev/sdc /dev/sdd” so I then checked fdisk:
root@mail:~/ldm/linux-ldm-0.0.8/test# fdisk -l /dev/md/0

Disk /dev/md/0: 1500.3 GB, 1500323315712 bytes
255 heads, 63 sectors/track, 182403 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd190d940

Device Boot Start End Blocks Id System
/dev/md/0p1 1 60801 488384001 42 SFS
root@mail:~/ldm/linux-ldm-0.0.8/test#
I tried to mount it and failed:
root@mail:~/ldm/linux-ldm-0.0.8/test#
root@mail:~/ldm/linux-ldm-0.0.8/test# mount -t ntfs-3g /dev/md/0 /mnt/ntfs
NTFS signature is missing.
Failed to mount '/dev/md/0': Invalid argument
The device '/dev/md/0' doesn't have a valid NTFS.
Maybe you selected the wrong device? Or the whole disk instead of a
partition (e.g. /dev/hda, not /dev/hda1)? Or the other way around?
root@mail:~/ldm/linux-ldm-0.0.8/test# mount -t ntfs-3g /dev/md/0/p1 /mnt/ntfs
ntfs-3g: Failed to access volume '/dev/md/0/p1': Not a directory
Please type '/sbin/mount.ntfs-3g --help' for more information.
root@mail:~/ldm/linux-ldm-0.0.8/test# mount -t ntfs-3g /dev/md/0/0p1 /mnt/ntfs
ntfs-3g: Failed to access volume '/dev/md/0/0p1': Not a directory
Please type '/sbin/mount.ntfs-3g --help' for more information.
root@mail:~/ldm/linux-ldm-0.0.8/test# mount -t ntfs-3g /dev/md/0p1 /mnt/ntfs
ntfs-3g: Failed to access volume '/dev/md/0p1': No such file or directory
Please type '/sbin/mount.ntfs-3g --help' for more information.
root@mail:~/ldm/linux-ldm-0.0.8/test#

to get a more through understanding (and because the fdisk looked odd) I checked cfdisk which displayed:
cfdisk (util-linux-ng 2.13.1)

Disk Drive: /dev/md/0
Size: 1500323315712 bytes, 1500.3 GB
Heads: 255 Sectors per Track: 63 Cylinders: 182403

Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------------------------------------------------------------------------------------
0p1 Primary SFS 500105.25
Pri/Log Free Space 1000210.50

Huh? A 500GB partition and a 1TB free space area. No wonder it failed to mount.

So now I’m again stuck. What do I do next? I know there is ~260GB of data there, btw. It’s not critical and I can rebuild it if needed. But I’ld rather not :>

Thanks, btw for your help!


Sun Aug 31, 2008 09:00
Profile

Joined: Sun Aug 31, 2008 01:31
Posts: 6
Post 
Hi,

while looking at the problem I saw that Ubuntu had v. 1.22 of ntfs-3g so I removed their version and built the latest version, did an ldconfig and a depmod -aq for good measure.

however the problem remains -- cfdisk shows a 500gb sfs partition (/dev/md/0p1) with 1TB of free space. When I try to mount this as type ntfs or ntfs-3g it wont mount as the partition table does not contain a valid ntfs signature.

FWIW

Sam S.


Sun Aug 31, 2008 21:40
Profile
Tuxera CTO

Joined: Tue Nov 21, 2006 23:15
Posts: 1648
Post 
You need to use the --build, not the --create mdadm option. See e.g. http://forum.ntfs-3g.org/viewtopic.php?t=492


Sun Aug 31, 2008 21:45
Profile

Joined: Sun Aug 31, 2008 01:31
Posts: 6
Post 
szaka wrote:
You need to use the --build, not the --create mdadm option. See e.g. http://forum.ntfs-3g.org/viewtopic.php?t=492


szaka wrote:
You need to use the --build, not the --create mdadm option. See e.g. http://forum.ntfs-3g.org/viewtopic.php?t=492


Really? The docs seemed clear that was for PAID0/RAID1 and not for raid 5. Anyhow I will give it a go and let you know if it works.

Thanks again,

Sam S.


Sun Aug 31, 2008 22:10
Profile

Joined: Sun Aug 31, 2008 01:31
Posts: 6
Post 
Hi,

I tried several build commands (After zeroing the md raid5 super blocks on /dev/sd[a-d]) as suggested here are the results:

Stripe, Linear = 2.0TB array, a 500gb SFS partition known as /dev/md0p1, 1.5TB free, no mount under ntfs-3g or ntfs
Mirror, raid0, raid1 = a 500GB SFS partition known as /dev/md0p1 only (1 TB of what aught to be effective space is missing), no mount
raid5 = error "mdadm: Raid level raid5 not permitted with --build."
Command base used:
mdadm --build /dev/md0 --chunk=64 -n 4 --level={linear,stripe, mirror,raid0,raid1,raid5} /dev/sda /dev/sdb /dev/sdc /dev/sdd

I also tried adding the -ap option (for a partitionable array) witht he same results.

Expected results: a raid5 array of 4 disks, total usable capacity 1.39TB as reported under Windows 2003 SP1 R2 server.


So the idea of trying "build" did not seem to help.

note that, even after my experiments the array loads just fine in 2k3 server and has remained "healthy" with ~260GB of data in it.
Thanks again for your help!

Sam S.


Mon Sep 01, 2008 04:21
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.