LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Access Denied - logical disk (PERC RAID) (https://www.linuxquestions.org/questions/linux-newbie-8/access-denied-logical-disk-perc-raid-938143/)

Gyrogypsy 04-04-2012 04:15 PM

Access Denied - logical disk (PERC RAID)
 
Hi All,

Complete Newbie here, so please be gentle. I am forcing myself off all MS products and will accept as much support as anyone is willing to give me. It is all extremely appreciated.

I have a Dell PE2900 with a 6 disc PERC RAID5 array. Everything is fine, FC16, all logical discs mounted including the PERC RAID array which is showing as one logical volume. Using KDE.

The RAID array shows up in Dolphin with just the usual lost+found, but I cannot create any folders or move anything to it - the "Create New" is just greyed out. I am quite sure it is a permissions thing, but I need some guidance here to get this. I have been looking through the forums, however I believe this is a pretty simple problem so may not be answered by the experts. Can anybody assist here?

Much appreciated from a desperate to learn Newbie.

suicidaleggroll 04-04-2012 04:23 PM

Could you post the output of
Code:

fdisk -l
as root?

Gyrogypsy 04-04-2012 04:53 PM

Hi - Here it is... Hey I appreciate your help! Many thanks!

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00090277

Device Boot Start End Blocks Id System
/dev/sda1 2048 163842047 81920000 83 Linux
/dev/sda2 163842048 180226047 8192000 82 Linux swap / Solaris
/dev/sda3 180226048 543223807 181498880 83 Linux
/dev/sda4 543223808 625142447 40959320 5 Extended
/dev/sda5 * 543225856 625141759 40957952 83 Linux

Disk /dev/sdb: 2497.8 GB, 2497791918080 bytes
255 heads, 63 sectors/track, 303672 cylinders, total 4878499840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00012b25

Device Boot Start End Blocks Id System
/dev/sdb1 2048 4294967295 2147482624 83 Linux

syg00 04-04-2012 05:00 PM

How about
Code:

df -hT
cat /etc/fstab

(use code tags)

suicidaleggroll 04-04-2012 05:03 PM

Who set up the filesystem on the RAID and how is it being mounted? It looks like it's an array of 6 500GB disks in RAID5, giving you an array size of 2.5TB. Is that right? I notice it's not using a GPT partition table, which means the partition is going to be limited to 2TB.

Posting the output of "df -h" should confirm this, assuming the RAID is currently mounted. Posting the output of "cat /etc/fstab" will show how it's being mounted.

Edit: beat to the punch

Gyrogypsy 04-04-2012 05:05 PM

Hi..

Code:

[root@FC16 Documents]# df -hT
Filesystem    Type      Size  Used Avail Use% Mounted on
rootfs        rootfs    39G  7.1G  30G  20% /
devtmpfs      devtmpfs  2.0G    0  2.0G  0% /dev
tmpfs          tmpfs    2.0G  276K  2.0G  1% /dev/shm
/dev/sda5      ext4      39G  7.1G  30G  20% /
tmpfs          tmpfs    2.0G  50M  1.9G  3% /run
tmpfs          tmpfs    2.0G    0  2.0G  0% /sys/fs/cgroup
tmpfs          tmpfs    2.0G    0  2.0G  0% /media
/dev/sda3      ext4      173G  2.7G  162G  2% /tmp
/dev/sda1      ext4      79G  1.4G  73G  2% /home

and

Code:

[root@FC16 Documents]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Mon Apr  2 23:34:54 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=f15a96c8-098b-4c6d-9001-018b4d925f8f /                      ext4    defaults        1 1
UUID=f7246cb5-c908-48c3-bf80-077e1b1f3f8a /home                  ext4    defaults        1 2
UUID=5f422947-bf54-4448-ba23-d9c67f8c5a69 /tmp                    ext4    defaults        1 2
UUID=aefcd32b-7a2f-4564-9129-8b083df4024a swap                    swap    defaults        0 0


suicidaleggroll 04-04-2012 05:07 PM

Your RAID is not currently mounted. Is this how the system looks when you launch Dolphin and see the Lost+Found? Where is this Lost+Found directory that you see?

Gyrogypsy 04-04-2012 05:09 PM

suicidaleggroll - you are correct.. 6x500GB.

The Fedora16 installer and the partitioning tool was used to setup the install, although the RAID is hardware managed by the PERC.

I have posted the output.

Gyrogypsy 04-04-2012 05:13 PM

I am using Dolphin.

On the left pane I see 4 disks mounted...
39.1GB
2.0TB
78.1GB
173.1GB

When selecting the 2.0TB, the only thing in the right pane showing is the lost+found.

suicidaleggroll 04-04-2012 05:16 PM

I believe the partitioning tool used in the Fedora installer is fdisk-based, which can't handle GPT so it can't do more than 2TB. The following will switch your RAID to a GPT partition table, make a single partition the full size, and create an ext4 filesystem on it. This operation WILL DESTROY ANYTHING ON THE ARRAY, so make sure there isn't anything you need on it, and make sure you use the correct device name (which, according to your fdisk output earlier, is /dev/sdb).

Code:

parted /dev/sdb
mklabel gpt
mkpart primary 1 -1
quit
mkfs.ext4 /dev/sdb1

You'll probably want to shrink the reserved sector, since it's unnaturally large
Code:

tune2fs -r 20000 /dev/sdb1
Finally, you can mount it somewhere
Code:

mkdir -p /mnt/perc_raid
mount /dev/sdb1 /mnt/perc_raid

At this point, you should be able to read/write to /mnt/perc_raid to test the array.

syg00 04-04-2012 05:33 PM

Perhaps we should find out what the OP actually wants first before reconfiguring the disk. Simple enough to add another partition and add the pv to the vg.
What are you planning on using the array for - LVM particularly ?. Multiple filesystems ?. One large filesystem ?.

Gyrogypsy 04-04-2012 05:36 PM

It will be set up as one large filesystem. The unit will be a file server for around 20 users on a LAN.
I am just running through the instructions below.. will post the outcome shortly...

suicidaleggroll 04-04-2012 05:44 PM

Quote:

Originally Posted by syg00 (Post 4644897)
Perhaps we should find out what the OP actually wants first before reconfiguring the disk. Simple enough to add another partition and add the pv to the vg.

True. I've found that the Fedora installer falls on its face with any disks (or RAID arrays) >2TB though. Even if you only want a 2TB partition on it and don't want GPT, it still does some really weird stuff. Every time I set up a Fedora system with a >2TB disk, I always have to go back and re-partition it manually before the system will use it correctly. I figured I'd just skip all of the middle steps in trying to figure out how to use the disk as it stands and just post how to switch it over and repartition it from scratch, since that's most likely where the conversation would have ended up anyway. Especially since he had just created it and the array was blank, there's no need to worry about lost data.

Gyrogypsy 04-04-2012 05:54 PM

Gentlemen (or Ladies of course). Your help was invaluable and now it is mounted and formatted correctly.

However - I can only write to it as root. How do I change permissions?

suicidaleggroll 04-04-2012 05:58 PM

That's probably because the mount location (/mnt/perc_raid in my example) was created as root. Chmod 777 /mnt/perc_raid should fix that.

Once you're satisfied with how it's working, you should decide on a permanent location for the array in your filesystem, and then add it to /etc/fstab to mount it automatically. You probably won't want 777 permissions permanently, instead you'll want to set the owner and group properly and switch it to maybe 755 or 775. It all depends on where you're going to put it and what you're going to do with it though.


All times are GMT -5. The time now is 04:30 AM.