LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2012, 11:40 PM   #1
nblab
LQ Newbie
 
Registered: Jul 2012
Posts: 4
Blog Entries: 1

Rep: Reputation: Disabled
Setting up RHEL4 server with multiple hard disks


hi
i m quite new to linux server, i am having a server. that is allready configured with multiple hard disks, and i need to create 500+ user accounts on this server, so what should be the feasible solution.when i try fdisk -l at terminal i get

Disk /dev/cciss/c0d0: 26.2 GB, 26212270080 bytes
255 heads, 63 sectors/track, 3186 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 2039 16378236 83 Linux
/dev/cciss/c0d0p2 2040 3186 9213277+ 82 Linux swap

Disk /dev/cciss/c0d1: 26.2 GB, 26212270080 bytes
255 heads, 63 sectors/track, 3186 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/cciss/c0d1p1 * 1 2039 16378236 83 Linux
/dev/cciss/c0d1p2 2040 3186 9213277+ 82 Linux swap

Disk /dev/cciss/c0d2: 166.0 GB, 166076497920 bytes
255 heads, 32 sectors/track, 39751 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

Device Boot Start End Blocks Id System
/dev/cciss/c0d2p1 * 1 39750 162179984 83 Linux




>>>>in this output i am not getting the naming convention used for hard disk.
>>>> i am looking to create all user accounts on the Disk /dev/cciss/c0d2 which is showing 166 GB. please tell me how to proceed.
 
Old 07-27-2012, 12:07 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,398

Rep: Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780
c0d0 = disk 0
c0d0p1 = disk 0 partition 1 ... and so on


Is this an HP HW box ?
Show output of
Code:
df -h

cat /etc/fstab

cat /etc/*release*
To create 500 users in a batch, you could roll your own method, but you may want to base it on http://linux.die.net/man/8/newusers


As you are new to Linux, I recommend
http://linux.oneandoneis2.org/LNW.htm
http://rute.2038bug.com/index.html.gz

Welcome to LQ

BTW RHEL4 went out of regular support in February; you should get latest 5.x or 6.x
http://www.redhat.com/security/updates/errata/

If you don't want to pay for updates & support, go with Centos https://www.centos.org/: a free rebuild of RHEL, inc updates but not support.

Last edited by chrism01; 07-27-2012 at 12:09 AM.
 
1 members found this post helpful.
Old 07-27-2012, 12:38 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797

Rep: Reputation: 282Reputation: 282Reputation: 282
I suppose you mean that you want all home directories for the users to be on /dev/cciss/c0d2p1. For this to be possible, /dev/cciss/c0d2p1 needs to be mounted somewhere in the filesystem hierarchy. The obvious choice would be to mount it on /home, but you can mount it anywhere.

chrism01 asked for the output of df -h so we can see if /dev/cciss/c0d2p1 is mounted and where.

During the process of the creation of users, you can specify their home directories and you can simply use 'path_to_mountpoint/userA', 'path_to_mountpoint/userB' etc.

In a standard setup, path_to_mountpoint will translate to /home, but if you mount your disk on a (newly created) directory /extradisk, it will translate to /extradisk
 
1 members found this post helpful.
Old 07-27-2012, 05:30 AM   #4
nblab
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
thanks for the reply ......

here's the output
[root@localhost new]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d1p1 16G 6.4G 8.3G 44% /
none 1.9G 0 1.9G 0% /dev/shm

[root@localhost new]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/osbackup / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/cciss/c0d1p2 swap swap defaults 0 0
/dev/cciss/c0d0p2 swap swap defaults 0 0
/dev/hda /media/cdrom auto pamconsole,fscontext=system_ubject_r:removable_t,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,fscontext=system_ubject_r:removable_t,exec,noauto,managed 0 0

i could not fine any thing for last command cat /etc/*re
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
not able to boot from ssd with multiple hard disks system kapsule Linux - Newbie 6 05-03-2011 05:57 AM
Trouble setting up hard disks with software raid AsgrimTheMighty Linux - Hardware 5 09-30-2007 03:18 AM
setting up grub in a multiple hard drive multiple OS environment svenwinkle Linux - Desktop 2 10-07-2006 07:50 PM
Installing Open BSD over multiple hard disks zaicheke *BSD 2 07-10-2004 07:56 PM
Dual boot on inspiron with multiple hard disks mattkat Linux - Laptop and Netbook 1 09-15-2003 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration