- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Disk Partioning
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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-08-2004 11:22 PM
09-08-2004 11:22 PM
Disk Partioning
i have just now added 2 146 GB hard disks to my server. let me know how do i partion these disks in linux and create mount points.
i know this in hp-unix but i dont know linux.
any help will be greatly appriciated.
thanks in advance.
goivnd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 11:37 PM
09-08-2004 11:37 PM
Re: Disk Partioning
Allot of tools differ on Linux distro's but fdisk will work to partition the disks.
With large disks I like to use LVM.
If you run RedHat check the tool Diskdruid.
On SuSE you find an interface running Yast.
Because you used to work with HP-UX, you can create a look alike /etc/fstab
A sample of mine using LVM:
/dev/system/HOME /home reiserfs defaults 1 2
/dev/system/LOCAL /local reiserfs defaults 1 2
/dev/system/OPT /opt reiserfs defaults 1 2
If you still like the commandline:
Check man lvcreate and mkfs (or mkreiserfs ...)
HTH,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 11:42 PM
09-08-2004 11:42 PM
Re: Disk Partioning
To create an LVM partition you have to use the ID 83 in fdisk:
example:
/dev/hda1 384 2343 14817600 8e Linux LVM
After this you can use vgcreate (check manpage)
All looks much the same as on HP-UX.
Good luck,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 03:07 AM
09-09-2004 03:07 AM
Re: Disk Partioning
thats Good Utility :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 08:23 AM
09-09-2004 08:23 AM
Re: Disk Partioning
After a reboot run the 'ext2fs' or 'ext2fs -j'
utility on the newly created partition. This is making the filesystem on the partition (ext2 or ext3 - use the proper mkfs command to match the filesystem type you are creating.)
Create the mount point and mount. Make the corresponding entry in the fstab as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 08:56 PM
09-09-2004 08:56 PM
Re: Disk Partioning
the simpliest way to get the new partition running is:
- create it first with fdisk
for simple partioion you should take ID 83
(swap is ID 82, Linux LVM is ID 8E, Linux Software Raid is ID FD)
- set mount points in /etc/fstab for example:
/dev/hda3 / ext3 defaults 0 0
first field is the hardware device
second field is the mountpoint
third field is the filesystem (for security you should use ext3 or reiserfs)
fourth field are the fs-option see man mount (default should work fine)
the fifth field is used to tell the dump command if it should determine if filesystem should be dumped (0 means never dump)
the sixth field is used to tell fsck in which order it should scan the filesystems 1 means it is scand first, 2 means it is scand if all filesystems with a 1 has finished, ... 0 means never scan a filesystem
- next you have to create the fs by using mkreiserfs or the apropiate mkfs tool you prefer
for more security you can mirror the two drives with an software raid (RAID 1)
then you have to asign the partitions the ID FD in fdisk. then you have to create a raidtab file in /etc (manpage raidtab(5)) and refer the mans for mkraid, raidstop, raidstart, raidhotadd, raidhotremove
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2004 04:31 AM
09-10-2004 04:31 AM
Re: Disk Partioning
found this site a while ago.
You may find some interesting stuff.
Enjoy !
http://jamesthornton.com/redhat/linux/6.2/Reference-Guide/ch-partitions.html
Regards,
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2004 04:48 AM
09-10-2004 04:48 AM
Re: Disk Partioning
There is the command 'fdisk -l' that will output the partitioning scheme that has been configured on the system. I always get a backup copy of this output as well. But it can provide you with info as to how the other partitions are configured, the types, etc...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2004 10:31 PM
09-10-2004 10:31 PM
Re: Disk Partioning
thanks for the inputs. my question is how to find the disk names. like /dev/hda..
whats the command that lists the disk drives names of the disks which i inserted newly.
thanks
Govind
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2004 06:01 PM
09-12-2004 06:01 PM
Re: Disk Partioning
- if you add IDE disk - it will be /dev/hda and hdb for first IDE controller, hdc and hdd for the second one
- for SCSI disks - /dev/sdX
- if it doesn't help, send us model of you server/RAID/etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2004 09:15 PM
09-12-2004 09:15 PM
Re: Disk Partioning
What's I saying has been said....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2004 11:27 PM
09-12-2004 11:27 PM
Re: Disk Partioning
look at "/proc/scsi/" or "/proc/ide/" there you will find much information about your ide and scsi controller and drives
for example my "/proc/ide/" locks like this:
[root@rondra ide]# ls -al
total 0
dr-xr-xr-x 4 root root 0 Sep 13 13:03 .
dr-xr-xr-x 49 root root 0 Jul 27 16:00 ..
-r--r--r-- 1 root root 0 Sep 13 13:03 drivers
lrwxrwxrwx 1 root root 8 Sep 13 13:03 hda -> ide0/hda <----- first device
lrwxrwxrwx 1 root root 8 Sep 13 13:03 hdc -> ide1/hdc <----- second device
dr-xr-xr-x 3 root root 0 Sep 13 13:03 ide0
dr-xr-xr-x 3 root root 0 Sep 13 13:03 ide1
-r--r--r-- 1 root root 0 Sep 13 13:03 via
so i can see there are to device on the ide bus named hda (primary master), hdc (secondary master).
There device names are /dev/hda and /dev/hdc.
There Partition names are:
[root@rondra ide]# fdisk -l
Disk /dev/hda: 30.7 GB, 30738677760 bytes
255 heads, 63 sectors/track, 3737 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 32 257008+ 83 Linux
/dev/hda2 33 3671 29230267+ 83 Linux
/dev/hda3 3672 3737 530145 82 Linux swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 03:10 AM
09-13-2004 03:10 AM
Re: Disk Partioning
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 03:11 AM
09-13-2004 03:11 AM