- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Mounting LUNs in RHEL 4 ...
Operating System - Linux
1753521
Members
4820
Online
108795
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2008 01:13 AM
тАО09-12-2008 01:13 AM
Hi,
The RHEL 4 node is connected to HP MSA1000 Storage through switch.
I can see the luns in /proc/scsi/scsi file.
How to use/mount them or present the LUNs to Linux box?
Answers will be really appreciated by quick numbers.
Thanks
The RHEL 4 node is connected to HP MSA1000 Storage through switch.
I can see the luns in /proc/scsi/scsi file.
How to use/mount them or present the LUNs to Linux box?
Answers will be really appreciated by quick numbers.
Thanks
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2008 07:54 AM
тАО09-12-2008 07:54 AM
Solution
You must first check if you can see the disk with:
fdisk -l
The new disk will show that "it does not contain a valid partition table"
In the simple form, you must partition, create a file system, and mount it.
For example, if sdb is your new disk
Partition the disk:
fdisk /dev/sdb
n
p
1
ENTER
ENTER
w
Reload partition table:
partprobe
Create the file system:
mkfs -t ext3 /dev/sdb1
tune2fs -c 0 -m 0 -i 0 /dev/sdb1
Mount:
mkdir /mount_point
mount /dev/sdb1 /mount_point
If you can go further, you may use LVM, but requieres additional job and better understanding of the whole process.
fdisk -l
The new disk will show that "it does not contain a valid partition table"
In the simple form, you must partition, create a file system, and mount it.
For example, if sdb is your new disk
Partition the disk:
fdisk /dev/sdb
n
p
1
ENTER
ENTER
w
Reload partition table:
partprobe
Create the file system:
mkfs -t ext3 /dev/sdb1
tune2fs -c 0 -m 0 -i 0 /dev/sdb1
Mount:
mkdir /mount_point
mount /dev/sdb1 /mount_point
If you can go further, you may use LVM, but requieres additional job and better understanding of the whole process.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2008 11:48 PM
тАО09-14-2008 11:48 PM
Re: Mounting LUNs in RHEL 4 ...
Thanks Ivan Ferreira,
One more question?
how to auto mount the disk/mountpoint every os boot time?
One more question?
how to auto mount the disk/mountpoint every os boot time?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2008 07:32 PM
тАО09-15-2008 07:32 PM
Re: Mounting LUNs in RHEL 4 ...
>Create the file system:
>mkfs -t ext3 /dev/sdb1
>tune2fs -c 0 -m 0 -i 0 /dev/sdb1
If you have followed Ivan Ferriera's above instructions, then open the terminal and open a file "fstab" which is located inside "/etc" directory, do
# gedit /etc/fstab
and append/add the following line
/dev/sdb1 /storage ext3 _netdev,rw,auto 1 2
save and exit from the file
Now create a directory,
# mkdir /storage
then
# mount -a
now execute
# df -hT
the last line of the output will be
/dev/sdb1 ext3 total_size used remaining percentage_used /storage
Now reboot the system, then run "df -hT" to check /dev/sdb1 is mounted on /storage.
Regards
>mkfs -t ext3 /dev/sdb1
>tune2fs -c 0 -m 0 -i 0 /dev/sdb1
If you have followed Ivan Ferriera's above instructions, then open the terminal and open a file "fstab" which is located inside "/etc" directory, do
# gedit /etc/fstab
and append/add the following line
/dev/sdb1 /storage ext3 _netdev,rw,auto 1 2
save and exit from the file
Now create a directory,
# mkdir /storage
then
# mount -a
now execute
# df -hT
the last line of the output will be
/dev/sdb1 ext3 total_size used remaining percentage_used /storage
Now reboot the system, then run "df -hT" to check /dev/sdb1 is mounted on /storage.
Regards
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP