02 Oct 2012 Configure Disks Centaurus # Harddisk_098, a 1 TB SATA drive, has been installed as a data drive. dmesg | grep disk [ 0.909042] PM: Resume from disk failed. [ 1.438224] sd 3:0:0:0: [sdb] Attached SCSI disk [ 1.485783] sd 2:0:0:0: [sda] Attached SCSI disk df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 274G 3.2G 257G 2% / mount /dev/sda1 on / type ext3 (rw,errors=remount-ro) /sbin/fdisk -cu /dev/sdb p Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0x1869569f Device Boot Start End Blocks Id System --blank-- n(ew) p(rimary) partition 1 first sector 2048 last sector 1953525167 (default) p(rint) Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0x1869569f Device Boot Start End Blocks Id System /dev/sdb1 2048 1953525167 976761560 83 Linux w(rite) 17:41 /sbin/mkfs.ext3 -v -L data01 /dev/sdb1 mke2fs 1.41.12 (17-May-2010) fs_types for mke2fs.conf resolution: 'ext3', 'default' Calling BLKDISCARD from 0 to 1000203837440 failed. Filesystem label=data01 OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 61054976 inodes, 244190390 blocks 12209519 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=0 7453 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000, 214990848 Writing inode tables: 1799/7453 done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 37 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. 17:47 mkdir /media/data01 vi /etc/fstab add LABEL=data01 /media/data01 ext3 user,errors=remount-ro 0 1 mount /media/data01 df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 274G 3.2G 257G 2% / /dev/sdb1 917G 200M 871G 1% /media/data01 17:55 /sbin/reboot 18:05 df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 274G 3.2G 257G 2% / /dev/sdb1 917G 200M 871G 1% /media/data01 /etc/init.d/suckudp stop rm -rf /var/www/data ln -s /media/data01 data chgrp das /media/data01 chmod 2775 /media/data01 18:12 ls -la /var/www/data/ total 32 drwxrwsr-x 5 root das 4096 Oct 3 01:24 . drwxr-xr-x 5 root root 4096 Oct 3 00:49 .. drwxr-xr-x 3 root root 4096 Oct 3 01:10 localhost drwx------ 2 root root 16384 Oct 3 00:45 lost+found drwxr-sr-x 3 das das 4096 Oct 3 01:24 oceanus chmod 2775 /var/www/data/oceanus rm -rf /var/www/data/oceanus/suds /etc/init.d/suckudp restart ls -al /var/www/data/oceanus drwxrwsr-x 3 das das 4096 Oct 3 01:30 . drwxrwsr-x 5 root das 4096 Oct 3 01:24 .. drwxr-sr-x 3 das das 4096 Oct 3 01:30 suds # Hmm, I need to look at umask to see why suds is not group wriatable.