White Papers

10
This filesystem will be automatically checked every 28 mounts
or 180 days, whichever comes first. Use tune2fs -c or -i to
override.
6) Create the mount point and mount the filesystem:
# mkdir /mnt/sles1
# mount t ext3 /dev/sdb /mnt/sles1
7) Add the filesystem to the /etc/fstab file to mount it at boot. Here is the edited fstab
file, with the new entry displayed in RED text:
# cat /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/sdb /mnt/sles1 ext3 _netdev,defaults 0 0
Note: the ‘_netdev” mount option ensures that the PS Series volume is mounted at the
correct time in the boot process, after the iscsi and iscsid daemons have initialized. The
‘0 0’ settings at the end of the line direct the dump and fsck programs to skip this
volume. These settings are recommended for PS Series mounted volumes.
Task #2 - Grow an existing volume
Note: In order to follow this procedure, the filesystem and kernel must support online
resizing. Otherwise the filesystem must be unmounted before the resize operation can
be performed
1) Observe existing mounted volume size(s) from the server:
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
50786940 3710672 44454828 8% /
/dev/sda1 101086 12538 83329 14% /boot
tmpfs 8216020 0 8216020 0% /dev/shm
/dev/sdb 41289276 180240 39011628 1% /mnt/sles1
2) Use the PS Group Manager’s ‘Modify Settings feature to change the volume size. In
this test configuration, the volume size was increased from 40G to 50G:
Volume -> Modify settings -> Select the Space tab -> Volume size
3) Rescan the device:
# iscsiadm -m node -p 10.10.5.7 --rescan